glance/glance
Dan Smith ba37ea3227 Check get_image(s) in the API
This includes a change to catch Forbidden and convert to NotFound.
The previous Forbidden handler was not only correct (it shoud hide
the permissions error with "not found") but it was actually dead code,
since the DB was performing its own checks and would never raise
Forbidden.

This also includes a change of the default policy for get_images
to include the other states, like get_image does. I think this was
just an oversight in the original RBAC patches, which didn't matter
because they weren't really being honored strictly.

Partially implements: blueprint policy-refactor

Change-Id: I70100cd7f01da803e9740cea1f7ce7ae18ad6919
2021-08-04 07:56:05 -07:00
..
api Check get_image(s) in the API 2021-08-04 07:56:05 -07:00
async_ Add image_count_uploading quota enforcement 2021-07-02 08:29:07 -07:00
cmd trivial: Remove references to sqlalchemy-migrate 2021-07-13 17:19:03 +01:00
common Merge "Revert "Remove all usage of keystoneclient"" 2021-07-06 17:11:49 +00:00
db Remove dead 403->404 code 2021-07-27 07:59:17 -07:00
domain Utilize newly added tasks database fields 2021-02-24 05:17:43 +00:00
hacking Cleanup remove api v1 and registry code 2020-07-14 10:38:19 +00:00
image_cache Replace md5 with oslo version 2020-12-15 10:43:19 -05:00
locale Imported Translations from Zanata 2021-03-24 06:29:41 +00:00
policies Check get_image(s) in the API 2021-08-04 07:56:05 -07:00
quota Add image_count_uploading quota enforcement 2021-07-02 08:29:07 -07:00
tests Check get_image(s) in the API 2021-08-04 07:56:05 -07:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Merge "Add get_ksa_client() helper" 2021-03-02 19:41:57 +00:00
gateway.py Refactor gateway get_repo auth layer 2021-08-02 11:22:27 -07:00
housekeeping.py Add housekeeping module and staging cleaner 2021-03-03 14:36:46 -08:00
i18n.py Raise hacking to latest 2.0.0 release 2020-03-27 14:11:08 -05:00
location.py Move lazy store update to locations layer 2021-07-16 07:58:46 -07:00
notifier.py Add ability to import image into multi-stores 2020-02-10 09:39:01 +01:00
opts.py Add new config options in sample config generator 2020-07-28 16:06:43 +00:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Fix string interpolation to delay by logging 2020-01-09 08:53:55 -06:00
version.py Add support for oslo.reports 2019-09-20 05:17:58 +00:00