Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pomdtr/vscode-secrets
https://github.com/pomdtr/vscode-secrets
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pomdtr/vscode-secrets
- Owner: pomdtr
- License: mit
- Created: 2022-06-18T18:12:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-27T09:56:04.000Z (about 2 years ago)
- Last Synced: 2023-03-04T01:14:28.586Z (almost 2 years ago)
- Language: TypeScript
- Size: 522 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Secrets
Define secrets shared accross workspaces, injected as environment variables. Supports both local and remote workspaces.
## Usage
Use the secrets tree view to create/edit/view/delete your secrets/folders.
![demo](media/demo.gif)
## Folders
All secrets belong to a folder. Folders allow you scope a set of secrets to specific workspaces.
Use the `secrets.enabledFolders` setting to specify which folders to enable specific folders in you current workspace (if you do not set it, only secrets from the `default` folder will be loaded). \
Alternatively, you can use the `enable/disable` context buttons on the folder items in the secret explorer view.```jsonc
{
// Both the default and github folders will be loaded in this workspace
"secrets.enabledFolders": [
"default",
"github"// If one secret is defined in multiple folders, the secret from the last folder in the array will be used.
]
}
```## How does it work ?
You secrets are stored in the system keychain. Once you start vscode, the secrets are loaded from the keychain, and then injected as environment variables.
The secrets will not be synchronised between devices. You can migrate your secrets use the `Import Secrets` and `Export Secrets` commands.