Key Store
The Key Store serves as Semaphore's centralized credential repository. It manages authentication materials required for cloning remote Git repositories, connecting to target infrastructure hosts, elevating privileges (sudo/become), and decrypting Ansible Vault secrets.

The Key Store is partitioned into two primary views:
- Keys Tab: Lists all credentials provisioned for the current project, showing their name, storage backend, credential type, and synchronization state.
- Storages Tab (Pro): Configures external secret backends (such as HashiCorp Vault, OpenBao, AWS Secrets Manager, or CyberArk) to enable dynamic secret resolution and automated synchronization.
Credential Types
Semaphore categorizes stored credentials into four foundational types:
1. SSH Keys
SSH Keys provide asymmetric cryptographic authentication used to connect to remote Linux/UNIX nodes and clone Git repositories over SSH ([email protected]:...).
When configuring an SSH key credential, you can specify:
- Key Name: A descriptive label for the credential across your project inventories and templates.
- Username (Optional): The default remote user account used during SSH connection establishment (for example,
ansibleorubuntu). - Passphrase (Optional): The passphrase required to decrypt encrypted private keys. Passphrase inputs include a visibility toggle (
eyeicon) and are masked by default. - Private Key: The raw PEM/OpenSSH private key text.
Built-in SSH Key Generator
Rather than manually running ssh-keygen on external machines, Semaphore includes a built-in, one-click SSH keypair generator directly inside the credential modal:

- Select SSH Key from the Type dropdown.
- Check the Generate SSH Key checkbox.
- Notice that the manual Private Key textarea is automatically disabled and locked down.
- Click Create. Semaphore will automatically generate a cryptographically secure keypair (ED25519/RSA), encrypt the private key directly into the database, and display the public key in a dedicated modal dialog:

Use the built-in Copy to Clipboard button to copy the public key and paste it directly into your Git provider's deploy keys or your target nodes' ~/.ssh/authorized_keys file.
Extracting Public Keys Later (Public Key Drawer)
If you close the dialog or need to retrieve the public key at a later time, you do not need to regenerate the keypair. When editing any existing key that was created with the generator, Semaphore provides an expandable Public key drawer:

- Click Show / Hide to preview the raw public key string.
- Click the clipboard icon to copy the public key instantly.
Linking Deploy Keys to Common Git Hosts
For Git repositories requiring SSH authentication, add the generated public key as a read-only deploy key:
2. Login With Password
The Login with password credential type supports both traditional username/password authentication and standalone secret strings:
- Host & Sudo Authentication: Provides password-based SSH access and
sudoprivilege escalation credentials on target hosts. - HTTPS Git Authentication: Authenticates to remote repositories over HTTPS using username and personal access tokens (PAT).
- Ansible Vault Passwords: Unlocks encrypted Ansible Vault files and variables at runtime.
To store a pure secret string, such as an API bearer token, a webhook secret or a Git personal access token, use the String type below. The Login with password type with a blank login is still what Ansible Vault passwords need, because that consumer accepts only this type.
Secret Masking & Override Protection
To protect credentials from unauthorized exposure and accidental modification:
- Password and passphrase inputs are strictly masked in the interface with optional visibility reveal controls.
- When editing an existing credential, sensitive secret inputs are disabled by default.
- To update or replace an existing secret, you must explicitly check the Override checkbox at the bottom of the form. This safety gate prevents unintended secret overwrites during routine administrative edits.
3. None
The None credential acts as an explicit null authentication placeholder. It is used for public open-source Git repositories (such as public repositories on GitHub or GitLab) and local unauthenticated playbook executions where no SSH keys or passwords are required.
4. String
The String credential holds a single secret value with no login attached: an API token, a webhook secret, a password on its own. It is stored encrypted like every other credential, is never returned by the API or shown in the form again, and can only be replaced with the Override checkbox.
Where it is used:
- Integrations: as the Auth secret of the Token, HMAC, GitHub and Bitbucket authentication methods, see Integrations.
- Repositories: as the access key of a Repository with an
https://orhttp://URL, where the value is a personal access token, see Repositories.
Where it does not fit, the credential pickers simply do not offer it: a repository reached over SSH, an inventory SSH key, the sudo credentials and the Ansible Vault password all need an SSH key or a login/password credential.
Through the API the same credential is created with "type": "string":
curl -X POST "https://semaphore.example.com/api/project/1/keys" \
-H "Authorization: Bearer <api-token>" \
-H "Content-Type: application/json" \
-d '{"project_id": 1, "name": "webhook-secret", "type": "string", "string": "s3cr3t"}'
Secret Storages
Semaphore supports decoupled secret storage architectures. When creating or editing any credential, you can select where the underlying secret material resides via the source storage tabs:
| Storage Source Tab | Availability | Description |
|---|---|---|
| Local | Open Source & Pro | Secret is stored directly in the Semaphore relational database, protected by envelope encryption. |
| Storage | Pro | Secret references an external secrets engine (e.g. HashiCorp Vault, AWS Secrets Manager). |
| Env | Open Source & Pro | Secret is dynamically resolved at runtime from an environment variable on the Semaphore server. |
| File | Open Source & Pro | Secret is read from a protected file residing in the server's configured secrets directory. |

Database Storage (Local)
By default, secrets are stored in the application database in encrypted form using symmetric AES encryption. The master key is configured via the server setting:
- Configuration key:
access_key_encryption - Environment variable:
SEMAPHORE_ACCESS_KEY_ENCRYPTION
Generate a cryptographically secure 32-byte base64 encryption key before starting production instances:
head -c32 /dev/urandom | base64
Ensure this key is backed up securely. If the encryption key is lost, existing database secrets cannot be recovered.
Environment Variable & File Sources (Read-Only Storages)
When you select the Env or File source tab, Semaphore treats the storage as an external, read-only origin. The UI renders an informative notice:
Read-only secret storage chosen.

- Env Source: Provide the exact name of the environment variable exported on the Semaphore server host or container (e.g.,
SEMAPHORE_EXTERNAL_VAULT_TOKEN). - File Source: Provide the file path relative to the configured secrets path (
dirs.secrets/SEMAPHORE_SECRETS_PATH, default/tmp/semaphore).
For structured keys (such as SSH keypairs with passphrases or login/password pairs), file and environment variable contents must be formatted as valid JSON objects. See Env and File Sources for schema details.
External Enterprise Secret Engines (Pro & Enterprise)
Semaphore Pro and Enterprise extend the Key Store with native connectors to premier enterprise secret managers:
- HashiCorp Vault: Connects via AppRole or Token authentication to read and write KV v1/v2 secrets.
- OpenBao: Open-source, API-compatible fork of HashiCorp Vault.
- AWS Secrets Manager
<Enterprise />: Integrates with AWS IAM roles or static credentials. - Devolutions Server: Integrates with centralized privileged access management.
- CyberArk PAM
<Enterprise />: Reads and writes secrets using CyberArk PVWA REST APIs.
Syncing Secrets from Remote Storages
Rather than manually registering credentials one by one, Semaphore supports automated bidirectional and read-only synchronization from external secret vaults.
When a secret is maintained via synchronization:
- It is marked with an active synchronized badge in the Key Store table.
- Manual editing of the secret material in the UI is disabled to preserve the external vault as the single source of truth.
- Any updates or rotations in the external secrets engine automatically propagate into Semaphore based on the configured synchronization interval.
For comprehensive configuration steps, see Secret Synchronization.