Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error binding to Google Document AI #226

Open
Wuz3t opened this issue Sep 13, 2024 · 0 comments
Open

Error binding to Google Document AI #226

Wuz3t opened this issue Sep 13, 2024 · 0 comments

Comments

@Wuz3t
Copy link

Wuz3t commented Sep 13, 2024

We are trying to get access token for our document ai processor.
Here is our configuration

vault write gcp/roleset/role-name 
project="proj-name" 
secret_type="access_token"
token_scopes="https://www.googleapis.com/auth/cloud-platform" 
bindings='resource "https://eu-documentai.googleapis.com/projects/<projnumber>" {roles = ["roles/documentai.viewer"
]}'
Error writing data to gcp/roleset/system-hpz-docai: Error making API request.

URL: PUT http://127.0.0.1:8200/v1/gcp/roleset/role-name 
Code: 400. Errors:

invalid resource "https://eu-documentai.googleapis.com/projects/<projnumber>": unsupported service/version for resource with prefix https://eu-documentai.googleapis.com/

Is this expected? How we can set up vault to recive access tokens for this API.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant