30 lines
684 B
HCL
30 lines
684 B
HCL
pid_file = "C:/vault/vault_agent.pid"
|
|
|
|
# Listener configuration
|
|
listener "tcp" {
|
|
address = "127.0.0.1:8100" # Set the appropriate address and port
|
|
tls_disable = true # Disable TLS for simplicity; recommended to enable in production
|
|
}
|
|
|
|
auto_auth {
|
|
method "approle" {
|
|
config = {
|
|
role_id_file_path = "C:/vault/role_id" # path where role_id is stored
|
|
secret_id_file_path = "C:/vault/secret_id" # path where secret_id is stored
|
|
remove_secret_id_file_after_reading = false
|
|
}
|
|
}
|
|
sink "file" {
|
|
config = {
|
|
path = "C:/vault/vault-token"
|
|
}
|
|
}
|
|
}
|
|
|
|
vault {
|
|
address = "http://192.168.0.73:8200"
|
|
}
|
|
|
|
cache {
|
|
use_auto_auth_token = true
|
|
} |