Hey all! We were very eager to give this a try and...
# ask-metaflow
e
Hey all! We were very eager to give this a try and observed that this PR was merged a few weeks ago offering support for GCP secret manager. I didn’t see any docs on using this with GCP specifically, but I’ve been testing it locally after reading the source code from the PR and setting the secret manager environment variable to point to GCP:
Copy code
# New approach
@secrets(
        sources=[
            "projects/1234567/secrets/secretname/versions/latest",
            "projects/1234567/secrets/secretname2/versions/latest",
        ],
    )
This replaced the previous solution we had, which was not ideal for our use case, but functional:
Copy code
# Old approach
@kubernetes(
        secrets=[
            "secretname",
            "secretname2",
]
An error isn’t raised by the @secrets decorator, but this step of my flow is now failing partway through because the expected secret environment variable is missing. When I manually checked the environment variables in the pod running this step, I confirmed none of my secrets seem to get loaded in. Am I using this feature correctly?