added missing files
This commit is contained in:
22
infra/registry/vault/agent.hcl
Normal file
22
infra/registry/vault/agent.hcl
Normal file
@@ -0,0 +1,22 @@
|
||||
auto_auth {
|
||||
method "approle" {
|
||||
mount_path = "auth/approle"
|
||||
config = {
|
||||
role_id_file_path = "/vault/secrets/role_id"
|
||||
secret_id_file_path = "/vault/secrets/secret_id"
|
||||
}
|
||||
}
|
||||
sink "file" { config = { path = "/vault/.token" } }
|
||||
}
|
||||
|
||||
template {
|
||||
source = "/etc/vault/templates/htpasswd.ctmpl"
|
||||
destination = "/vault/secrets/htpasswd"
|
||||
perms = "0440"
|
||||
}
|
||||
|
||||
template {
|
||||
source = "/etc/vault/templates/s3.env.ctmpl"
|
||||
destination = "/vault/secrets/env"
|
||||
perms = "0440"
|
||||
}
|
||||
3
infra/registry/vault/templates/htpasswd.ctmpl
Normal file
3
infra/registry/vault/templates/htpasswd.ctmpl
Normal file
@@ -0,0 +1,3 @@
|
||||
{{- with secret "kv/data/registry" -}}
|
||||
{{ .Data.data.htpasswd }}
|
||||
{{- end -}}
|
||||
8
infra/registry/vault/templates/s3.env.ctmpl
Normal file
8
infra/registry/vault/templates/s3.env.ctmpl
Normal file
@@ -0,0 +1,8 @@
|
||||
{{- with secret "kv/data/s3/registry" -}}
|
||||
REGISTRY_STORAGE_S3_ACCESSKEY={{ .Data.data.access_key_id }}
|
||||
REGISTRY_STORAGE_S3_SECRETKEY="{{ .Data.data.secret_access_key }}"
|
||||
{{ end }}
|
||||
|
||||
{{- with secret "kv/data/registry" -}}
|
||||
REGISTRY_HTTP_SECRET="{{ .Data.data.http_secret }}"
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user