Wrapper for Mozilla's sops tool to work with encrypted configs and render them into a classic `.env` format
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
350 B
16 lines
350 B
import logging
|
|
|
|
class Stack:
|
|
|
|
def __init__(self, vaults):
|
|
self.logger = logging.getLogger("configs")
|
|
self.vaults = vaults
|
|
|
|
def resolve(self, config, path):
|
|
|
|
for vault in self.vaults:
|
|
result = vault.resolve(config, path)
|
|
if result is not None:
|
|
return result
|
|
|
|
return None
|
|
|