refactor(utils/clean + providers/registry + plugins/auth): selective (ADR-025 L2)
Three files with 3 stars each -> selective. utils/clean.nu: utils/logging.nu [is-debug-enabled] utils/interface.nu [_ansi _print] config/accessor DROPPED (dead) providers/registry.nu: config/accessor/core.nu [config-get] utils/logging.nu [log-debug] providers/interface.nu DROPPED (dead) plugins/auth.nu: config/accessor/core.nu [config-get] auth_impl.nu (re-export) [23 symbols] — converted to explicit list utils/path-utils.nu DROPPED (dead) Validation: all 3 nu --ide-check 50 -> 0 errors. Refs: ADR-025
This commit is contained in:
parent
ded87bfd65
commit
a58a215fd4
3 changed files with 21 additions and 9 deletions
|
|
@ -2,9 +2,19 @@
|
||||||
# Purpose: Provides JWT authentication, MFA enrollment/verification, auth status checking, and permission validation.
|
# Purpose: Provides JWT authentication, MFA enrollment/verification, auth status checking, and permission validation.
|
||||||
# Dependencies: std log, path-utils, auth_impl
|
# Dependencies: std log, path-utils, auth_impl
|
||||||
|
|
||||||
use ../config/accessor.nu *
|
# Selective imports + re-exports (ADR-025 Phase 3 Layer 2).
|
||||||
use ../utils/path-utils.nu *
|
# utils/path-utils star-import was dead — dropped.
|
||||||
export use auth_impl.nu *
|
use lib_provisioning/config/accessor/core.nu [config-get]
|
||||||
|
export use auth_impl.nu [
|
||||||
|
check-auth-for-destructive check-auth-for-production check-operation-auth
|
||||||
|
get-api-key-interactive get-auth-metadata get-authenticated-user
|
||||||
|
get-provider-credentials-interactive get-secret-config-interactive
|
||||||
|
is-authenticated is-check-mode is-destructive-operation is-mfa-verified
|
||||||
|
log-authenticated-operation login-interactive mfa-enroll-interactive
|
||||||
|
print-auth-status require-auth require-mfa run-typedialog-auth-form
|
||||||
|
should-enforce-auth-from-metadata should-require-auth
|
||||||
|
should-require-mfa-destructive should-require-mfa-prod
|
||||||
|
]
|
||||||
|
|
||||||
# Check if Auth plugin is available (registered with Nushell)
|
# Check if Auth plugin is available (registered with Nushell)
|
||||||
def is-plugin-available [] {
|
def is-plugin-available [] {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
# Provider Registry System
|
# Provider Registry System
|
||||||
# Dynamic provider discovery, registration, and management
|
# Dynamic provider discovery, registration, and management
|
||||||
|
|
||||||
use ../config/accessor.nu *
|
# Selective imports (ADR-025 Phase 3 Layer 2).
|
||||||
use ../utils/logging.nu *
|
# providers/interface.nu star-import was dead — dropped.
|
||||||
use interface.nu *
|
use lib_provisioning/config/accessor/core.nu [config-get]
|
||||||
|
use lib_provisioning/utils/logging.nu [log-debug]
|
||||||
|
|
||||||
# Provider registry cache file path
|
# Provider registry cache file path
|
||||||
def get-provider-cache-file [] {
|
def get-provider-cache-file [] {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
use ../config/accessor.nu *
|
# Selective imports (ADR-025 Phase 3 Layer 2).
|
||||||
use ./logging.nu *
|
# config/accessor star-import was dead — dropped.
|
||||||
use ./interface.nu *
|
use lib_provisioning/utils/logging.nu [is-debug-enabled]
|
||||||
|
use lib_provisioning/utils/interface.nu [_ansi _print]
|
||||||
|
|
||||||
export def cleanup [
|
export def cleanup [
|
||||||
wk_path: string
|
wk_path: string
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue