-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add auth-required to config.json for Cargo http registry #26729
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GiteaBot
added
the
lgtm/need 2
This PR needs two approvals by maintainers to be considered for merging.
label
Aug 25, 2023
pull-request-size
bot
added
the
size/XS
Denotes a PR that changes 0-9 lines, ignoring generated files.
label
Aug 25, 2023
pull-request-size
bot
added
size/S
Denotes a PR that changes 10-29 lines, ignoring generated files.
and removed
size/XS
Denotes a PR that changes 0-9 lines, ignoring generated files.
labels
Aug 26, 2023
wxiaoguang
reviewed
Aug 26, 2023
wxiaoguang
approved these changes
Aug 26, 2023
GiteaBot
added
lgtm/need 1
This PR needs approval from one additional maintainer to be merged.
and removed
lgtm/need 2
This PR needs two approvals by maintainers to be considered for merging.
labels
Aug 26, 2023
lunny
approved these changes
Aug 27, 2023
GiteaBot
added
lgtm/done
This PR has enough approvals to get merged. There are no important open reservations anymore.
and removed
lgtm/need 1
This PR needs approval from one additional maintainer to be merged.
labels
Aug 27, 2023
KN4CK3R
requested changes
Aug 27, 2023
GiteaBot
added
lgtm/blocked
A maintainer has reservations with the PR and thus it cannot be merged
and removed
lgtm/done
This PR has enough approvals to get merged. There are no important open reservations anymore.
labels
Aug 27, 2023
GiteaBot
added
lgtm/done
This PR has enough approvals to get merged. There are no important open reservations anymore.
and removed
lgtm/blocked
A maintainer has reservations with the PR and thus it cannot be merged
labels
Aug 27, 2023
GiteaBot
added
lgtm/blocked
A maintainer has reservations with the PR and thus it cannot be merged
and removed
lgtm/done
This PR has enough approvals to get merged. There are no important open reservations anymore.
labels
Aug 28, 2023
GiteaBot
added
lgtm/done
This PR has enough approvals to get merged. There are no important open reservations anymore.
and removed
lgtm/blocked
A maintainer has reservations with the PR and thus it cannot be merged
labels
Aug 28, 2023
KN4CK3R
approved these changes
Aug 28, 2023
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Aug 29, 2023
* giteaofficial/main: Add fix incorrect can_create_org_repo for org owner team (go-gitea#26683) [skip ci] Updated translations via Crowdin Improve modal dialog UI (go-gitea#26764) Improve the "bug report" template and "support options" document (go-gitea#26753) Unify `border-radius` behavior (go-gitea#26770) Reduce some allocations in type conversion (go-gitea#26772) Refactor some CSS styles and simplify code (go-gitea#26771) Add auth-required to config.json for Cargo http registry (go-gitea#26729) refactor(API): refactor secret creation and update functionality (go-gitea#26751)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
lgtm/done
This PR has enough approvals to get merged. There are no important open reservations anymore.
size/S
Denotes a PR that changes 10-29 lines, ignoring generated files.
topic/packages
type/enhancement
An improvement of existing functionality
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cargo registry-auth feature requires config.json to have a property auth-required set to true in order to send token to all registry requests.
This is ok for git index because you can manually edit the config.json file to add the auth-required, but when using sparse
(setting index url to "sparse+https://git.example.com/api/packages/{owner}/cargo/"), the config.json is dynamically rendered, and does not reflect changes to the config.json file in the repo.
I see two approaches:
What the PR does: