Allow non admin users to check their own deleted instances
Currently, their are two ways to list deleted instances:
1. we can use "GET /v2.1/62bfb653e
2. we can also use "GET http://
As for non-admin users, the above mentioned two ways performed differently:
1 will return ERROR (Forbidden): Only administrators may list deleted instances (HTTP 403) as we have a limitation here:
https:/
2 will silently change deleted=True to deleted=False due to:
https:/
This blueprint propose a consistent behavior about the above mentioned APIs:
Allowing non-admin users to query their own deleted instances using both the above mentioned APIs, as it is reasonable to show their own instances no matter what the status those instances are. It can also be made more flexible by adding a related policy, as the current "all_tenant" parameter implementation:
https:/
The implementation will add a new microversion and the request earlier than this microversion will not be affected.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Zhenyu Zheng
- Direction:
- Needs approval
- Assignee:
- Zhenyu Zheng
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add support for non-admin users to query their own deleted instances