Below is my vault config
pid_file = "./pidfile"
vault {
address = "https://redacted
}
auto_auth {
method {
type = "approle"
config = {
role_id_file_path = "role_id_file"
secret_id_file_path = "secret_id_file"
remove_secret_id_file_after_reading = false
}
}
sink "file" {
config = {
path = "/Users/abc/vault-token-via-agent"
}
}
}
api_proxy {
use_auto_auth_token = "force"
enforce_consistency = "always"
}
listener "tcp" {
address = "127.0.0.1:8200"
tls_disable = true
}
Error
Error listing secret: Error making API request.
URL: GET http://127.0.0.1:8200/v1/secret?list=true
Code: 403. Errors:
* 1 error occurred:
* permission denied
I do want to mention that from agent log I can see that authentication is successful.