Add support for secrets in v2 by taeold · Pull Request #1079 · firebase/firebase-functions · GitHub
Skip to content

Add support for secrets in v2 - #1079

Merged
taeold merged 9 commits into
masterfrom
dl-v2-secrets
Apr 29, 2022
Merged

taeold merged 9 commits into
masterfrom
dl-v2-secrets

Conversation

@taeold

@taeold taeold commented Apr 16, 2022 •

Copy link
Copy Markdown
Contributor

In addition to adding secrets to v2 __endpoint annotation, I'm also making following (small) changes:

  • Enforce that platform be part of trigger annotation - Firebase CLI already assumes that it's included.
  • Endpoint secret environment variable annotation (for v1 & v2)

@taeold
taeold requested review from colerogers and inlined April 20, 2022 16:28
Comment thread src/v2/options.ts Outdated

@inlined inlined left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally wouldn't have moved HttpsOptions

Comment thread src/v2/options.ts Outdated
Comment thread src/v2/options.ts Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. Isn't this specifying both the env var and the secret name? DIdn't we not want to do that in the SDK but in the CLI since (in the future) the build process needs to not set the secret name so that extensions can?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah excellent catch.

Comment thread src/v2/providers/https.ts
Comment thread src/v2/options.ts
@taeold
taeold requested a review from colerogers April 29, 2022 05:48
@taeold
taeold merged commit c91fd9b into master Apr 29, 2022
@taeold
taeold deleted the dl-v2-secrets branch April 29, 2022 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants