forked from mtusi2026/mtusi2026lab7
ops: configure PKI and scoped OpenBao identities
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
pid_file = "/run/openbao-agent/agent.pid"
|
||||
|
||||
vault {
|
||||
address = "https://openbao:8200"
|
||||
ca_cert = "/run/security/openbao/ca.crt"
|
||||
tls_server_name = "openbao"
|
||||
}
|
||||
|
||||
auto_auth {
|
||||
method {
|
||||
type = "approle"
|
||||
mount_path = "auth/approle"
|
||||
|
||||
config = {
|
||||
role_id_file_path = "/run/openbao-identity/role-id"
|
||||
secret_id_file_path = "/run/openbao-identity/secret-id"
|
||||
remove_secret_id_file_after_reading = false
|
||||
}
|
||||
}
|
||||
|
||||
sink {
|
||||
type = "file"
|
||||
|
||||
config = {
|
||||
path = "/run/openbao-agent/token"
|
||||
mode = 384
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
template_config {
|
||||
exit_on_retry_failure = true
|
||||
static_secret_render_interval = "5m"
|
||||
}
|
||||
|
||||
template {
|
||||
source = "/etc/openbao-agent/api-secrets.ctmpl"
|
||||
destination = "/run/openbao-secrets/secrets.json"
|
||||
create_dest_dirs = true
|
||||
error_on_missing_key = true
|
||||
perms = "0600"
|
||||
backup = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user