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

Root polaris-server.yml not usable #620

Closed
snazy opened this issue Jan 7, 2025 · 1 comment
Closed

Root polaris-server.yml not usable #620

snazy opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@snazy
Copy link
Member

snazy commented Jan 7, 2025

Describe the bug

The polaris-server.yml in the root folder is made for testing purposes, and is by far not usable in production-ish setups. This is not nice and causes a lot of confusion and try-and-error round-trips - most of those errors aren't immediately visible to end users and only discoverable using an attached debugger.

Summary of the issues:

  • The default-realm cannot be bootstrapped - something like export POLARIS_BOOTSTRAP_DEFAULT-REALM_ROOT_CLIENT_ID=default_root_client, as documented, does not work in e.g. bash - also: nothing says that the realm and principal name must be upper case in the env var names.
  • oauth2 is configured to test - that doesn't make sense for prod use cases
  • authenticator same as for oauth2
  • tokenBroker is not configured and not mentioned at all in the config file
  • defaultRealm and defaultRealms options are at least confusing

The code design makes it extremely hard for users, even engineers, to figure out that and even harder why things do not work.

I propose to use this issue to come up with a better config mechanism via #469 and follow-ups.

The default configuration should at least work.

@snazy
Copy link
Member Author

snazy commented Jan 15, 2025

Closing after #469

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant