Skip to content

Conversation

@ArtjomsPorss
Copy link
Contributor

Description

call cloud sso for resource access list, fallback to zms on error

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

@ArtjomsPorss ArtjomsPorss marked this pull request as ready for review August 20, 2025 17:14
@ArtjomsPorss ArtjomsPorss marked this pull request as draft August 20, 2025 17:16
@ArtjomsPorss ArtjomsPorss marked this pull request as ready for review August 21, 2025 14:34
msd: CLIENTS.msd(req, setCookieinClients(req)),
zts: CLIENTS.zts(req, setCookieinClients(req)),
ums: CLIENTS.ums(req, setCookieinClients(req)),
cloud_sso: CLIENTS.zms(req, setOktaCookieinClients(req)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be a better idea to create a separate client for cloud_sso but point it to zms rdl. Also is this the first cloud_sso is being referenced in here? If yes, lets add a small comment on the rationale behind CLIENTS.cloud_sso

Comment on lines +59 to +66
// cloud_sso is a cache of zms's resource access lists
CLIENTS.cloud_sso = rdlRest({
apiHost: config.cloud_sso,
rdl: require('../config/zms.json'),
requestOpts: {
strictSSL: config.strictSSL,
},
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abvaidya added separate client and comment as requested

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArtjomsPorss please fix the lint issue

@abvaidya abvaidya merged commit 346e225 into AthenZ:master Aug 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants