feat: Better auth#40
Merged
Merged
Conversation
- Support multiple users in onPrem via username-password instead of trusted jwt - Enable password creation for root user at setup time
twk3
commented
Mar 24, 2026
Contributor
Author
twk3
left a comment
There was a problem hiding this comment.
Tested in local K8S cluster.
Still needs to be verified in EKS prior to release
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Description
Summary
Migrates authentication from JWT-based tokens to Better Auth, adding support for root user password configuration and new email settings.
Changes
Authentication Migration: Replaced
apiJwtTokenconfiguration withbetterAuthsecret configurationJWT_SECRETandJWT_SECRET_EXPIRYenvironment variablesBETTER_AUTH_SECRETandBETTER_AUTH_ENABLEDenvironment variablesBETTER_AUTH_URLpointing to the app hostRoot User Password: Added support for configuring root user password via Kubernetes secret
currents.rootUser.password.secretNameandcurrents.rootUser.password.keyvaluesON_PREM_PASSWORDenvironment variable when configuredEmail Configuration: Added new optional email settings
inviteFrom- Custom sender address for invitation emailsinviteBcc- BCC address for invitation emailsreportsBcc- BCC address for automated report emailsinviteExpirationDays- Configurable invitation link expirationlinksBaseUrl- Custom base URL for email linksDocumentation: Updated developer guide and EKS quickstart with new secret creation commands
Breaking Changes
currents.apiJwtToken.secretName→currents.betterAuth.secretNamecurrents.apiJwtToken.key→currents.betterAuth.key(default changed fromtokentosecret)currents.apiJwtToken.expiry(no longer applicable)Migration
Existing deployments need to:
currents-better-authsecret with a 64-character secretcurrents-root-usersecret with the admin passwordbetterAuthinstead ofapiJwtToken