Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce flavor access during instance boot
The code in the servers API did not pass the context when retrieving flavor details. That means it would use an admin context instead, bypassing all flavor access control checks. This patch includes the fix, and the corresponding unit test, for both the v2 and v3 APIs. Closes-bug: #1212179 Change-Id: I681ae9965e19767df22fa74c3315e4e03a459d3b
- Loading branch information
Showing
4 changed files
with
43 additions
and
6 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
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