Fix NWM dataservice running without caller impersonation - #56
Draft
js665999 wants to merge 1 commit into
Draft
Conversation
Signed-off-by: js665999 <js665999@broadcom.com>
Martin-Zeithaml
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ipExplorerDataServiceInstallersetauthType = SERVICE_AUTH_NATIVE_WITH_SESSION_TOKEN(authentication only) anddoImpersonation = FALSE, so every privileged NWM query (connections, listeners, ports, info) was dispatched to the ZIS cross-memory server under the ZSS/ZIS server's own identity, never the calling end user's.zisNWMServiceFunctionin zss (cmsTestAuth2against<prod-id>.IS.SRV.NWM, classFACILITY) — is a coarse, optional, admin-togglable "is this ZIS service enabled at all" switch, not a per-user, per-TCPIP-stack check against the real z/OS NETMGMT authorization (EZB.NETMGMT.sysname.tcpname.*, classSERVAUTH). With no impersonation, even that check tests the server's identity, not the caller's.httpService->doImpersonation = TRUE(dataService/src/ipExplorerDataService.c), matching the pattern already used by every other privileged zss data service that needs real per-user authorization (dataset access, USS file access, certificate/RACF management, server status). This causes the calling task's identity to be the real end user for the duration of the request, so EZBNMIFR's own nativeEZB.NETMGMT.*SAF check (and the ZIS-sidecmsTestAuth2gate, if enabled) is evaluated against the caller, not the server.