Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase deploy function with secret does not set secret env #4540

Closed
kencanak opened this issue May 11, 2022 · 1 comment · Fixed by #4543
Closed

Firebase deploy function with secret does not set secret env #4540

kencanak opened this issue May 11, 2022 · 1 comment · Fixed by #4543

Comments

@kencanak
Copy link

kencanak commented May 11, 2022

[REQUIRED] Environment info

firebase-tools:
v10.9.0

node 14

Platform:

macOS, GitHub Actions

[REQUIRED] Test case

export const taskSchedulerEndPoint = functions
    .runWith({
      secrets: [
        'SECRET_NAME',
      ],
    })
    .https
    .onRequest(async (req, res) => {
      res.send('ok');
    });

[REQUIRED] Steps to reproduce

deploy a function with runWith secrets config

[REQUIRED] Expected behavior

Should set secret env accordingly

[REQUIRED] Actual behavior

no secret environment variables get set, in fact all previous secret env gets wiped out

@kencanak kencanak added the bug label May 11, 2022
@google-oss-bot
Copy link
Contributor

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants