From 00bce0da9c4b8be526718f7f5f20a88966f31022 Mon Sep 17 00:00:00 2001 From: Max Winslow <43095669+maxiscoding28@users.noreply.github.com> Date: Wed, 3 Jan 2024 13:11:01 -0700 Subject: [PATCH] Add path parameter example (#511) * x * Update README.md Co-authored-by: John-Michael Faircloth --------- Co-authored-by: John-Michael Faircloth --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index cf95fef..8616eb1 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ is not meant to modify Vault’s state. - [Userpass](#userpass) - [Ldap](#ldap) - [Other Auth Methods](#other-auth-methods) + - [Custom Path](#custom-path-name) - [Key Syntax](#key-syntax) - [Simple Key](#simple-key) - [Set Output Variable Name](#set-output-variable-name) @@ -300,6 +301,20 @@ with: If any other method is specified and you provide an `authPayload`, the action will attempt to `POST` to `auth/${method}/login` with the provided payload and parse out the client token. +### Custom Path Name + +Auth methods at custom path names can be configured using the [`path`](#path) parameter + +```yaml +with: + url: https://vault.mycompany.com:8200 + caCertificate: ${{ secrets.VAULT_CA_CERT }} + path: my-custom-path + method: userpass + username: ${{ secrets.VAULT_USERNAME }} + password: ${{ secrets.VAULT_PASSWORD }} +``` + ## Key Syntax The `secrets` parameter is a set of multiple secret requests separated by the `;` character.