hashicorp / vault-plugin-auth-gcp

GCP Authentication Plugin for Vault
Mozilla Public License 2.0
53 stars 25 forks source link

Add display attributes for OpenAPI OperationID's #172

Closed averche closed 1 year ago

averche commented 1 year ago

Overview

The display attributes added in this PR will be translated into OperationID's in vault-generated OpenAPI documents (when calling /sys/internal/specs/openapi with this plugin enabled). The OperationID's will, in turn, be translated into function / method names in generated OpenAPI-based libraries (e.g. hashicorp/vault-client-go & hashicorp/vault-client-dotnet).


This PR will introduce the following OperationIDs:

Path Method OperationID
"/auth/{gcp_mount_path}/config" "get" "google-cloud-read-auth-configuration"
"/auth/{gcp_mount_path}/config" "post" "google-cloud-configure-auth"
"/auth/{gcp_mount_path}/login" "post" "google-cloud-login"
"/auth/{gcp_mount_path}/role" "get" "google-cloud-list-roles"
"/auth/{gcp_mount_path}/role/{name}" "get" "google-cloud-read-role"
"/auth/{gcp_mount_path}/role/{name}" "post" "google-cloud-write-role"
"/auth/{gcp_mount_path}/role/{name}" "delete" "google-cloud-delete-role"
"/auth/{gcp_mount_path}/role/{name}/labels" "post" "google-cloud-edit-labels-for-role"
"/auth/{gcp_mount_path}/role/{name}/service-accounts" "post" "google-cloud-edit-service-accounts-for-role"
"/auth/{gcp_mount_path}/roles" "get" "google-cloud-list-roles2"

Related Issues/Pull Requests