sapcc / elektra

An opinionated openstack Web UI for consumer self service and operations.
Apache License 2.0
74 stars 28 forks source link

BGPVPN: Role Based Access Control #963

Closed velp closed 3 years ago

velp commented 3 years ago

Our customers should be able to manage RBAC for BGPVPNs. So we have to add RBAC management section as we have for networks:

image image

API reference: https://docs.openstack.org/api-ref/network/v2/index.html?expanded=create-rbac-policy-detail#create-rbac-policy Example of request body:

{
   "rbac_policy": {
      "action": "access_as_shared",
      "object_type": "bgpvpn",
      "target_tenant": "<TARGET_TENANT>",
      "object_id": "<BGPVPN_ID>"
   }
}

Where: <TARGET_TENANT> - is the target tenant which should have access for this bgpvpn object <BGPVPN_ID> - is ID of bgpvpn that will be shared

andypf commented 3 years ago

done with 5f877748d5735546c8606c97cb9d42612a4a0c8a