Repository navigation
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions 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. |
The committers listed above are authorized under a signed CLA. |
|
Welcome @SkiAn2007! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: SkiAn2007 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Facing with issues to run tests locally, is there any tests pipeline on PR? |
|
#2256 (comment) Yes the PR has presubmits. Looks like it was waiting for approval to run. I just triggered the test. |
|
|
||
| def _refresh_oidc(self, provider): | ||
| config = Configuration() | ||
| config = Configuration().get_default_copy() |
There was a problem hiding this comment.
Who do you mean? As far as I see all tests are passed.
I checked this change locally, and it works.
|
/assign |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
i think @roycaihw was asking if you could add a new unittest case for this |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
/remove-lifecycle stale |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
/remove-lifecycle stale |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
/remove-lifecycle rotten |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
|
@k8s-triage-robot: Closed this PR. DetailsIn 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-sigs/prow repository. |
|
/reopen |
|
@SkiAn2007: Reopened this PR. DetailsIn 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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: SkiAn2007 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
roycaihw
left a comment
There was a problem hiding this comment.
Since v37, Configuration() picks the proxy up from the environment, but it keys off config.host, which is still the http://localhost default here. Setting config.host to the issuer URL would pick HTTPS_PROXY and honor NO_PROXY for the IdP.
I'd do that instead of get_default_copy(). The default isn't set yet on the first load_kube_config(), and when it is, it carries the API server's client cert and tls_server_name into the IdP request.
Also needs a rebase (the file moved to kubernetes/config/kube_config.py) and a unit test.
|
Addressed: _refresh_oidc now builds Configuration(host=idp-issuer-url) instead of get_default_copy(), so the env proxy / NO_PROXY apply to the IdP and API-server TLS settings no longer leak. Rebased onto master (file moved to kubernetes/config/kube_config.py) and added test_oidc_refresh_uses_env_proxy_for_issuer. |
Configuration() picks the proxy from the environment based on its host, which defaulted to http://localhost in _refresh_oidc, so HTTPS_PROXY was never used for the IdP discovery request. Set host to idp-issuer-url so the scheme-specific proxy and NO_PROXY are honored for the IdP.
What type of PR is this?
/kind bug
What this PR does / why we need it:
This fix allows client to communicate with OIDC provider which located out of company perimeter and requires to use proxy server
Does this PR introduce a user-facing change?
NONE