Skip to content

Commit

Permalink
Fix auth approle
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalvas committed Sep 21, 2020
1 parent c645a0d commit b517865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion certbot_vault/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ def __init__(self, *args, **kwargs):
self.hvac_client.token = self.conf('token')

if self.conf('role-id') and self.conf('secret-id'):
auth_mount_point = self.conf('auth-path') or 'approle'
self.hvac_client.auth_approle(
self.conf('role-id'),
self.conf('secret-id'),
mount_point=self.conf('auth-path')
mount_point=auth_mount_point
)

if self.conf('jwt-role') and self.conf('jwt-key'):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='certbot-vault2', # Required
version='0.3.7', # Required
version='0.3.8', # Required
description='Certbot plugin to store certificates in Hashicorp Vault',
url='https://github.com/vitalvas/certbot-vault-plugin', # Optional

Expand Down

0 comments on commit b517865

Please sign in to comment.