import { i18n } from '../i18n' import { sdk } from '../sdk' import { ADMIN_PASSWORD, ADMIN_USER } from '../utils' export const showAdminCredentials = sdk.Action.withoutInput( // id 'show-admin-credentials', // metadata async ({ effects }) => ({ name: i18n('Show Admin Credentials'), description: i18n( 'Display the built-in admin username and password for the SpacesOps admin area.', ), warning: null, allowedStatuses: 'any', group: null, visibility: 'enabled', }), // run async ({ effects }) => ({ version: '1', title: i18n('Admin Credentials'), message: i18n( 'WARNING: these are FIXED, well-known credentials baked into the image and cannot be changed without rebuilding it. The admin area can run SQL and manage tenants. Keep this service private (Tor-only) and never expose the admin routes to the public internet.', ), result: { type: 'group', value: [ { type: 'single', name: i18n('Username'), description: null, value: ADMIN_USER, masked: false, copyable: true, qr: false, }, { type: 'single', name: i18n('Password'), description: null, value: ADMIN_PASSWORD, masked: true, copyable: true, qr: false, }, ], }, }), )