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

add the ability to set the leader url #195

Merged

Conversation

yenoromm
Copy link

@yenoromm yenoromm commented May 20, 2024

This allows functionality discussed in #192.

When setting these values explicitly as environment variables, it fails due to duplicate keys. Changes to files on the leader are also ignored, this allows the values to be set cleanly.

@yenoromm
Copy link
Author

Would love to get this reviewed and make changes if it is something minor holding this back

@@ -45,6 +45,7 @@ This section covers the most likely values to override. To see the full scope of
|---|----|-------------|
|config.adminPassword|String|The password you want the admin user to have set.|
|config.token|String|The auth key you want to set up for worker access. The Cribl Stream instance is configured as a distributed leader server only if this value is set. (This can, of course, also be configured via the Cribl Stream UI.) |
|config.leaderUrl|String|When setting config.token, the env vars CRIBL_DIST_MASTER_URL and CRIBL_DIST_LEADER_URL are set, this value allows overriding the default string. This can allow you to enforce TLS leadercoms or other settings configured with this string. |
Copy link
Collaborator

Choose a reason for hiding this comment

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

The goal here is to use tls:// in URL or there are other reasons to override leader URL?
If so, I would suggest to introduce a new variable in values like leaderProtocol (may be not the best name) to use:
"%s://%s@%s:4200" .Values.config.leaderProtocol .Values.config.token .Values.config.token .Values.config.bindHost

Copy link
Author

@yenoromm yenoromm Jul 19, 2024

Choose a reason for hiding this comment

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

Since instance.yml is ignored when CRIBL_DIST_* environment vars are set, all settings available in instance.yml (cert locations, tls version, mTLS etc) may need to be configured here

@a-klebanov a-klebanov merged commit ae2759b into criblio:master Jul 19, 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.

4 participants