Skip to content

Conversation

@justinc1
Copy link
Collaborator

PR allows collection to login to HyperCore cluster using a username form external OIDC provider. New environ varibale SC_AUTH_METHOD (possible value None/unset, local or oidc) is added as we need to know where is user defined.

Previously we used HTTP basic login for each request. PR first refactored code to get sessionID from HC3 and reuse it for subsequent requests.

Since OIDC is configured on .50 test cluster only, the CI job utils_login will be run only there.
The inventory plugin will run on .200 and .201 VSNS (just as before). But since we do not test OIDC on VSNS, OIDC is not configured there, so now we test inventory plugin on .50 also, and there (and only there) inventory plugin with OIDC user is tested.

justinc1 added 5 commits May 18, 2023 08:18
The returned sessionID is then sent in subsequent requests.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
The oidc_config was tested there a while ago, so we have OIDC configured.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1 justinc1 requested review from PolonaM and domendobnikar May 18, 2023 08:23
@justinc1 justinc1 self-assigned this May 18, 2023
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1
Copy link
Collaborator Author

justinc1 commented May 18, 2023

justinc1 added 2 commits May 18, 2023 12:46
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Do not change SC_AUTH_METHOD to oidc if OIDC is not configured.
Cleanup will fail if we do this.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Copy link
Collaborator

@PolonaM PolonaM left a comment

Choose a reason for hiding this comment

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

Thank you! I have only comments about the documentation

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1 justinc1 merged commit 178e044 into main May 22, 2023
@justinc1 justinc1 deleted the oidc-login branch May 22, 2023 06:22
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.

4 participants