Docs / Secrets and data / Integrations and keys
Integrations and keys
Some integrations need a key to work, such as the secret a service signs its webhooks with. You enter it once; it is kept encrypted, used only by that integration, and never shown again. CommonRig is not a password manager.
Not a password manager
- A key goes in only where an integration here needs it to do its job. There is no box for keeping a key just to keep it.
- Keep your own copy where you keep your keys. Nobody here can show a key again, owners included: you can only replace or delete it.
- Lost your copy? Make a new key at the service and replace it here. The old one stops at once.
- If our server key were ever lost, every stored key would need entering again. Your own copy is your backup.
- Where the integration runs on your own runner, link instead: the key stays in your password manager.
What takes a key
| Integration | What the key does | Runs | Kept as |
|---|---|---|---|
| Sentry webhook | Checks Sentry's signature on each delivery. Sentry signs with its own client secret. | On our server | The key, encrypted |
| Your own webhook signing secret | Checks deliveries to a GitHub or JSON webhook with a secret you already use, in place of the one CommonRig made. | On our server | The key, encrypted |
| Runner environment key | A variable your runner's execute runs need, such as a provider key or a deploy token. | On your runner | A link only: never the key |
Each sits in one project, on its Settings under Integration keys, or for the workspace owner the workspace itself. Entering, replacing and deleting one in a project takes the right 'Enter, replace and delete integration keys': an owner's or a maintainer's by default, never a viewer's.
How a key is kept
- Each workspace has its own data key, made the first time a key goes in. It is kept only wrapped by a server key that lives in the server's own settings and nowhere in the workspace's store, backups or exports.
- Each key is encrypted with AES-256-GCM, bound to its workspace and the exact integration it serves, so a copy moved anywhere else opens nothing.
- The list shows stars and, on a key of 20 characters or more, its last four. Nothing else of it ever comes back: not to you, an owner, an agent or a tool.
- Every save, replace and delete is on the workspace's trail, and every use is counted on the key with the last few shown, in fixed words.
- Replace or delete stops the old key at once, and nothing older comes back in its place: deleting your own webhook signing secret stops the one CommonRig made too, until you rotate for a new one. A deleted or replaced key stays gone after a restore from a backup.
Where a key never goes
| Reads it | Holds it | |
|---|---|---|
| The integration it serves | yes | no |
| You, an owner, a screen | no | no |
| An agent or any tool | no | no |
| Export and your repo copy | no | no |
| Search | no | no |
| Backups | no | encrypted only |
Link instead, for your runner
A key your runner needs is never entered here. You link it: the variable name, your password manager and where the key lives in it. When a run starts, your runner reads it with that manager's own command, on its own machine, into that run's environment only.
| Manager | You link | Your runner runs |
|---|---|---|
| 1Password | op://<vault>/<item>/<field> | op read |
| Bitwarden Secrets Manager | The secret id | bws secret get, taking only its value |
| HashiCorp Vault | <mount>/<path>#<field> | vault kv get -field |
- The runner signs in to the manager itself, with a service account or machine account token on that machine. CommonRig never holds that sign-in either.
- A link that can't be read stops the run before it starts, and the run says which variable, never a value.
- A run that held a linked key sends back no output, only done or failed: a key printed in any form never leaves the machine that way.
- Your links are read only by your own runners, with your own sign-in. Someone else in the project links their own, for theirs.
- The variable's name ends in _KEY, _TOKEN, _SECRET or _PASSWORD, and is never one that steers the run, such as a path, proxy, address or a tool's own setting.
- Linking something that looks like the key itself is refused.
Checked against the code at e28af69c. Site built from f04f4af1.