Attach a stored secret to an app
bind_app_secretAttach a secret that is already stored in the account vault to one app, under the environment variable name the app reads, and restart the app. Call this when the user says the key already exists in Dockhold (call list_secrets to see the names), or when a second app should use the same stored value: nothing passes through your context and no value is stored again. Sharing one entry between apps means they share the value; if the user wants separate credentials per app, store a new value with set_app_secret under a distinct vault_key_name instead. This token can attach any secret on the account to any app on the account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The environment variable name the app code reads. Defaults to vault_key_name. | |
| app_id | Yes | The app id returned by list_apps | |
| vault_key_name | Yes | The stored secret's name in the account vault, as list_secrets reports it |