-
Notifications
You must be signed in to change notification settings - Fork 2.2k
NO-JIRA: Run 2 Vault instances in different namespaces #80405
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
Changes from all commits
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,6 +22,15 @@ ref: | |||||||||
| Vault Enterprise namespace where the transit engine, AppRole auth, and | ||||||||||
| policies will be created. Must match the VaultNamespace configured in the | ||||||||||
| KMS plugin (defaults to "admin" in library-go test helpers). | ||||||||||
| - name: VAULT_SECONDARY_NAMESPACE | ||||||||||
| default: "vault-kms-2" | ||||||||||
| documentation: |- | ||||||||||
| Namespace for a second Vault Enterprise instance to configure. | ||||||||||
| - name: VAULT_SECONDARY_KMS_KEY_NAME | ||||||||||
| default: "kms-key-2" | ||||||||||
| documentation: |- | ||||||||||
| Name of the transit encryption key for the secondary Vault instance. | ||||||||||
| Must differ from VAULT_KMS_KEY_NAME to ensure each instance uses a distinct KEK. | ||||||||||
|
Comment on lines
+32
to
+33
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clarify the rationale for distinct key names. The documentation states the key names must differ "to ensure each instance uses a distinct KEK," but this reasoning is incorrect. Since Different key names aid clarity and organization, not key material distinctness. 📝 Suggested documentation fix - name: VAULT_SECONDARY_KMS_KEY_NAME
default: "kms-key-2"
documentation: |-
Name of the transit encryption key for the secondary Vault instance.
- Must differ from VAULT_KMS_KEY_NAME to ensure each instance uses a distinct KEK.
+ Should differ from VAULT_KMS_KEY_NAME for clarity and to avoid confusion when managing multiple instances.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| documentation: |- | ||||||||||
| Configures an already-installed Vault instance for Kubernetes KMS encryption. | ||||||||||
|
|
||||||||||
|
|
||||||||||
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.
Remove AppRole credential from logs.
Line 103 prints the
ROLE_ID(AppRole role identifier) to CI logs. AppRole credentials are sensitive authentication material and should not be logged. As per coding guidelines, step-registry command scripts must never echo or print sensitive information such as passwords, tokens, or API keys.A similar issue at the previous line 87 was addressed in an earlier commit, but this echo statement remains in the refactored summary block.
🔒 Proposed fix
Remove the ROLE_ID echo from the summary:
echo " - Vault Enterprise Namespace: ${VAULT_ENTERPRISE_NS}" echo " - Transit Key: ${key_name}" - echo " - ROLE_ID: ${ROLE_ID}" echo ""Alternatively, if the line is kept for debugging purposes, redact the value:
📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Coding guidelines