Adding user_id handling to keypair index, show and create api calls

Bug #1481577 reported by OpenStack Infra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Low
Atsushi SAKAI

Bug Description

https://review.openstack.org/70485
commit 1b8a2e0a928b142b453dd76dc1afed0b26ee6eae
Author: Vladik Romanovsky <email address hidden>
Date: Mon Apr 20 13:21:37 2015 -0700

    Adding user_id handling to keypair index, show and create api calls

    Administering an openstack cluster I found the need to see what keypairs a
    user had. I found this bug that was requesting the same thing and decided
    to implement it. This is the update to the api server to handle a query
    param passed to return a keypair list for a specific user-id. Only a user
    with admin privileges is allowed to make this call.

    Allowing the administrators to be able to list and get details of keypairs
    which owned by users other than themselves, as well as creating new and
    deleting keypairs on behalf of their users.

    DocImpact: This adds API microversion
    Implements blueprint admin-query-any-keypair
    APIImpact
    UpgradeImpact: Policy rules of the index, create, delete and show
                   operations has been updated to support the change.
                   os_compute_api:os-keypairs:{index, show, create, delete}:
                   "rule:admin_api or user_id:%(user_id)s

    Co-Authored-By: Dan Smith <email address hidden>
    Co-Authored-By: Dan Radez <email address hidden>
    Closes-Bug: #1182965
    Change-Id: I45846f770628e8f24a8c137dcdc46baa64c50801

Tags: nova
Lana (loquacity)
affects: openstack-manuals → openstack-api-site
Changed in openstack-api-site:
status: New → Confirmed
Atsushi SAKAI (sakaia)
Changed in openstack-api-site:
assignee: nobody → Atsushi SAKAI (sakaia)
Changed in openstack-api-site:
importance: Undecided → Low
milestone: none → liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

Fix proposed to branch: master
Review: https://review.openstack.org/220909

Changed in openstack-api-site:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/220909
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=2ed1dbcf7e37a43aba94958b4859c25fad432bde
Submitter: Jenkins
Branch: master

commit 2ed1dbcf7e37a43aba94958b4859c25fad432bde
Author: Atsushi SAKAI <email address hidden>
Date: Mon Sep 7 15:42:06 2015 +0900

    Add user_id to keypair index/show/create/delete api

    Add user_id for query and
        user_id for json in create case.
    Also type is changed from required to optional in create case
        see following line around 63 to 67
        https://review.openstack.org/#/c/70485/23/nova/api/openstack/compute/plugins/v3/keypairs.py,unified

    Change-Id: I3d67ba2f39ee5774795267c460269513d819ea3b
    Closes-Bug: #1481577

Changed in openstack-api-site:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.