Skip to content

Add Support for Regionally-Scoped Secrets for Google Cloud Secrets Manager Backend #49709

Description

@jroachgolf84

Description

This feature will provide support for using regionally-scoped secrets stored in Google Secrets Manager.

Use case/motivation

The existing airflow.providers.google.cloud.secrets.secret_manager.CloudSecretManagerBackend does not support regionally-scoped Secrets, which is something that is becoming more and more popular for teams leveraging GCP. This prevents teams storing credentials regionally from using an out-of-the-box Secrets Backend.

Related issues

No related issues.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added and removed
    needs-triagelabel for new issues that we didn't triage yet
    on Apr 24, 2025
  2. harikrishna12524 commented on Apr 27, 2025

    @harikrishna12524
    Contributor

    @potiuk Could I give a try ?

  3. potiuk commented on Apr 27, 2025

    @potiuk
    Member

    go ahead

  4. jroachgolf84 commented on May 5, 2025

    @jroachgolf84
    CollaboratorAuthor

    @harikrishna12524, just wanted to check in and see how things were going. Need anything from me?

  5. harikrishna12524 commented on May 6, 2025

    @harikrishna12524
    Contributor

    Hi @jroachgolf84 ,

    Do you need feature for sending via regional endpoint also ?

    As I read the documentation, if we specify location of secret, the request might still go to generic region and get redirected. So, we have to specify regional endpoint if we need to request to directly access the secret via regional endpoint.

    This link has regions where we can store secrets and whether it supports regional endpoint or not.
    https://cloud.google.com/secret-manager/docs/locations.

    I was trying to provide fix, but my laptop was not proper, so I couldn't get started. I got it fixed yesterday 😃.

  6. jroachgolf84 commented on May 12, 2025

    @jroachgolf84
    CollaboratorAuthor

    Yes! We'll need to support the regional endpoint as well. Do you have a PR open?

  7. jroachgolf84 commented on May 21, 2025

    @jroachgolf84
    CollaboratorAuthor

    @harikrishna12524, just wanted to check in on this one. Were you able to create a PR?

  8. harikrishna12524 commented on May 21, 2025

    @harikrishna12524
    Contributor

    @jroachgolf84 I have completed the changes for regional endpoint and location_id in APIs. Just working on those tests. I think I will create a PR within weekend.

  9. jroachgolf84 commented on May 22, 2025

    @jroachgolf84
    CollaboratorAuthor

    Sounds great, let me know if you need anything from me!

  10. jroachgolf84 commented on May 22, 2025

    @jroachgolf84
    CollaboratorAuthor

    @potiuk, can you please re-open this issue, I didn't mean to close it.

  11. reopened this on May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions