-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify project id for flavor access calls
This includes project id verification for flavor access calls. Closes-Bug: #1544989 Implements bp:validate-project-with-keystone Change-Id: I2620c3ebc2a6dc131946602f8aa36ec0b6e782e0
- Loading branch information
Showing
4 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
13 changes: 7 additions & 6 deletions
13
releasenotes/notes/project_id_validation-568d31c13c3ef735.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
--- | ||
fixes: | ||
- | | ||
API calls to /os-quota-sets/* will now attempt to validate the | ||
project_id being opperated on with keystone. If the user has | ||
enough permissions in user, and the keystone project does not | ||
exist, a 400 will be returned to prevent invalidate quota data | ||
from being put in the Nova database. This fixes an effective | ||
silent error where this would be stored even if this was not a | ||
API calls to ``/os-quota-sets`` and flavor access will now attempt | ||
to validate the project_id being operated on with Keystone. If | ||
the user token has enough permissions to perform | ||
``GET /v3/projects/{project_id}``, and the Keystone project | ||
does not exist, a 400 BadRequest will be returned to prevent invalid | ||
project data from being put in the Nova database. This fixes an effective | ||
silent error where the project_id would be stored even if it was not a | ||
valid project_id in the system. |