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

Apphosting emulator - local secrets support via apphosting:config:export command #7831

Merged
merged 44 commits into from
Oct 31, 2024

Conversation

mathu97
Copy link
Contributor

@mathu97 mathu97 commented Oct 14, 2024

Adds a new command apphosting:config:export to export secrets (and other configurations in the future).

This new command reads from the chosen apphosting files present in the user's project codebase, hits Google Secret Manager to get the values of theses secrets, and writes them to the apphosting.local.yaml file. The apphosting.local.yaml file is automatically loaded into the app hosting emulator when firebase emulators:start is run.

src/apphosting/config.ts Outdated Show resolved Hide resolved
src/apphosting/config.ts Outdated Show resolved Hide resolved
src/apphosting/config.ts Outdated Show resolved Hide resolved
src/apphosting/config.ts Outdated Show resolved Hide resolved
src/apphosting/utils.ts Outdated Show resolved Hide resolved
@mathu97 mathu97 requested review from tonyjhuang and taeold October 24, 2024 21:04
@mathu97 mathu97 requested a review from tonyjhuang October 29, 2024 04:05
src/apphosting/config.ts Outdated Show resolved Hide resolved
src/apphosting/secrets/index.ts Outdated Show resolved Hide resolved
src/apphosting/config.ts Outdated Show resolved Hide resolved
src/apphosting/config.ts Outdated Show resolved Hide resolved
src/apphosting/secrets/index.ts Outdated Show resolved Hide resolved
src/apphosting/yaml.ts Show resolved Hide resolved
src/apphosting/yaml.ts Outdated Show resolved Hide resolved
src/apphosting/yaml.ts Outdated Show resolved Hide resolved
src/commands/apphosting-config-export.ts Outdated Show resolved Hide resolved
src/commands/apphosting-config-export.ts Outdated Show resolved Hide resolved
@mathu97 mathu97 requested a review from tonyjhuang October 30, 2024 20:14
src/apphosting/secrets/index.ts Show resolved Hide resolved
src/apphosting/secrets/index.ts Show resolved Hide resolved
src/apphosting/utils.ts Outdated Show resolved Hide resolved
src/apphosting/utils.ts Outdated Show resolved Hide resolved
src/apphosting/config.ts Outdated Show resolved Hide resolved
src/apphosting/yaml.ts Outdated Show resolved Hide resolved
src/apphosting/yaml.ts Outdated Show resolved Hide resolved
src/commands/apphosting-config-export.ts Outdated Show resolved Hide resolved
src/commands/apphosting-config-export.ts Outdated Show resolved Hide resolved
src/emulator/apphosting/config.ts Outdated Show resolved Hide resolved
@mathu97 mathu97 requested a review from tonyjhuang October 31, 2024 15:26
src/apphosting/config.ts Outdated Show resolved Hide resolved
src/commands/apphosting-config-export.ts Outdated Show resolved Hide resolved
src/emulator/apphosting/config.ts Outdated Show resolved Hide resolved
@mathu97 mathu97 requested a review from tonyjhuang October 31, 2024 16:36
Copy link
Contributor

@tonyjhuang tonyjhuang left a comment

Choose a reason for hiding this comment

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

thanks for all the changes! 🔥🔥

src/apphosting/utils.ts Outdated Show resolved Hide resolved
src/apphosting/yaml.ts Outdated Show resolved Hide resolved
@mathu97 mathu97 enabled auto-merge (squash) October 31, 2024 18:09
@mathu97 mathu97 merged commit 54d6aa7 into master Oct 31, 2024
42 of 45 checks passed
@mathu97 mathu97 deleted the apphosting-emulator/pull-secrets branch October 31, 2024 18:37
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.

3 participants