added missing files

This commit is contained in:
Arseni
2026-03-10 21:45:41 +03:00
parent 7ae4518926
commit 049b23516a
22 changed files with 221 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
exit_after_auth = false
pid_file = "/vault/secrets/vault-agent.pid"
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/secrets/.vault-token" } }
}
# Render secrets to lowercase files
template {
source = "/etc/vault/templates/agent_secret.ctmpl"
destination = "/vault/secrets/agent_secret"
perms = "0440"
}
template {
source = "/etc/vault/templates/gitea_client_id.ctmpl"
destination = "/vault/secrets/gitea_client_id"
perms = "0440"
}
template {
source = "/etc/vault/templates/gitea_client_secret.ctmpl"
destination = "/vault/secrets/gitea_client_secret"
perms = "0440"
}
template {
source = "/etc/vault/templates/pg_dsn.ctmpl"
destination = "/vault/secrets/pg_dsn"
perms = "0644"
}

View File

@@ -0,0 +1,3 @@
{{ with secret "kv/data/cicd/woodpecker/agent" -}}
{{ .Data.data.secret }}
{{- end }}

View File

@@ -0,0 +1,3 @@
{{ with secret "kv/data/cicd/woodpecker" -}}
{{ .Data.data.gitea_client_id }}
{{- end }}

View File

@@ -0,0 +1,3 @@
{{ with secret "kv/data/cicd/woodpecker" -}}
{{ .Data.data.gitea_client_secret }}
{{- end }}

View File

@@ -0,0 +1 @@
{{- with secret "kv/data/cicd/woodpecker" -}}{{ .Data.data.pg_dsn }}{{- end -}}