forked from neurohackademy/nh2020-jupyterhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sops.yaml
26 lines (26 loc) · 941 Bytes
/
.sops.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This is a file that configures SOPS to assume it should use a specific keyring
# and key if encrypting a new file. If it is to decrypt an existing file, that
# information will be available as metadata and this is not needed.
#
# To authenticate yourself sufficiently:
#
# gcloud auth login
# gcloud auth application-default login
#
# To setup a new keyring and key:
#
# gcloud kms keyrings create nh-2020 --location global
# gcloud kms keyrings list --location global
# gcloud kms keys create main --location global --keyring nh-2020 --purpose encryption
# gcloud kms keys list --location global --keyring nh-2020
#
# To encrypt a new file:
#
# sops --encrypt --in-place deployments/hub.neurohackademy.org/secrets/prod.yaml
#
# To edit an encrypted file:
#
# sops deployments/hub.neurohackademy.org/secrets/prod.yaml
#
creation_rules:
- gcp_kms: projects/neurohackademy/locations/global/keyRings/nh-2020/cryptoKeys/main