feat: add API key namespace restriction, MODULE_FULL type and g… - #106
feat: add API key namespace restriction, MODULE_FULL type and g…#106markdjones82 wants to merge 10 commits into
Conversation
…it provider UI - Add optional namespace restriction to upload and publish API keys - Store matched DB-backed API key on Flask g during authentication - Add MODULE_FULL api key type granting both upload and publish permissions - Add namespace restriction field to API Keys UI - Add git provider management UI page - Add provider sources UI page - New alembic migrations for api_key table and namespace column
| 'post': [terrareg.auth_wrapper.auth_wrapper('is_admin')] | ||
| } | ||
|
|
||
| def _post_arg_parser(self): |
There was a problem hiding this comment.
With these changes to the API, there's a script scripts/generate_readme.py (badly named), which will update the API docs with the new endpoint specs :)
There was a problem hiding this comment.
I am getting module errors when trying to run the generate :/
|
|
||
|
|
||
| class ApiTerraregGitProviders(ErrorCatchingResource): | ||
| """Interface to obtain git provider configurations.""" |
There was a problem hiding this comment.
Could you update this to include both retrieving, create, modifying and deleting?
There was a problem hiding this comment.
Not sure what to change here, retrieve/create is handled by the collection class and modify/delete are in the item class. Were you thinking it be done a different way?
Adds nullable column to allow scoping API keys to a namespace.
Update api key notification
Add delete along with revoke for API keys
|
Ok, updated and ready for a re-review. Feel free to take it from here if you like. I think I've modified it as best as I understand what you are looking for! |
…it provider UI
Addresses:
#102
#105