fix: rename secrets.py → vault.py to avoid shadowing stdlib secrets module
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user