Introduction
Securely store secrets in the Pantheon Platform.
Pantheon Secrets is key to maintaining industry best practices for secure builds and application implementation. This feature provides a convenient mechanism for you to manage your secrets and API keys directly on the Pantheon platform.
This guide covers features and use cases of the Pantheon Secrets feature; it could also be referred as Secrets Manager because that is the Terminus plugin name.
Features
Key features include:
- Secure: Secrets are encrypted at rest and securely hosted on Pantheon.
- Easy to use: Create and update secrets via Terminus.
- Governable: Secrets can be set at organization level and shared with all the sites owned by that organization.
- Overridable: Secrets can be overridden at environment level when needed.
This feature also supports:
- The use of private repositories in Integrated Composer builds.
- The ability to set a
COMPOSER_AUTH
environment variable and/or a Composerauth.json
authentication file. - The ability to define the degree of secrecy for each managed item.
Access & Availability
This feature is available for anyone to use today at no additional cost. Currently released for Limited Availability, the Terminus Secrets Manager Plugin will eventually be merged into Terminus core once released for General Availability in the future.
Installation
How to get started and use this feature:
Install & authenticate Terminus if you have not done so already.
Install the Terminus Secrets Manager Plugin:
terminus self:plugin:install terminus-secrets-manager-plugin
You can now use the newly installed Terminus commands, such as
secret:site:set
, to manage secrets securely on Pantheon.
To see all available commands added by this plugin, refer to the plugin's README file.
Older plugin now deprecated
The new Terminus Secrets Manager Plugin replaces the older Terminus Secrets Plugin. The key differences are:
- The new Terminus Secrets Manager Plugin stores secrets in an encrypted backend service.
- The older secrets plugin simply writes unencrypted values to a json file in
/files/private
.
Once the Pantheon Secrets service becomes generally available and merged into Terminus core, the older terminus-secrets-plugin
will be discontinued. If you use the older plugin to manage secrets today, we strongly encourage you to upgrade your security and experience by adopting this new feature.
Support
The Terminus Secrets Manager Plugin, PHP Secrets SDK, and Pantheon Secrets Drupal module are open source. You can view the projects, file issues and feature requests, and contribute in their respective repositories on GitHub.
- Terminus Secrets Manager Plugin
- Secrets SDK
- Pantheon Secrets Drupal module
- github repo for issues & PRs
- drupal.org for releases
Contact Support if you have questions or need help with Terminus.