Foreman vault approle not working

Hi Foreman,

I have installed foreman vault 2.0.0 on foreman version 3.12.1. I setup a new Vault Connection using AppRole to an existing working Hashicorp vault but when trying to use it using the vault_secret I see the following error:

There was an error rendering the test template: The Vault server at `https:///’ responded with a 403. Any additional information the server supplied is shown below: * 1 error occurred: * permission denied Please refer to the documentation for help.

If I try setting up a different vault connection using token it works. Is there a way I can troubleshoot this further, I’ve already tried looking at the logs but no additional information is available.

Many Thanks,
Tania

We did setup the vault with approle.

With token, it worked for a while and then it expired despite all my effort to produce a non expiring token.

My setup that worked was to create a non-expiring secretId and set the roleid secretid in the vault connection.

Hope this helps.