Skip to content

Commit 6eaee3c

Browse files
committed
feat: support vault provider for secrets
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
1 parent ee40c75 commit 6eaee3c

File tree

7 files changed

+653
-20
lines changed

7 files changed

+653
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [1.1.2] - unreleased
44

5+
### Added
6+
7+
- Added HashiCorp Vault credential provider support with hvac library integration
8+
59
## [1.1.1] - 21/11/2025
610

711
### Added

otterdog/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def get_credentials(self, org_config: OrganizationConfig, only_token: bool = Fal
170170

171171
def is_supported_secret_provider(self, provider_type: str) -> bool:
172172
# TODO: make this cleaner
173-
return provider_type in ["pass", "bitwarden"]
173+
return provider_type in ["pass", "bitwarden", "vault"]
174174

175175
def get_secret(self, secret_data: str) -> str:
176176
if secret_data and ":" in secret_data:

otterdog/credentials/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ def create(cls, provider_type: str, defaults: Mapping[str, Any]) -> CredentialPr
101101
valid_keys = _check_valid_keys(provider_type, defaults, PassVault.__init__)
102102
return PassVault(**valid_keys)
103103

104+
case "vault":
105+
from .vault_provider import VaultProvider
106+
107+
valid_keys = _check_valid_keys(provider_type, defaults, VaultProvider.__init__)
108+
return VaultProvider(**valid_keys)
109+
104110
case "inmemory":
105111
from .inmemory_provider import InMemoryVault
106112

0 commit comments

Comments
 (0)