I’m trying to enable more than one path for the gcp auth method. I already followed the tutorial documentation and created the auth method at the default path of /gcp. Added a service account for my main project at gcp/config and added a roleset for it at gcp/roleset
This works as intended.
But I need to add another project and I’m running into issues.
So I create a new gcp auth method under a different path:
vault auth enable -path=project2 gcp
But when trying to add the service account credentials for the new project
vault write project2/config email@example.com
Error writing data to project2/config: Error making API request. URL: PUT https://vault.xxx.xxx:8200/v1/project2/config Code: 404. Errors: * no handler for route 'project2/config'
I assume this is not the way to do it, but I’ve not found any docs yet on how to do this properly. I don’t want to overwrite what is in gcp/config with the project2 service account or does it do an add vs replace?
How would one go about doing this?