@chimoney.io/iaas-k8s-deployment
Version:
Kubernetes Infrastructure as a Service deployment package for streamlined multi-cloud environments
36 lines • 1.11 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
export interface SecretConfig {
length?: number;
includeSpecialChars?: boolean;
prefix?: string;
}
/**
* Generate a cryptographically secure random string
*/
export declare function generateSecureSecret(config?: SecretConfig): string;
/**
* Generate secure database URL with random credentials
*/
export declare function generateDatabaseCredentials(dbHost: string, dbName: string): {
user: string;
password: pulumi.Output<string>;
connectionString: pulumi.Output<string>;
};
/**
* Generate secure API keys and secrets for Rafiki services
*/
export declare function generateRafikiSecrets(): {
authCookieKey: string;
authIdentityServerSecret: string;
streamSecret: string;
adminKey: string;
nonceRedisKey: string;
};
/**
* Create secure environment variables configuration
*/
export declare function createSecureEnvironmentConfig(companyName: string, environment: string, databaseUrl: pulumi.Output<string>): {
auth: Record<string, any>;
backend: Record<string, any>;
};
//# sourceMappingURL=secrets.d.ts.map