hashicorp / vault

A tool for secrets management, encryption as a service, and privileged access management
https://www.vaultproject.io/
Other
31.21k stars 4.22k forks source link

[object Object] error while creating a Service Principal in HCP Vault Secrets #22271

Open DamianArado opened 1 year ago

DamianArado commented 1 year ago

Describe the bug Hi, I'm using HCP Vault Secrets and testing it using this doc: https://developer.hashicorp.com/vault/tutorials/hcp-vault-secrets-get-started/hcp-vault-secrets-retrieve-secret But I cannot create a Service Principal at https://portal.cloud.hashicorp.com/access/service-principals/create?org_id=MY_ORG_ID&project_id=MY_PROJECT_ID

To Reproduce Steps to reproduce the behavior:

  1. Go to https://portal.cloud.hashicorp.com/access/service-principals/create?org_id=MY_ORG_ID&project_id=MY_PROJECT_ID

  2. Fill in the blanks.

    Screenshot 2023-08-10 at 3 54 30 PM
  3. See error as given in the screenshot.

Expected behavior It should create the project-level Service Principal as described here: https://developer.hashicorp.com/hcp/docs/hcp/admin/iam/service-principals

Environment:

Additional context Console output attached.

POST https://api.cloud.hashicorp.com/iam/2019-12-10/organizations/xxxxxxxjibberishxxxxx/projects/xxxxxxxjibberishxxxxx/service-principals 400
VioletHynes commented 1 year ago

Hey! Thanks for raising this issue. I've raised this internally with the right team and I'll keep you posted if I hear anything!

kartiklunkad26 commented 1 year ago

@DamianArado Apologies for our late reply. Are you still facing this issue? Do you have at least Contributor permissions on the Org or Project you are trying to create the Service Principal?

Have you met the quota of 5 Service Principals in your Org or Project?

kartiklunkad26 commented 1 year ago

If you're still facing the issue, feel free to setup time with us and we can help you get past it as well.