Skip to content
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

sops: configure indentation and get YAML valid .json output #3451

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@ creation_rules:
gcp_kms: projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/similar-hubs
- path_regex: deployer/keys/.*key.*
gcp_kms: projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/similar-hubs

# stores configuration is supported by sops 3.9.0+ only
stores:
# By configuring json indent, we get spaces instead of tabs for json files,
# which makes them valid YAML files as well.
json:
indent: 4
json_binary:
indent: 4
yaml:
indent: 2