Skip to content
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

OCPBUGS-27214: ccoctl - use proxy when validating CloudFront URL #654

Merged
merged 1 commit into from Feb 6, 2024

Conversation

mtulio
Copy link
Contributor

@mtulio mtulio commented Jan 17, 2024

Supporting proxy environment variables in ccoctl when creating aws identity provider with "private bucket", using CloudFront as OIDC endpoint.

Changes:

  • Support proxy in ccoctl when creating identity provider in aws with private bucket.

Tested scenarios/checklist:

  • Client with direct access to the internet (without proxy vars). Result: resources created
  • Client running from private subnet with proxy access (env var HTTP_PROXY set. Result: proxy used, resources created
  • Client running from private subnet without proxy access (env var HTTP_PROXY set). Result: failed (as expected)

Follow up:

Copy link
Contributor

openshift-ci bot commented Jan 17, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 17, 2024
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jan 17, 2024
@openshift-ci-robot
Copy link
Contributor

@mtulio: This pull request references Jira Issue OCPBUGS-27214, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

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.

@mtulio
Copy link
Contributor Author

mtulio commented Jan 17, 2024

/test all

@mtulio
Copy link
Contributor Author

mtulio commented Jan 17, 2024

/test all

@mtulio
Copy link
Contributor Author

mtulio commented Jan 17, 2024

/cc @jianping-shu @jstuever

Copy link

codecov bot commented Jan 17, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (8bca79f) 48.34% compared to head (f442cd5) 48.41%.
Report is 19 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #654      +/-   ##
==========================================
+ Coverage   48.34%   48.41%   +0.06%     
==========================================
  Files          96       96              
  Lines       11780    11778       -2     
==========================================
+ Hits         5695     5702       +7     
+ Misses       5452     5443       -9     
  Partials      633      633              
Files Coverage Δ
...g/cmd/provisioning/aws/create_identity_provider.go 65.32% <60.00%> (-0.36%) ⬇️

... and 3 files with indirect coverage changes

@mtulio
Copy link
Contributor Author

mtulio commented Jan 18, 2024

/test all

@jianping-shu
Copy link

/retest

Copy link
Contributor

@jstuever jstuever left a comment

Choose a reason for hiding this comment

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

Thanks for contributing. I believe we can simplify the code a bit while gaining HTTPS_PROXY and NO_PROXY at the same time.

pkg/cmd/provisioning/aws/create_identity_provider.go Outdated Show resolved Hide resolved
This change make support of proxy in ccoctl when getting fingerprint
from the OIDC endpoint on AWS.
@mtulio mtulio marked this pull request as ready for review February 2, 2024 19:56
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 2, 2024
@openshift-ci openshift-ci bot requested review from 2uasimojo and dlom February 2, 2024 19:56
@mtulio
Copy link
Contributor Author

mtulio commented Feb 2, 2024

/assign jstuever

@jstuever
Copy link
Contributor

jstuever commented Feb 2, 2024

/jira refresh

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Feb 2, 2024
@openshift-ci-robot
Copy link
Contributor

@jstuever: This pull request references Jira Issue OCPBUGS-27214, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @jianping-shu

In response to this:

/jira refresh

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.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Feb 2, 2024
@jstuever
Copy link
Contributor

jstuever commented Feb 2, 2024

/cherry-pick release-4.15

@openshift-cherrypick-robot

@jstuever: once the present PR merges, I will cherry-pick it on top of release-4.15 in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.15

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.

@openshift-ci-robot
Copy link
Contributor

@mtulio: This pull request references Jira Issue OCPBUGS-27214, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @jianping-shu

In response to this:

Supporting proxy environment variables in ccoctl when creating aws identity provider with "private bucket", using CloudFront as OIDC endpoint.

Changes:

  • Support proxy in ccoctl when creating identity provider in aws with private bucket.

Tested scenarios/checklist:

  • Client with direct access to the internet (without proxy vars). Result: resources created
  • Client running from private subnet with proxy access (env var HTTP_PROXY set. Result: proxy used, resources created
  • Client running from private subnet without proxy access (env var HTTP_PROXY set). Result: failed (as expected)

Follow up:

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.

@jstuever
Copy link
Contributor

jstuever commented Feb 2, 2024

/test e2e-aws-manual-oidc

@jstuever
Copy link
Contributor

jstuever commented Feb 2, 2024

/retest

Copy link
Contributor

openshift-ci bot commented Feb 3, 2024

@mtulio: all tests passed!

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/test-infra repository. I understand the commands that are listed here.

@jianping-shu
Copy link

Verified with cluster-bot build.
ccoctl worked with proxy in the private env.
Regression tests:
aws sts cluster with the public s3 installed successfully
aws sts cluster with the private s3 installed successfully

@mtulio
Copy link
Contributor Author

mtulio commented Feb 6, 2024

@jstuever @jianping-shu is this ok to go?

Copy link
Contributor

@jstuever jstuever left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 6, 2024
Copy link
Contributor

openshift-ci bot commented Feb 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jstuever, mtulio

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 6, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit a440ba8 into openshift:master Feb 6, 2024
12 checks passed
@openshift-ci-robot
Copy link
Contributor

@mtulio: Jira Issue OCPBUGS-27214: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-27214 has been moved to the MODIFIED state.

In response to this:

Supporting proxy environment variables in ccoctl when creating aws identity provider with "private bucket", using CloudFront as OIDC endpoint.

Changes:

  • Support proxy in ccoctl when creating identity provider in aws with private bucket.

Tested scenarios/checklist:

  • Client with direct access to the internet (without proxy vars). Result: resources created
  • Client running from private subnet with proxy access (env var HTTP_PROXY set. Result: proxy used, resources created
  • Client running from private subnet without proxy access (env var HTTP_PROXY set). Result: failed (as expected)

Follow up:

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.

@openshift-cherrypick-robot

@jstuever: new pull request created: #674

In response to this:

/cherry-pick release-4.15

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.

@mtulio mtulio deleted the ccoctl-proxy branch February 6, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants