docs: remove the package version status 403 response - #73
Draft
nishantms wants to merge 1 commit into
Draft
Conversation
|
🚀 Preview deployed! You can view the preview of your changes here: https://npm-6bf648fb67-61146453.drafts.github.io/ This preview will be updated automatically when you push new commits to this PR. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Removes the
403response from the package version status endpoint. It documented the rollout gate, which is being removed in npm/registry-frontdoor#1198.Part of: https://github.com/github/npm/issues/15578
Why
403on this endpoint only ever meant "package version status is not enabled for this package". It was never an authorization signal. A caller who cannot read a package has always received404, deliberately indistinguishable from a version that does not exist, so the response never reveals whether a package the caller cannot see exists. That404behaviour is unchanged.Once the feature flag is gone the endpoint cannot return
403at all, so documenting it would be misleading.What Changed
"403"entry from the operation'sresponsesPackageVersionStatusForbiddencomponentRemaining responses:
200,400,401,404,429,500,503.503is unaffectednpm/registry-frontdoor#1199 removes the transitional guard that was this route's only self-raised
503, but the lookup path still forwards an upstream503, soPackageVersionStatusUnavailablestays accurate and is left in place.Merge order
Land this after npm/registry-frontdoor#1198 is deployed. Merging earlier leaves a window where the endpoint can still return a
403that is no longer documented.Risk Assessment
Low. Documentation only, describing a response that is being removed from the service.