Skip to content

Conversation

@harmony7
Copy link
Member

Change summary

This PR complements fastly/Viceroy#527 enabling the CLI's manifest schema to recognize the env field in Secret Stores.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

Changes to Core Features:

  • Have you written new tests for your core changes, as applicable?
    The test fixture fastly-viceroy-update.toml has been updated to make sure that manifest updates persist the field.

  • Have you successfully run tests with your changes locally?

Are there any considerations that need to be addressed for release?

This relates to fastly/Viceroy#527 but doesn't have to wait for it before releasing this.

@harmony7 harmony7 requested a review from a team as a code owner September 19, 2025 05:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables loading Secret Store configuration through environment variables by adding support for an env field in the CLI's manifest schema. This complements a related Viceroy PR and allows secrets to be sourced from environment variables in addition to files and inline data.

  • Added env field to SecretStoreArrayEntry struct to support environment variable-based secret loading
  • Updated TOML marshaling logic to include the new env field when present
  • Added test fixture data to verify the env field persists through manifest updates

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pkg/manifest/local_server.go Added Env field to SecretStoreArrayEntry struct definition
pkg/manifest/file.go Updated TOML marshaling to include env field when present
pkg/manifest/testdata/fastly-viceroy-update.toml Added test case with env field configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@philippschulte philippschulte left a comment

Choose a reason for hiding this comment

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

LGTM

@harmony7 harmony7 enabled auto-merge (squash) September 19, 2025 16:12
@harmony7 harmony7 merged commit 982caad into main Sep 19, 2025
13 checks passed
@harmony7 harmony7 deleted the kats/secrets-from-env branch September 19, 2025 16:29
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