-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AGENT-876: Authenticate systemd services and curl requests #8393
AGENT-876: Authenticate systemd services and curl requests #8393
Conversation
pawanpinjarkar
commented
May 10, 2024
•
edited
Loading
edited
- Set JWT token in the expected env var AGENT_AUTH_TOKEN as needed by assisted service
- Set authorization header in the API requests
- Pass AGENT_AUTH_TOKEN env var to required systemd services
@pawanpinjarkar: This pull request references AGENT-876 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Skipping CI for Draft Pull Request. |
/hold |
/retest-required |
34cc96b
to
9be9053
Compare
@pawanpinjarkar: This pull request references AGENT-876 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/hold cancel |
/cc @rwsu @andfasano |
9be9053
to
e9e6170
Compare
@pawanpinjarkar: This pull request references AGENT-876 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
To test the authentication feature, this and other code changes from relevant PRs need to work together.
And most importantly, updating the auth type env var |
e9e6170
to
e8c5ff8
Compare
3d9c0d8
to
6e69fa9
Compare
6e69fa9
to
69afd19
Compare
/retest-required |
a9e01f9
to
88a4ad5
Compare
/test e2e-agent-compact-ipv4 |
1 similar comment
/test e2e-agent-compact-ipv4 |
88a4ad5
to
99b25a1
Compare
/retest-required |
0b47115
to
3064551
Compare
3064551
to
7545d70
Compare
@pawanpinjarkar: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@@ -75,6 +75,7 @@ type agentTemplateData struct { | |||
ConfigImageFiles string | |||
ImageTypeISO string | |||
PublicKeyPEM string | |||
Token string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Do you want the name to be more specific like AuthToken
? Token
seems a bit generic.
/lgtm A minor nit. Won't hold the PR for this. |
341dcbf
into
openshift:master
[ART PR BUILD NOTIFIER] This PR has been included in build ose-installer-altinfra-container-v4.17.0-202407052012.p0.g341dcbf.assembly.stream.el9 for distgit ose-installer-altinfra. |