Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 104680b

Browse files
author
Chris Wiechmann
committed
Added an extra Debug-Message if AuthZ is skipped
for an unrestricted user. And added documentation that AuthZ must be disabled when using API_MANAGER_ENABLED=false
1 parent 2ea41e4 commit 104680b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

apibuilder4elastic/custom_flow_nodes/api-builder-plugin-authorization/src/actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ async function addApiManagerOrganizationFilter(params, options) {
6565
}
6666
// Skip, if the user an API-Gateway Admin
6767
if (user.gatewayManager.isUnrestricted) {
68+
logger.debug(`Skip user authorization as the user has unrestricted access.`);
6869
return elasticQuery;
6970
}
7071
// Initialize the filter array, if not given

env-sample

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,11 @@ API_MANAGER_PASSWORD=changeme
190190
# Another way of fallback based on the group not having the region configured
191191
# API_MANAGER=https://172.17.0.1:8075, group-2|https://api-manager-1:8075, group-2|eu|https://api-manager-2:8275
192192

193-
# If no API manager is in use, i.e. only API gateways, then you can disable it completely here.
194-
# As a result, no more lookups are executed in the direction of the API manager, but only locally.
193+
# If no API manager is in use, i.e. only API gateways, then you must disable it here.
194+
# As a result, no more lookups are executed in the direction of the API manager, however you can
195+
# still user local lookup files to provide context.
196+
# Additional you need to disable user authorization or use external REST API. Otherwise,
197+
# restricted users will not see any traffic. See parameter: AUTHZ_CONFIG
195198
# Used-By: API-Builder
196199
# API_MANAGER_ENABLED=false
197200

0 commit comments

Comments
 (0)