Page MenuHomeDevCentral

Deploy or rotate Vault secrets
AcceptedPublic

Authored by dereckson on Mon, Mar 23, 00:32.
Tags
None
Referenced Files
F25162481: D4026.id10535.diff
Thu, Apr 2, 11:35
Unknown Object (File)
Wed, Apr 1, 03:29
Unknown Object (File)
Tue, Mar 31, 23:09
Unknown Object (File)
Mon, Mar 30, 21:39
Unknown Object (File)
Mon, Mar 30, 19:25
Unknown Object (File)
Mon, Mar 30, 12:17
Unknown Object (File)
Mon, Mar 30, 10:51
Unknown Object (File)
Sun, Mar 29, 11:59
Subscribers
None

Details

Reviewers
yousra
Summary

Terraform/OpenTofu is handling both the policies and the credentials to allow
other applications to connect themselves to Vault.

Once the AppRole have been created or updated in Vault by Terraform/OpenTofu,
the relevant configuration files with AppRole credentials must be provisioned.

This make deploy-secrets target allows to automate each steps and do a full
secrets rotation.

Reference: https://agora.nasqueron.org/Operations_grimoire/Deploy_with_Terraform

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
arcpatch-D4026
Build Status
Buildable 6544
Build 6828: arc lint + arc unit

Event Timeline

dereckson created this revision.
dereckson retitled this revision from Once the AppRole have been created or updated in Vault by Terraform/OpenTofu, the relevant configuration files with AppRole credentials must be provisioned. to Deploy or rotate Vault secrets.Mon, Mar 23, 08:44
dereckson edited the summary of this revision. (Show Details)

Note: we're deploying a third secret for CARP routers scripts. If we've already that code merged, we'll need to append a line to deploy that state too.

Note: we're deploying a third secret for CARP routers scripts. If we've already that code merged, we'll need to append a line to deploy that state too.

How to target router-002 and router-003 through grains
-G, --grain
The target expression matches values returned by the Salt grains system on the minions. The target expression is in the format of '<grain value>:<glob expression>'; example: 'os:Arch*'

This was changed in version 0.9.8 to accept glob expressions instead of regular expression. To use regular expression matching with grains, use the --grain-pcre option.

--grain-pcre
The target expression matches values returned by the Salt grains system on the minions. The target expression is in the format of '<grain value>:< regular expression>'; example: 'os:Arch.*'
This revision is now accepted and ready to land.Wed, Mar 25, 13:26

Enable rotation of Vault AppRole credentials on CARP routers

Makefile
65

I wonder if we don't need wildcards as it's a list, if a router has several roles, for example router + bastion is a combo we considered several times.