Sharing a Capsule with Secrets
Was this helpful?
Was this helpful?
You can share a capsule with secrets, just like any other capsule. Go to Sharing a capsule Guide for more information. However, for reproducibility purposes, it is currently not possible to release a capsule with secrets.
A warning message will pop-up when a user tries to release a capsule with secrets.
If you try to execute a reproducible run in a capsule that requires secrets and the secrets are not set, a warning message will pop up.
Code Ocean allows you to execute a reproducible run anyway. However, if you don't fix the credentials, the results are likely not reproducible.
When using other people's capsules, it is a good habit to check if the capsule requires secrets.
Click on environment to display the environment editor.
Scroll down to see the Secrets section.
Check if there is a secret to fill.
The screenshot demonstrates a capsule that requires AWS credentials and a custom key:
Click on the drop-down menu to select the secret to attach from your account.
The list in the drop-down is filtered and only shows the specific type of secret in your account.
If you don't have existing credentials to attach, the + Add New [secret type] button allows you to add a new secret:
The system will pop up a form for you to fill out the details depending on the .