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

Introduce delegation SAS #10159

Merged
merged 7 commits into from
Aug 30, 2024
Merged

Introduce delegation SAS #10159

merged 7 commits into from
Aug 30, 2024

Conversation

erdembayar
Copy link
Contributor

@erdembayar erdembayar commented Aug 26, 2024

Partially addresses: https://github.com/NuGet/Engineering/issues/5387 and https://github.com/NuGet/Engineering/issues/5433

Introduce delegation SAS, which is more secure than SAK-based SAS.
I didn't reuse or extend the existing SAS generate method and created a new GetDelegationSasAsync and GetPrivilegedFileUriWithDelegationSasAsync because I want to be explicit when the customer generates the SAS token and not accidentally consume the old SAK one. Eventually, we can deprecate the SAK-based one without worry later.
Also extending the old SAK based on caused API breaking change.

@erdembayar erdembayar force-pushed the dev-eryondon-delegationSAS branch from 116119f to c1f9128 Compare August 28, 2024 02:28
@erdembayar erdembayar marked this pull request as ready for review August 29, 2024 19:24
@erdembayar erdembayar requested a review from a team as a code owner August 29, 2024 19:24
joelverhagen
joelverhagen previously approved these changes Aug 30, 2024
@erdembayar erdembayar merged commit 4c6725a into dev Aug 30, 2024
2 checks passed
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