Files
zooqueenandHanzo Dev 81e27efff6 The console signs in with Hanzo IAM and manages secrets over cloud's /v1/kms
The console now calls the KMS API cloud serves on kms.hanzo.ai: the org
comes from the token, a listing shows every secret by path and
environment, and a value is opened, replaced or deleted one secret at a
time. Sign-in is authorization code with PKCE through @hanzo/iam against
the issuer /v1/kms/config names, as the <brand>-kms client.

Pages with no API behind them (keys, audit, projects, certificates) are
gone. kmsd no longer serves the console; it ships as a static site.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-15 11:33:56 -07:00

37 lines
782 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/postcss'
import path from 'node:path'
// The console is a static bundle. In production the same host routes /v1 to
// cloud, which serves the KMS API; in development Vite proxies /v1 to a local
// cloud on :8000.
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
css: {
postcss: {
plugins: [tailwindcss()],
},
},
build: {
outDir: 'dist',
emptyOutDir: true,
sourcemap: false,
target: 'es2022',
},
server: {
port: 5173,
proxy: {
'/v1': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
},
},
},
})