Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Rabot <[email protected]>
  • Loading branch information
sylr committed Jan 24, 2021
1 parent a879100 commit 6071702
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ in a kustomization git repository and have `kustomize` decrypt them at build tim
The `age.key` file is here for the demo, in real life it __SHOULD ABSOLUTELY NOT__ be
checked in the repository otherwise all secrecy purposes would be defeated.

By default `kustomize` and `age` look for ssh keys to use as identities in `~/.ssh/id_rsa` and `~/.ssh/id_ed25519`.
If those files exists kustomize will try to use them to decrypt data so you don't need to specify anything in `ageIdentities`
if the data have been encrypted with one of these keys' public key.

## Binaries

You'll find binaries of age with YAML support and kustomize with age support at https://github.com/sylr/kustomize-age/releases.

## Pull requests

- https://github.com/FiloSottile/age/pull/162
- https://github.com/kubernetes-sigs/kustomize/pull/3313

## Kustomization

```yaml
Expand All @@ -22,7 +35,7 @@ configMapGenerator:
## Build
```shell
$ bin/kustomize-v3.8.7-162-gd5c7bf48-$(go env GOOS)-$(go env GOARCH) build .
$ kustomize-$(go env GOOS)-$(go env GOARCH)-xxxxxxxx build .
apiVersion: v1
data:
config.yaml: |
Expand Down

0 comments on commit 6071702

Please sign in to comment.