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

Change DELETE action from "*" to "delete" #2121

Merged
merged 2 commits into from
Jan 9, 2017
Merged

Change DELETE action from "*" to "delete" #2121

merged 2 commits into from
Jan 9, 2017

Conversation

nwt
Copy link
Contributor

@nwt nwt commented Jan 3, 2017

With token authentication, requiring the "*" action for DELETE requests
makes it impossible to administratively lock a repository against pushes
and pulls but still allow deletion. This change adds a new "delete"
action for DELETE requests to make that possible.

With token authentication, requiring the "*" action for DELETE requests
makes it impossible to administratively lock a repository against pushes
and pulls but still allow deletion.  This change adds a new "delete"
action for DELETE requests to make that possible.

Signed-off-by: Noah Treuhaft <[email protected]>
@nwt
Copy link
Contributor Author

nwt commented Jan 3, 2017

Just saw #2120.

@nwt nwt closed this Jan 3, 2017
@nwt
Copy link
Contributor Author

nwt commented Jan 3, 2017

I'm reopening this in case it's preferable to #2120.

@nwt nwt reopened this Jan 3, 2017
@codecov-io
Copy link

codecov-io commented Jan 3, 2017

Current coverage is 51.21% (diff: 100%)

Merging #2121 into master will decrease coverage by 10.02%

@@             master      #2121   diff @@
==========================================
  Files           129        129           
  Lines         11416      11416           
  Methods           0          0           
  Messages          0          0           
  Branches          0          0           
==========================================
- Hits           6991       5847   -1144   
- Misses         3534       4820   +1286   
+ Partials        891        749    -142   

Powered by Codecov. Last update 534b155...a33af05

@stevvooe
Copy link
Collaborator

stevvooe commented Jan 6, 2017

@nwt Need to confirm that * in a token appropriately matches delete.

Test that an auth token with the "*" action is allowed any action on its
resource.

Signed-off-by: Noah Treuhaft <[email protected]>
@stevvooe
Copy link
Collaborator

stevvooe commented Jan 7, 2017

@jlhawn PTAL

@jlhawn
Copy link
Contributor

jlhawn commented Jan 9, 2017

SGTM

@stevvooe
Copy link
Collaborator

stevvooe commented Jan 9, 2017

LGTM

1 similar comment
@dmcgowan
Copy link
Collaborator

dmcgowan commented Jan 9, 2017

LGTM

@dmcgowan dmcgowan merged commit 2bc4a94 into distribution:master Jan 9, 2017
@nwt nwt deleted the delete-action branch January 9, 2017 21:01
@dmcgowan dmcgowan added this to the Registry/2.7 milestone Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants