simplify the authorization.

This commit is contained in:
Andrea Dell'Amico 2021-11-17 16:29:54 +01:00
parent 53e09d243c
commit 94997f3d83
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,7 @@ api_role = *
/api/version = anon
{% if not cdh_zeppelin_secure_urls %}
/** = anon
{% else %}
{% elseif cdh_zeppelin_ldap_advanced_config %}
/api/interpreter/setting/restart/** = authc
{% if cdh_zeppelin_local_api_user %}
/api/interpreter/** = {{ cdh_zeppelin_secure_interpreter_api_roles }}
@ -128,4 +128,6 @@ api_role = *
/api/configurations/** = {{ cdh_zeppelin_secure_roles }}
/api/credential/** = {{ cdh_zeppelin_secure_roles }}
/** = authc
{% else %}
/** = authc
{% endif %}