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
Bug 1819246: Set service account issuer to internal dns name of kube apiserver #809
Bug 1819246: Set service account issuer to internal dns name of kube apiserver #809
Conversation
@marun: This pull request references Bugzilla bug 1819246, which is valid. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
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 kubernetes/test-infra repository. |
@marun: This pull request references Bugzilla bug 1819246, which is valid. 3 validation(s) were run on this bug
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 kubernetes/test-infra repository. |
/retest |
test/e2e/bound_sa_token_test.go
Outdated
@@ -237,7 +238,7 @@ func TestChangeServiceAccountIssuer(t *testing.T) { | |||
// Wait for operator readiness | |||
test.WaitForKubeAPIServerClusterOperatorAvailableNotProgressingNotDegraded(t, configClient) | |||
|
|||
defaultIssuer := "auth.openshift.io" | |||
defaultIssuer := "https://apiserver.openshift-kube-apiserver.svc" |
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.
In order for the SA OIDC discovery to work, this must be reachable from the outside of the cluster
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.
/hold
see openshift/api#617 (comment) first, since this PR somewhat depends on the api, I think we should add the hold to this PR until the discussion there is resolved
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.
As per the discussion mentioned above, set to https://kubernetes.default.svc
please
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.
Updated, PTAL.
The default issuer for bound service account tokensd is updated to point to the internal dns name of the kube apiserver to ensure compatibility with the ServiceAccountIssuerDiscovery feature added in kube 1.18.
365e026
to
0c34ea2
Compare
Also updated the enhancement for consistency: openshift/enhancements#281 |
/hold cancel |
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marun, stlaz, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-4.4 |
@marun: once the present PR merges, I will cherry-pick it on top of release-4.4 in a new PR and assign it to you. 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 kubernetes/test-infra repository. |
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
@marun: All pull requests linked via external trackers have merged: openshift/cluster-kube-apiserver-operator#809, openshift/api#617. Bugzilla bug 1819246 has been moved to the MODIFIED state. 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 kubernetes/test-infra repository. |
@marun: new pull request created: #823 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 kubernetes/test-infra repository. |
The default issuer for bound service account tokens is updated to point to the internal dns name of the kube apiserver to ensure compatibility with the
ServiceAccountIssuerDiscovery
feature [1] added in kube 1.18. This fix is intended to be backported to 4.4 (the release that added support for bound service account otkens) before GA to ensure that the default will be compatible from introduction with the discovery feature without having to update the issuer (which would involve reissuing all existing bound tokens).1: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#service-account-issuer-discovery
Related change: openshift/api#617