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

[cli] Allow to refer to local files in secrets.yaml and in instance.yaml using <file:xxx> syntax #341

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

eolivelli
Copy link
Member

Summary:

  • in secrets.yaml and instance.yaml you can now refer to local files using the file:xxx syntax
  • the file is automatically read from the local file system and copied into the YAML file
  • text files are kept as they are
  • binary files (for instance secure bundle zip files) are base64 encoded and prepended with the "base64:" prefix

Sample usage:

secrets:
  - name: vertex-ai
    id: vertex-ai
    data:
      url: https://us-central1-aiplatform.googleapis.com
      token: xxx
      serviceAccountJson: "<file:service-account.json>"
      region: us-central1
      project: myproject
  - name: astra
    id: astra
    data:
      username: xxx
      password: xxx
      secureBundle: "<file:secure-connect-bundle.zip>"

Please note that this is a CLI only feature, we will have to implement support for this syntax in the VS Code extension independently

@eolivelli eolivelli merged commit b40aef7 into main Sep 5, 2023
8 checks passed
@eolivelli eolivelli deleted the impl/file-references branch September 5, 2023 09:16
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant