Secret
Secrets are an important part of Naas, when you need to interact with other services, you need secret, like any other variable the temptation is big to put it straight in your notebook, but this lead to a big security breach since we replicate a lot the notebook, in the versioning system, the output and your ability to share it or send it to git!
Use this simple feature instead to have global secure storage share with your sandbox and production. Secrets are local to your machine and encoded, providing you security with little effort.
Add or Edit Secret
Add a new secret to your Naas
naas.secret.add(name="API_NAME", secret="API_KEY")
To edit a secret, use the function above with the same name and change the secret parameters.
Get your Secret
Returns your secret store in Naas
naas.secret.get(name="MY_API_KEY")
List all Secrets
You don't remember your secret?
naas.secret.list()
Delete
You can remove any scheduler capability like that, it takes optionally a path.
naas.secret.delete()
Debug
Need to understand why something goes bad?
naas.secret.add("test.csv", debug=True)
# or
naas.secret.delete("test.csv", debug=True)