Skip to content

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

Closed

Description

@kencanak

[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

Activity

  1. google-oss-bot commented on May 11, 2022

    @google-oss-bot
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions