Skip to content

Make auth backend name configurable#151

Merged
OpsBotPrime merged 1 commit intochannable:masterfrom
koikonom:cfg_auth_backend
Jun 3, 2025
Merged

Make auth backend name configurable#151
OpsBotPrime merged 1 commit intochannable:masterfrom
koikonom:cfg_auth_backend

Conversation

@koikonom
Copy link
Contributor

@koikonom koikonom commented May 23, 2025

Allows users to specify the name of their authentication backend if it's different than the default one.

Closes #150

README.md Outdated
port, separated with a ':'. Cannot be combined with
either VAULT_PORT or VAULT_HOST
--auth-backend AUTH_BACKEND
Name of Vault authentication backend.Defaults to
Copy link

Choose a reason for hiding this comment

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

nit: missing space after "."

README.md Outdated
--auth-backend AUTH_BACKEND
Name of Vault authentication backend.Defaults to
'kubernetes' or 'github' depending on the type of
thechosen authentication method. Also configurable
Copy link

Choose a reason for hiding this comment

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

nit: the chosen

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@Riscky Riscky left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!
We need to change the default, otherwise this LGTM

README.md Outdated
--auth-backend AUTH_BACKEND
Name of Vault authentication backend.Defaults to
'kubernetes' or 'github' depending on the type of
thechosen authentication method. Also configurable
Copy link
Contributor

Choose a reason for hiding this comment

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

src/Config.hs Outdated
Comment on lines +611 to +612
<> help ("Name of Vault authentication backend."
++ "Defaults to 'kubernetes' or 'github' depending on the type of the"
Copy link
Contributor

Choose a reason for hiding this comment

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

The lack of spaces at the end of these strings cause the thing that @ig11987 pointed out in the readme.

@koikonom koikonom force-pushed the cfg_auth_backend branch from 084489a to b1ab447 Compare May 27, 2025 11:32
Allows users to specify the name of their authentication backend if it's
different than the default one.

Co-authored-by: Ruud van Asseldonk <dev@veniogames.com>
@koikonom koikonom force-pushed the cfg_auth_backend branch from b1ab447 to bf03b77 Compare May 28, 2025 13:54
@koikonom koikonom requested review from Riscky, ig11987 and ruuda May 28, 2025 13:56
@koikonom
Copy link
Contributor Author

koikonom commented May 28, 2025

For us to be able to print the authentication backend value, as @ruuda suggested, we first need for it to be available when the config is built, so I moved the logic to that stage.

Copy link
Contributor

@Riscky Riscky left a comment

Choose a reason for hiding this comment

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

LGTM

I'll draft a release tomorrow

@Riscky
Copy link
Contributor

Riscky commented Jun 3, 2025

@OpsBotPrime merge

@OpsBotPrime
Copy link
Contributor

Rebased as bf03b77, waiting for CI …

@OpsBotPrime
Copy link
Contributor

CI job 🟡 started.

@OpsBotPrime OpsBotPrime merged commit bf03b77 into channable:master Jun 3, 2025
1 check was pending
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.

Support for non-default k8s auth backends?

5 participants