-
Notifications
You must be signed in to change notification settings - Fork 300
feat: extend pass vault guide for secrets #2082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
2595b43
677d7ed
6ab4b03
4089151
a6b7587
6d7703c
350b5a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -585,6 +585,7 @@ MyExtension | |
| MyPlugin | ||
| MyTestClass | ||
| MyTestInterface | ||
| NATS | ||
| NPM | ||
| NUR | ||
| NVDA | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -101,3 +101,213 @@ | |||||||||||||||||||||||||||||||||||||||||||||
| ```sh | ||||||||||||||||||||||||||||||||||||||||||||||
| sw-paas vault delete --secret-id ssh-abc123xyz | ||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ## Default Secrets & Ownership | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| The Shopware PaaS Vault contains both system-managed and user-managed secrets. Understanding the difference helps you identify which secrets you can manage and which are maintained by the platform. | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ### System-Managed vs. User-Managed Secrets | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| **System-managed secrets** are automatically created and maintained by Shopware PaaS for internal operations. While these secrets are visible when you run `sw-paas vault list`, they should not be modified or deleted as they are critical for platform functionality. | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| **User-managed secrets** are created by you for your application's specific needs, such as API tokens, database credentials, or SSH keys for private repositories. | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ### Common Secrets Reference | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| | Secret Name | Description | Managed By | Editable by User | Notes | | ||||||||||||||||||||||||||||||||||||||||||||||
| |-------------|-------------|------------|------------------|-------| | ||||||||||||||||||||||||||||||||||||||||||||||
| | `STOREFRONT_CREDENTIALS` | Internal storefront credentials | System | No | **Do not delete** - Required for storefront functionality | | ||||||||||||||||||||||||||||||||||||||||||||||
| | `GRAFANA_CREDENTIALS` | Grafana dashboard login credentials | System | No | **Do not delete** - Needed for `sw-paas open grafana` | | ||||||||||||||||||||||||||||||||||||||||||||||
| | `NATS_USER_CREDENTIALS` | NATS messaging user credentials | System | No | **Do not delete** - Required for internal messaging | | ||||||||||||||||||||||||||||||||||||||||||||||
| | `STOREFRONT_PROXY_KEY` | Storefront proxy authentication | System | No | **Do not delete** - Required for routing | | ||||||||||||||||||||||||||||||||||||||||||||||
| | `SSH_PRIVATE_KEY` | Deploy SSH key for repository access | User | Yes | See [SSH key workflow](#example-workflow-using-ssh-keys) | | ||||||||||||||||||||||||||||||||||||||||||||||
| | `SHOPWARE_PACKAGES_TOKEN` | Token for accessing Shopware packages | User | Yes | Watch for typo variants (e.g. missing underscore: `SHOPWAREPACKAGES_TOKEN`) | | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ::: info | ||||||||||||||||||||||||||||||||||||||||||||||
| System-managed secrets use the same retrieval mechanism as user-managed secrets, which is why they appear in your vault list. This is intentional to provide transparency into the credentials your environment is using. | ||||||||||||||||||||||||||||||||||||||||||||||
| ::: | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ### Filtering Secrets by Application | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| By default, `sw-paas vault list` shows secrets across all applications in your organization, which can lead to duplicate entries if multiple apps use the same secret names. | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| To view secrets for a specific application: | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ```sh | ||||||||||||||||||||||||||||||||||||||||||||||
| sw-paas vault list --application-id YOUR-APP-ID | ||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| To find your application ID: | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ```sh | ||||||||||||||||||||||||||||||||||||||||||||||
| sw-paas application list | ||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+130
to
+145
|
||||||||||||||||||||||||||||||||||||||||||||||
| ### Filtering Secrets by Application | |
| By default, `sw-paas vault list` shows secrets across all applications in your organization, which can lead to duplicate entries if multiple apps use the same secret names. | |
| To view secrets for a specific application: | |
| ```sh | |
| sw-paas vault list --application-id YOUR-APP-ID | |
| ``` | |
| To find your application ID: | |
| ```sh | |
| sw-paas application list | |
| ``` | |
| ### Understanding Organization-wide Secrets | |
| The `sw-paas vault list` command shows all secrets stored in your organization’s Vault. Because secrets are organization-global and reusable, the same secret values can be referenced by multiple applications using the same secret name. | |
| If multiple applications in your organization use a secret with the same name, they are all referring to the same underlying Vault secret, not separate per-application copies. | |
| This means you manage each secret once at the organization level, and then reference it from the applications that need it. |
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The doc describes system-managed secrets as "read-only" (implying the platform prevents edits/deletes) but also warns that deleting them will cause outages. This is internally inconsistent. Please clarify whether deletion/editing is technically blocked by the platform/CLI, or whether it’s possible but forbidden/unsupported (and adjust wording accordingly).
| System-managed secrets are read-only and should not be modified or deleted. They are essential for: | |
| System-managed secrets must be treated as read-only and must not be modified or deleted via the CLI, UI, or API. The platform does not technically prevent you from changing or removing these secrets, but doing so is unsupported and will break critical platform functionality. They are essential for: |
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
::: warning Important uses a title-style admonition syntax that isn't used elsewhere in this docs repo (other pages consistently use ::: warning / ::: info without an inline title, e.g. products/paas/shopware/fundamentals/secrets.md:49). This may render incorrectly or break the docs build depending on the markdown plugin. Use the same admonition syntax as the rest of the docs (e.g. ::: warning and move “Important” into the body text).
| ::: warning Important | |
| Shopware PaaS does not maintain version history for secrets. Once a secret is modified or deleted, the previous value cannot be recovered through the platform. | |
| ::: warning | |
| **Important:** Shopware PaaS does not maintain version history for secrets. Once a secret is modified or deleted, the previous value cannot be recovered through the platform. |
Check warning on line 178 in products/paas/shopware/guides/secrets-vault-guide.md
GitHub Actions / LanguageTool
[LanguageTool] products/paas/shopware/guides/secrets-vault-guide.md#L178
Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: `secret-id`
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Raw output
products/paas/shopware/guides/secrets-vault-guide.md:178:8: Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: `secret-id`
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Check warning on line 204 in products/paas/shopware/guides/secrets-vault-guide.md
GitHub Actions / LanguageTool
[LanguageTool] products/paas/shopware/guides/secrets-vault-guide.md#L204
Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: `secret-id`
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Raw output
products/paas/shopware/guides/secrets-vault-guide.md:204:11: Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: `secret-id`
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Check warning on line 210 in products/paas/shopware/guides/secrets-vault-guide.md
GitHub Actions / LanguageTool
[LanguageTool] products/paas/shopware/guides/secrets-vault-guide.md#L210
Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: `secret-id`
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Raw output
products/paas/shopware/guides/secrets-vault-guide.md:210:14: Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: `secret-id`
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Check warning on line 271 in products/paas/shopware/guides/secrets-vault-guide.md
GitHub Actions / LanguageTool
[LanguageTool] products/paas/shopware/guides/secrets-vault-guide.md#L271
Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: `secret-id`
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Raw output
products/paas/shopware/guides/secrets-vault-guide.md:271:11: Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: `secret-id`
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Check warning on line 299 in products/paas/shopware/guides/secrets-vault-guide.md
GitHub Actions / LanguageTool
[LanguageTool] products/paas/shopware/guides/secrets-vault-guide.md#L299
Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE[1])
Suggestions: `, and`
URL: https://languagetool.org/insights/post/types-of-sentences/#compound-sentence
Rule: https://community.languagetool.org/rule/show/COMMA_COMPOUND_SENTENCE?lang=en-US&subId=1
Category: PUNCTUATION
Raw output
products/paas/shopware/guides/secrets-vault-guide.md:299:45: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE[1])
Suggestions: `, and`
URL: https://languagetool.org/insights/post/types-of-sentences/#compound-sentence
Rule: https://community.languagetool.org/rule/show/COMMA_COMPOUND_SENTENCE?lang=en-US&subId=1
Category: PUNCTUATION
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why can the user see them and delete them if they are system managed. we should just have here an list of environment variables which cannot be set because we set them 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is true, the end user should not have system managed secrets displayed, but currently that is how the backend is configured.