diffcrypt / diffcrypt-ruby

Diffable encrypted files that can be committed into a git repo
MIT License
8 stars 3 forks source link

Maintain comments from inside the decrypted yaml #25

Open marcqualie opened 4 years ago

marcqualie commented 4 years ago

Currently, all commants are stripped and the keys are condensed. This doesn't affect the diffs, but it removes some context that may be present for explaining why certain keys exist, or what they're used for.

e.g.

# Payments
stripe:
  publishable_key: pk_123
  secret_key: sk_123 # do not share this
client: diffcrypt-0.3.3
cipher: aes-256-gcm
data:
  # Payments
  stripe:
    publishable_key: xxx-xxx-xxx
    secret_key: xxx-xxx-xxx # do not share this