hashicorp / vault-plugin-auth-kubernetes

Vault authentication plugin for Kubernetes Service Accounts
https://www.vaultproject.io/docs/auth/kubernetes.html
Mozilla Public License 2.0
206 stars 62 forks source link

Add display attributes for OpenAPI OperationID's #192

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/{kubernetes_mount_path}/config" "get" "kubernetes-read-auth-configuration"
"/auth/{kubernetes_mount_path}/config" "post" "kubernetes-configure-auth"
"/auth/{kubernetes_mount_path}/login" "post" "kubernetes-login"
"/auth/{kubernetes_mount_path}/role" "get" "kubernetes-list-auth-roles"
"/auth/{kubernetes_mount_path}/role/{name}" "get" "kubernetes-read-auth-role"
"/auth/{kubernetes_mount_path}/role/{name}" "post" "kubernetes-write-auth-role"
"/auth/{kubernetes_mount_path}/role/{name}" "delete" "kubernetes-delete-auth-role"

Related Issues/Pull Requests