@ -81,23 +81,26 @@ The following commands explain how to update the `.sops.yaml` for a repository:
```shell
```shell
# List available groups
# List available groups
% ${PATH_TO_TH IS_REPO}/bin/update_sops.sh --list_groups
% ${PATH_TO_COMMUNICA TION_KEY S_REPO}/bin/update_sops.sh --list_groups
# INFO: listing groups
# INFO: listing groups
admin
admin
automation
automation
devnso-adp-argocd
devnso-adp-argocd
# For a given group, update sops config
# For a given group, update sops config
% ${PATH_TO_TH IS_REPO}/bin/update_sops.sh -g devnso-adp-argocd
% ${PATH_TO_COMMUNICA TION_KEY S_REPO}/bin/update_sops.sh -g devnso-adp-argocd
# RUN: generate SOPS config
# RUN: generate SOPS config
# WARN: no secrets file passed in, make sure to call 'sops updatekeys' on secrets files
# WARN: no secrets file passed in, make sure to call 'sops updatekeys' on secrets files
# [OPTIONAL] For a given group, update sops config AND specified secrets file
# [OPTIONAL] For a given group, update sops config AND specified secrets file
% ${PATH_TO_TH IS_REPO}/bin/update_sops.sh -g devnso-adp-argocd -s ./adp-api-devs/adp-api-devs/secrets.yaml
% ${PATH_TO_COMMUNICA TION_KEY S_REPO}/bin/update_sops.sh -g devnso-adp-argocd -s ./adp-api-devs/adp-api-devs/secrets.yaml
# commit the changes to any .sops.yaml or secrets files, e.g. with
# commit the changes to any .sops.yaml or secrets files, e.g. with
## OPINIONATED GIT - use preferred method
## OPINIONATED GIT - use preferred method
% git add -p
% git add -p
# 1. review changes to the .sops.yaml
# 2. press 'y' to accept the changes
y
% git commit -m "adds < firstname > .< lastname > to sops config"
% git commit -m "adds < firstname > .< lastname > to sops config"
% git push
% git push
```
```
@ -154,7 +157,7 @@ find groups/ -name ${keyname}
# For each group, update sops config in that repo
# For each group, update sops config in that repo
# Example:
# Example:
% cd devnso-adp-argocd
% cd devnso-adp-argocd
% ${PATH_TO_TH IS_REPO}/bin/update_sops.sh -g devnso-adp-argocd
% ${PATH_TO_COMMUNICA TION_KEY S_REPO}/bin/update_sops.sh -g devnso-adp-argocd
# now git commit, push, etc
# now git commit, push, etc
```
```