Skip to content

can't use mac_only_encrypted in .sops.yaml #1549

Answered by felixfontein
Simbud-7 asked this question in Q&A
Discussion options

You must be logged in to vote

I did try it with

creation_rules:
  # Everything else
  - pgp: xxx
    mac_only_encrypted: true
    encrypted_regex: "(?i)password|(?i)passwd|(?i)pwd|(?i)\\b\\w*secret\\b|(?i)\\.key$|(?i)\\.pem$|(?i)\\.cert$|(?i)\\.crt$|(?i).*token.*"

and got

hello: Welcome to SOPS! Edit this file as you please!
password: ENC[AES256_GCM,data:+4re,iv:45h2ZbBTJ2v5EnMymScJ9wTsrIg7AM3wDv6kSSEAWEQ=,tag:jbNQw3xWhZGjbNsR8HK4oQ==,type:str]
sops:
    kms: []
    gcp_kms: []
    azure_kv: []
    hc_vault: []
    age: []
    lastmodified: "2024-07-01T09:50:25Z"
    mac: ENC[AES256_GCM,data:TH+iRR3+D1wxO9bj3oK8uGZQCa7A0gIbxL4TBDbOgs2B+YXt6hyX1C4ruxSFb+ylH5wxBBm7qS6xWbaYjKJh8KFmgPoD8Nov9PRmxE75uQp6KxVd8rC4rb8vFws98oxr…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@felixfontein
Comment options

@Simbud-7
Comment options

@Simbud-7
Comment options

@felixfontein
Comment options

Answer selected by felixfontein
@Simbud-7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants