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

29
infra/s3/vault/agent.hcl Normal file
View File

@@ -0,0 +1,29 @@
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/user.ctmpl"
destination = "/vault/secrets/MINIO_ROOT_USER"
perms = "0440"
}
template {
source = "/etc/vault/templates/password.ctmpl"
destination = "/vault/secrets/MINIO_ROOT_PASSWORD"
perms = "0440"
}
vault {
address = "http://vault_vault:8200"
}

View File

@@ -0,0 +1 @@
{{ with secret "kv/data/s3/minio" }}{{ .Data.data.password }}{{ end }}

View File

@@ -0,0 +1 @@
{{ with secret "kv/data/s3/minio" }}{{ .Data.data.user }}{{ end }}