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

For miwi use user delegated sas to allow bootstrap node to pull the ignition #186

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rajdeepc2792
Copy link
Contributor

@rajdeepc2792 rajdeepc2792 commented Oct 9, 2024

Which issue this PR addresses:

Fixes https://issues.redhat.com/browse/ARO-9712 in combination with ARO-RP PR:- Azure/ARO-RP#3894

What this PR does / why we need it:

For MIWI:

  • Since the storage accounts Cluster will have the shared access keys disabled, the ListAccountSAS won't work, so instead of Account SAS, we need UserDelegatedSAS token to pull the ignition blob from the Cluster Storage Account

Test plan for issue:

[x] Test the flow of cluster install such that the Shared Access Keys are disabled.
[x] Test the flow of cluster install such that the Cluster Service Principal Cluster are created correctly.

Is there any documentation that needs to be updated for this PR?

No

How do you know this will function as expected in production?

  • For non-MIWI cluster there's no functionality change
  • For MIWI cluster the flow has been tested by reversing the usesWorkloadIdentity function. The whole flow can be tested once the feature is tested.

/cherrypick release-4.15 release-4.14

@openshift-ci openshift-ci bot requested review from hlipsig and rogbas October 9, 2024 18:27
Copy link
Contributor

openshift-ci bot commented Oct 9, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rajdeepc2792
Once this PR has been reviewed and has the lgtm label, please assign bitoku for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@rajdeepc2792
Copy link
Contributor Author

Dependent on PR:- #175
#175 needs to be merged first

@rajdeepc2792 rajdeepc2792 force-pushed the ARO-9712-for-miwi-use-user-delegated-SAS branch from 999c202 to 213da15 Compare October 18, 2024 21:08
@rajdeepc2792 rajdeepc2792 force-pushed the ARO-9712-for-miwi-use-user-delegated-SAS branch from 213da15 to fb1d7be Compare October 22, 2024 21:05
Copy link
Contributor

openshift-ci bot commented Oct 22, 2024

@rajdeepc2792: 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-sigs/prow repository. I understand the commands that are listed here.

Copy link

@kimorris27 kimorris27 left a comment

Choose a reason for hiding this comment

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

Mostly LGTM! I left one question about something I want to understand better before fully approving.

}
currentTime := time.Now().UTC().Add(-10 * time.Second)
expiryTime := time.Now().UTC().Add(time.Hour)
perms := sas.BlobPermissions{Read: true}

Choose a reason for hiding this comment

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

I noticed that for CSP clusters we give "read" and "list", so why does only "read" work here?

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.

2 participants