Skip to content

Commit

Permalink
WIP: strip slashy mount paths
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaso committed Mar 30, 2024
1 parent 47b5cb0 commit 7394edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vault_oidc_ssh_cert_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _issue_ssh_cert(

def github_vault_auth() -> None:
input_audience = os.environ["JWT_AUDIENCE"].strip()
oidc_backend = os.environ["OIDC_BACKEND"].strip()
oidc_backend = os.environ["OIDC_BACKEND"].strip("/ ")
oidc_role = os.environ["OIDC_ROLE"].strip()
vault_server = os.environ["VAULT_SERVER"].strip("/ ")

Expand All @@ -78,7 +78,7 @@ def github_vault_auth() -> None:


def generate_and_sign() -> None:
ssh_backend = os.environ["SSH_BACKEND"].strip()
ssh_backend = os.environ["SSH_BACKEND"].strip("/ ")
ssh_role = os.environ["SSH_ROLE"].strip()
vault_server = os.environ["VAULT_SERVER"].strip("/ ")
vault_token = os.environ["VAULT_TOKEN"].strip()
Expand Down

0 comments on commit 7394edf

Please sign in to comment.