bff for callbacks
This commit is contained in:
@@ -65,7 +65,7 @@ Examples:
|
||||
|
||||
Infrastructure (MongoDB, NATS) uses plain `.env.dev` credentials.
|
||||
|
||||
Callbacks, Chain, and TRON run Vault Agent sidecars with AppRole.
|
||||
Callbacks, BFF, Chain, and TRON run Vault Agent sidecars with AppRole.
|
||||
Set the corresponding `*_VAULT_ROLE_ID` and `*_VAULT_SECRET_ID` values in `.env.dev`.
|
||||
|
||||
## Network
|
||||
|
||||
21
ci/dev/vault-agent/bff.hcl
Normal file
21
ci/dev/vault-agent/bff.hcl
Normal file
@@ -0,0 +1,21 @@
|
||||
vault {
|
||||
address = "http://dev-vault:8200"
|
||||
}
|
||||
|
||||
auto_auth {
|
||||
method "approle" {
|
||||
mount_path = "auth/approle"
|
||||
config = {
|
||||
role_id_file_path = "/run/vault/role_id"
|
||||
secret_id_file_path = "/run/vault/secret_id"
|
||||
}
|
||||
}
|
||||
|
||||
sink "file" {
|
||||
config = {
|
||||
path = "/run/vault/token"
|
||||
mode = 0600
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user