Skip to content

Conversation

@inlined
Copy link
Member

@inlined inlined commented Mar 25, 2025

  1. Removes apphosting export command as we no longer recommend storing secrets in plaintext.
  2. Offers to create apphosting.emulator.yaml if it does not exist
  3. If creating apphosting.emulator.yaml, offers to overwrite any value in apphosting.yaml
  4. When overwriting secrets, detects that a secret reference ID already exists and confirms whether the user actually wants to reuse the secret reference
  5. For secrets in { ...apphosting.yaml[env], ...apphosting.emulator.yaml[env]} prompts for a set of emails to grant access
  6. Prints detailed logs on how to grant access if projectId is missing

projectId may become necessary, depending on some changes @jamesdaniels is looking at, but this should all be forwards compatible with these changes.

@inlined inlined changed the base branch from inlined.secrets-set to master March 25, 2025 16:25
if ("value" in env[name]) {
const newValue = await prompt.promptOnce({
type: "input",
message: `What new value would you like for plaintext ${name}?`,
Copy link
Contributor

Choose a reason for hiding this comment

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

wondering if default should be current value as a means. to show users what the value currently is.

secretRef = await prompt.promptOnce({
type: "input",
message: `What would you like to name the secret reference for ${name}?`,
// TODO: kebab case + test
Copy link
Contributor

Choose a reason for hiding this comment

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

did you want to fix this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually fixed it and forgot to remove the TODO 😆

@inlined inlined enabled auto-merge (squash) March 25, 2025 22:52
@inlined inlined merged commit cd372a2 into master Mar 25, 2025
49 checks passed
@inlined inlined deleted the inlined.emulators-init branch March 25, 2025 23:05
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