You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "kumaab (via GitHub)" <gi...@apache.org> on 2026/05/24 05:34:55 UTC
Re: [PR] RANGER-5499: Set ranger-admin header authn cfg values to null [ranger]
kumaab commented on PR #968:
URL: https://github.com/apache/ranger/pull/968#issuecomment-4527509990
> @kumaab - in addition to these updates, consider updating `RangerHeaderPreAuthFilter.initialize()` as shown below:
>
> ```
> protected void initialize() {
> headerAuthEnabled = PropertiesUtil.getBooleanProperty(PROP_HEADER_AUTH_ENABLED, false);
>
> if (headerAuthEnabled) {
> userNameHeaderName = PropertiesUtil.getProperty(PROP_USERNAME_HEADER_NAME);
>
> if (StringUtils.isBlank(userNameHeaderName)) {
> LOG.warn("Disabling header-based authentication, as configuration {} is not set", PROP_USERNAME_HEADER_NAME);
>
> headerAuthEnabled = false;
> }
> }
> }
> ```
Sure, makes sense, updated!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org