mneethiraj commented on code in PR #1259:
URL: https://github.com/apache/ranger/pull/1259#discussion_r4113993755
##########
agents-common/src/main/java/org/apache/ranger/admin/client/AbstractRangerAdminClient.java:
##########
@@ -58,7 +58,8 @@ public void init(String serviceName, String appId, String
configPropertyPrefix,
this.gson = gson;
this.forceNonKerberos =
config.getBoolean(configPropertyPrefix + ".forceNonKerberos", false);
- this.forceSecureEndpointAccess =
config.getBoolean(configPropertyPrefix + ".forceSecureEndpointAccess", false);
+ /* secure endpoints by default; forceNonKerberos (non-kerberized
Ranger Admin) keeps the non-secure ones */
+ this.forceSecureEndpointAccess =
config.getBoolean(configPropertyPrefix + ".forceSecureEndpointAccess",
!forceNonKerberos);
Review Comment:
@kumaab - even when `forceNonKerberos=true`, I suggest keeping default for
`forceSecureEndpointAccess` as `true`. Using non-secure endpoints will require
explicit setting of `forceSecureEndpointAccess=false`.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]