fix: rename secrets.py → vault.py to avoid shadowing stdlib secrets module
Some checks failed
CI / test-cli (push) Failing after 10s
CI / test-sqlmesh (push) Failing after 9s
CI / test-web (push) Successful in 15s
CI / tag (push) Has been skipped

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-28 23:33:06 +01:00
parent 79ce3f2913
commit 9201a4dca9
4 changed files with 5 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ app.add_typer(secrets_app, name="secrets")
@secrets_app.command("list") @secrets_app.command("list")
def secrets_list(): def secrets_list():
"""List available secrets (keys only).""" """List available secrets (keys only)."""
from beanflows_pipeline.secrets import list_secrets from beanflows_pipeline.vault import list_secrets
secrets = list_secrets() secrets = list_secrets()
if not secrets: if not secrets:
@@ -130,7 +130,7 @@ def secrets_get(
key: Annotated[str, typer.Argument(help="Secret key")], key: Annotated[str, typer.Argument(help="Secret key")],
): ):
"""Get a secret value.""" """Get a secret value."""
from beanflows_pipeline.secrets import get_secret from beanflows_pipeline.vault import get_secret
value = get_secret(key) value = get_secret(key)
if value is None: if value is None:
@@ -143,7 +143,7 @@ def secrets_get(
@secrets_app.command("test") @secrets_app.command("test")
def secrets_test(): def secrets_test():
"""Test sops decryption (verifies sops is installed and age key is present).""" """Test sops decryption (verifies sops is installed and age key is present)."""
from beanflows_pipeline.secrets import test_connection from beanflows_pipeline.vault import test_connection
typer.echo("Testing SOPS decryption...") typer.echo("Testing SOPS decryption...")
if test_connection(): if test_connection():

View File

@@ -8,7 +8,7 @@ from hcloud.images import Image
from hcloud.server_types import ServerType from hcloud.server_types import ServerType
from beanflows_pipeline.providers import Instance from beanflows_pipeline.providers import Instance
from beanflows_pipeline.secrets import get_secret from beanflows_pipeline.vault import get_secret
def _get_client() -> Client: def _get_client() -> Client:

View File

@@ -1,7 +1,7 @@
"""Worker instance management.""" """Worker instance management."""
from beanflows_pipeline.providers import Instance, get_provider from beanflows_pipeline.providers import Instance, get_provider
from beanflows_pipeline.secrets import get_secret from beanflows_pipeline.vault import get_secret
DEFAULT_PROVIDER = "hetzner" DEFAULT_PROVIDER = "hetzner"