https://github.com/nothub/git-age-secrets
Secrets in git with age
https://github.com/nothub/git-age-secrets
age git-crypt secrets
Last synced: 16 days ago
JSON representation
Secrets in git with age
- Host: GitHub
- URL: https://github.com/nothub/git-age-secrets
- Owner: nothub
- Created: 2025-02-14T00:24:57.000Z (about 1 year ago)
- Default Branch: trunk
- Last Pushed: 2025-02-14T01:14:40.000Z (about 1 year ago)
- Last Synced: 2025-03-02T16:40:28.412Z (about 1 year ago)
- Topics: age, git-crypt, secrets
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-age-secrets
An example setup for automatic secret-encryption in git with age.
---
An ssh key-pair can be used for identity and recipient.
Add this filter to your `~/.config/git/config`:
```ini
[filter "age"]
clean = age -R ~/.ssh/id_ed25519.pub -a -
smudge = age -d -i ~/.ssh/id_ed25519 -
required = true
```
---
Apply the filter in your projects `.gitattributes`:
```ini
/secret.yaml filter=age
/secrets/** filter=age
```
---
Further infos in a [post by Sean Liao](https://seankhliao.com/blog/12020-09-24-gitattributes-age-encrypt/).