We have added new secrets in our code and in cloudbuild.yaml mentioning same as other secrets
Hi @Monalisa123,
Welcome to the Google Cloud Community!
@Monalisa123 wrote:
FYI Other secrets working fine
Are these secrets located within the same project where you're experiencing the error?
It's possible that the secret is being referenced incorrectly in ${_SECRET_PROJECT_NUMBER}
. Could you try entering the project number directly instead?
Also, kindly check that the service account has the appropriate roles, specifically the secretmanager.secretAccessor
and secretmanager.viewer
roles. You may view this Stack Overflow thread for further solutions.
Let me know if it worked so we can troubleshoot further. Thank you.