fix: render vault-agent files outside /run/secrets #193
No reviewers
Labels
No labels
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/infrastructure!193
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/vault-agent-file-paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #129, and has to deploy before sops-nix lands.
sops-nix owns
/run/secrets: on activation it deletes the directory if it is not its own symlink, then points it at a generation directory that is pruned on the next activation. Thefilesvault agent on infra-01 currently renders three files there:discord-webhook-alertsandslack-webhook-alerts, read by the Grafana contact points through$__file{}cli-proxy-api-key, read by cliproxyapiThis moves all three to
/run/vault-agent/, created by a tmpfiles rule (0755 root, the files stay 0400 to their readers).Deploying
Only infra-01 changes.
colmena apply --on scottylabs-infra-01, which restartsvault-agent-files, Grafana and cliproxyapi.Checking
sudo ls -l /run/vault-agent/lists the three files with the same owners as in/run/secrets/discordandslackcurl -s -H "Authorization: Bearer <key>" http://127.0.0.1:8317/v1/modelson infra-01 still answers, and LiteLLM requests routed to cliproxyapi still workThe old copies under
/run/secrets/are unused afterwards and go away on reboot (orsudo rm -r /run/secrets).Kennel Deployments
Last updated for commit
4c3ff6f.Ran Plan for 22 projects:
forgejodir:.workspace:forgejooccdir:.workspace:occmaildir:.workspace:mailgovernancedir:.workspace:governanceatlantisdir:.workspace:atlantisheadscaledir:.workspace:headscalekenneldir:.workspace:kennellitellmdir:.workspace:litellmmatrixdir:.workspace:matrixobservabilitydir:.workspace:observabilitycloudflare-tokensdir:.workspace:cloudflare-tokensgarage-webadmindir:.workspace:garage-webadminkeycloakdir:.workspace:keycloaknixbotdir:.workspace:nixbothostsdir:.workspace:hostsposthogdir:.workspace:posthogopenbaodir:.workspace:openbaosnotdir:.workspace:snotricochetdir:.workspace:ricochetvaultwardendir:.workspace:vaultwardenwebhookdir:.workspace:webhooksearch-consoledir:.workspace:search-console1. project:
forgejodir:.workspace:forgejoShow Output
No changes. Your infrastructure matches the configuration.
2. project:
occdir:.workspace:occShow Output
No changes. Your infrastructure matches the configuration.
3. project:
maildir:.workspace:mailShow Output
No changes. Your infrastructure matches the configuration.
4. project:
governancedir:.workspace:governanceShow Output
No changes. Your infrastructure matches the configuration.
5. project:
atlantisdir:.workspace:atlantisShow Output
No changes. Your infrastructure matches the configuration.
6. project:
headscaledir:.workspace:headscaleShow Output
No changes. Your infrastructure matches the configuration.
7. project:
kenneldir:.workspace:kennelShow Output
No changes. Your infrastructure matches the configuration.
8. project:
litellmdir:.workspace:litellmShow Output
No changes. Your infrastructure matches the configuration.
9. project:
matrixdir:.workspace:matrixShow Output
No changes. Your infrastructure matches the configuration.
10. project:
observabilitydir:.workspace:observabilityShow Output
No changes. Your infrastructure matches the configuration.
11. project:
cloudflare-tokensdir:.workspace:cloudflare-tokensShow Output
No changes. Your infrastructure matches the configuration.
12. project:
garage-webadmindir:.workspace:garage-webadminShow Output
No changes. Your infrastructure matches the configuration.
13. project:
keycloakdir:.workspace:keycloakShow Output
No changes. Your infrastructure matches the configuration.
14. project:
nixbotdir:.workspace:nixbotShow Output
No changes. Your infrastructure matches the configuration.
15. project:
hostsdir:.workspace:hostsShow Output
No changes. Your infrastructure matches the configuration.
16. project:
posthogdir:.workspace:posthogShow Output
No changes. Your infrastructure matches the configuration.
17. project:
openbaodir:.workspace:openbaoShow Output
No changes. Your infrastructure matches the configuration.
18. project:
snotdir:.workspace:snotShow Output
No changes. Your infrastructure matches the configuration.
19. project:
ricochetdir:.workspace:ricochetShow Output
No changes. Your infrastructure matches the configuration.
20. project:
vaultwardendir:.workspace:vaultwardenShow Output
No changes. Your infrastructure matches the configuration.
21. project:
webhookdir:.workspace:webhookShow Output
No changes. Your infrastructure matches the configuration.
22. project:
search-consoledir:.workspace:search-consoleShow Output
No changes. Your infrastructure matches the configuration.
Plan Summary
22 projects, 0 with changes, 22 with no changes, 0 failed
Plan Error
Ran Plan for 22 projects:
governancedir:.workspace:governanceforgejodir:.workspace:forgejomaildir:.workspace:mailoccdir:.workspace:occlitellmdir:.workspace:litellmnixbotdir:.workspace:nixbotcloudflare-tokensdir:.workspace:cloudflare-tokensobservabilitydir:.workspace:observabilitymatrixdir:.workspace:matrixatlantisdir:.workspace:atlantisheadscaledir:.workspace:headscalegarage-webadmindir:.workspace:garage-webadminhostsdir:.workspace:hostskenneldir:.workspace:kennelkeycloakdir:.workspace:keycloaksnotdir:.workspace:snotposthogdir:.workspace:posthogopenbaodir:.workspace:openbaoricochetdir:.workspace:ricochetwebhookdir:.workspace:webhookvaultwardendir:.workspace:vaultwardensearch-consoledir:.workspace:search-console1. project:
governancedir:.workspace:governanceShow Output
No changes. Your infrastructure matches the configuration.
2. project:
forgejodir:.workspace:forgejoShow Output
No changes. Your infrastructure matches the configuration.
3. project:
maildir:.workspace:mailShow Output
No changes. Your infrastructure matches the configuration.
4. project:
occdir:.workspace:occShow Output
No changes. Your infrastructure matches the configuration.
5. project:
litellmdir:.workspace:litellmShow Output
No changes. Your infrastructure matches the configuration.
6. project:
nixbotdir:.workspace:nixbotShow Output
No changes. Your infrastructure matches the configuration.
7. project:
cloudflare-tokensdir:.workspace:cloudflare-tokensShow Output
No changes. Your infrastructure matches the configuration.
8. project:
observabilitydir:.workspace:observabilityShow Output
No changes. Your infrastructure matches the configuration.
9. project:
matrixdir:.workspace:matrixShow Output
No changes. Your infrastructure matches the configuration.
10. project:
atlantisdir:.workspace:atlantisShow Output
No changes. Your infrastructure matches the configuration.
11. project:
headscaledir:.workspace:headscaleShow Output
No changes. Your infrastructure matches the configuration.
12. project:
garage-webadmindir:.workspace:garage-webadminShow Output
No changes. Your infrastructure matches the configuration.
13. project:
hostsdir:.workspace:hostsShow Output
No changes. Your infrastructure matches the configuration.
14. project:
kenneldir:.workspace:kennelShow Output
No changes. Your infrastructure matches the configuration.
15. project:
keycloakdir:.workspace:keycloakShow Output
No changes. Your infrastructure matches the configuration.
16. project:
snotdir:.workspace:snotShow Output
No changes. Your infrastructure matches the configuration.
17. project:
posthogdir:.workspace:posthogShow Output
No changes. Your infrastructure matches the configuration.
18. project:
openbaodir:.workspace:openbaoShow Output
No changes. Your infrastructure matches the configuration.
19. project:
ricochetdir:.workspace:ricochetShow Output
No changes. Your infrastructure matches the configuration.
20. project:
webhookdir:.workspace:webhookShow Output
No changes. Your infrastructure matches the configuration.
21. project:
vaultwardendir:.workspace:vaultwardenShow Output
No changes. Your infrastructure matches the configuration.
22. project:
search-consoledir:.workspace:search-consoleShow Output
No changes. Your infrastructure matches the configuration.
Plan Summary
22 projects, 0 with changes, 22 with no changes, 0 failed
atlantis unlock
All Atlantis locks for this PR have been unlocked and plans discarded
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.