Skip to content

Fix Kong wrapper config script sed delimiter to allow using Base64 values #109

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RayHammer
Copy link

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

If any of the env vars among SUPABASE_ANON_KEY, SUPABASE_SERVICE_KEY, DASHBOARD_USERNAME or DASHBOARD_PASSWORD for Kong happen to be Base64-encoded and/or contain forward slashes, sed will fail to process them into a template, throwing a parsing error

What is the new behavior?

With delimiters replaces by | symbols, these may fix an aforementioned issue, but it would become undesirable to use this symbol in any of the environment variables

Additional context

By all means, it's a quick and dirty fix, as it substitutes one illegal symbol for a less common one. A better fix may be in order that would not rely on using any of the symbols that may break the substitution

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