-
Notifications
You must be signed in to change notification settings - Fork 2
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
PROD-54189 Fix regex configuration via environment variables #113
Conversation
@ChristosLabrou why is this happening? I see that orka does the wiring of env vars to regexp. Riviere isn't the place to do this. Is sth missing from here: https://github.com/Workable/orka/blob/master/src/initializers/riviere.ts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make any needed changes to orka. Riviere is expecting a js object as configuration so passing string where riviere expects a regex makes little sense
This was my initial attempt but didn't work when testing. There is an override for |
That orka is passing configuration wrongly is orka's issue to fix.
Possibly leftover from older implementations. Doesn't justify repeating it. (E.g note that in an initial implementation default option was a string here: c9531a1) |
It is not just orka's issue as far as I understand. When you override the regex from helm release, whatever transformation you do in orka, here you will have a string cc: @nikostoulas |
@klesgidis No. Riviere is initialized with code not from env. So it's the code's responsibility to pass a regex. This code for our apps lies in orka. |
oh you're right |
Closing this. Will open PR in Orka instead as discussed |
When an expected Regex would be passed as a string (which happens when setting regexes via environment variables) then riviere would throw in specific points and not log requests.