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

[compatibility] Backward compatibility with references to secrets and globals using the Mustache syntax #515

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

eolivelli
Copy link
Member

Summary:

with #507 old applications that use secrets (so 100% of them) require to be rewritten, it is better to not require it.
This patch adds a small backward compatibility layer that allows to interpret secrets and globals using the Mustache syntax.

Please note that when you use Mustache the result is always a string, so if you have a number or a list, you will see them returned as strings.

The suggested way to refer to a secret is now ${secrets.id.field} and ${globals.variable}

@eolivelli eolivelli merged commit 4bdeaa6 into main Oct 2, 2023
8 checks passed
@eolivelli eolivelli deleted the impl/compatible-placeholders branch October 2, 2023 19:50
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant