#!/usr/bin/env node /** * AWS Secrets Manager Integration * * Synchronizes configuration to AWS Secrets Manager with: * - Mode-aware secret management (integrated vs standalone) * - Consistent secret naming conventions * - AWS profile selection support * - Atomic secret creation/update operations * - ARN tracking in XDG configuration * * @module commands/sync-secrets */ import type { XDGBase } from "../../lib/xdg-base"; import { ProfileName } from "../../lib/types/config"; /** * Secrets sync options */ interface SyncSecretsOptions { profile?: ProfileName; awsProfile?: string; region: string; dryRun?: boolean; force?: boolean; configStorage?: XDGBase; /** Print the bucketless / verification-off warnings (default true). Callers that print them themselves pass false. */ printWarnings?: boolean; } /** * Sync result */ interface SyncResult { secretName: string; secretArn: string; action: "created" | "updated" | "skipped"; message: string; } /** * Syncs configuration to AWS Secrets Manager * * Mode-aware behavior (B7): * - Integrated mode (integratedStack=true): Always updates existing BenchlingSecret ARN * - Standalone mode (integratedStack=false): Creates new secret with pattern quiltdata/benchling-webhook// * * @param options - Sync options * @returns Array of sync results */ export declare function syncSecretsToAWS(options: SyncSecretsOptions): Promise; /** * Retrieves secrets from AWS Secrets Manager * * @param options - Retrieval options * @returns Secret value as parsed JSON */ export declare function getSecretsFromAWS(options: { profile?: ProfileName; awsProfile?: string; region?: string; configStorage?: XDGBase; }): Promise>; /** * Validates that secrets are accessible * * @param options - Validation options * @returns True if secrets are accessible */ export declare function validateSecretsAccess(options: { profile?: ProfileName; awsProfile?: string; region?: string; configStorage?: XDGBase; }): Promise; export {}; //# sourceMappingURL=sync-secrets.d.ts.map