I’ve been testing the Secret Manager integration but I cannot make it work. I’ve implemented the most basic test I can think of.
I’ve defined a secret named “api_key” and Firebase Studio can see it through the integration (it correctly copies the value to the clipboard). When trying to access it through code, it seems to get an empty value:
dev.nix:
# Sets environment variables in the workspace
env = {
NEXT_PUBLIC_FIREBASE_API_KEY = builtins.getEnv "api_key";
TEST_VAR = "hello";
};
Thanks for replying. Yes, that’s what I did. It’s what I meant in my previous message with “Firebase Studio can see it through the integration”.
But I’m not sure if I’m using the secrets properly. How do I access them? I read that the Secrets Manager integration made the secrets available via env vars?
Did you ever figure this out? The only way I could get the Secrets Manager API to work is by Oauthing with Firebase Studio and granting it the access of my personal account. This obviously wouldn’t work in production and isn’t desirable during dev.
I also setup the vscode integration and everything worked through the side panel but not in the code.