Audit: dev/sicherheit/SICHERHEITSAUDIT-2026-10-07.md, Plan und Entscheidungen: dev/sicherheit/ENTWICKLUNGSPLAN-SICHERHEIT-2026-10-07.md. - S-01 Legacy-Rechnungen fremder Kunden nur mit billing:manage (auch Kundenroute). - S-02 Kontaktzuordnung auf der Firmenanzeige verlangt companies:write, $id gesperrt. - S-03 CompanyMembershipObserver: automatische Firmenrechte werden bei jeder Adress-/Zuordnungsänderung sofort neu bewertet; memberships:resync-auto. - S-04 Passwortwechsel beendet alle anderen Sessions (PasswordChanger), Reset alle Sessions und offene Login-Links; Fortify PUT /user/password abgeschaltet. API-Tokens bleiben bestehen. - S-05 Google: email_verified Pflicht, feste Bindung über die Provider-ID; Erstverknüpfung bestehender Konten außerhalb gmail/hd nur per Bestätigungslink in derselben Browser-Session. - S-06 Frischer Identitätsnachweis (Passwort, App-Code, E-Mail-Code oder Passkey) vor E-Mail-Wechsel, erster 2FA-Einrichtung und Token-Erzeugung; Hinweis-Mails an die (bisherige) Kontoadresse. - Entscheidung 5: Passkeys (Fortify, @laravel/passkeys) für alle; Super-Admins und Admins bestätigen die Session für den Admin-Bereich per Passkey oder App-Code (EnsureStrongAdminAuthentication, Notfallschalter AUTH_REQUIRE_STRONG_ADMIN); Reset des zweiten Faktors durch Super-Admins. Neue Migration: create_passkeys_table. Suite 2.403 grün (1 übersprungen), Larastan ohne Meldung. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
67 lines
1.8 KiB
JavaScript
67 lines
1.8 KiB
JavaScript
/**
|
|
* Vite-Konfiguration für Backend/Admin (FluxUI)
|
|
* - Domain: pressekonto.test (Admin, Customer, Auth)
|
|
* - Asset-Subdomain: assets.pressekonto.test
|
|
* - Port: 5177
|
|
* - Build: public/build/portal
|
|
*
|
|
* Öffentliche Hub-Landing und Frontends → vite.web.config.js (dev:web)
|
|
*
|
|
* Starten mit: npm run dev:portal
|
|
*/
|
|
import { defineConfig } from "vite";
|
|
import laravel from "laravel-vite-plugin";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import {
|
|
PORTAL_HMR_HOST,
|
|
PORTAL_HOT_FILE,
|
|
PORTAL_PORT,
|
|
createWatchIgnored,
|
|
portalRefreshPaths,
|
|
portalWatchDirs,
|
|
} from "./vite.shared.js";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: [
|
|
"resources/css/portal.css",
|
|
"resources/js/app.js",
|
|
"resources/js/portal-form-hooks.js",
|
|
"resources/js/error-reporting.js",
|
|
"resources/js/passkeys.js",
|
|
],
|
|
refresh: portalRefreshPaths,
|
|
hotFile: PORTAL_HOT_FILE,
|
|
}),
|
|
tailwindcss({
|
|
config: "./tailwind.portal.config.js",
|
|
}),
|
|
],
|
|
server: {
|
|
https: false,
|
|
cors: true,
|
|
host: "0.0.0.0",
|
|
port: PORTAL_PORT,
|
|
strictPort: true,
|
|
allowedHosts: ["pressekonto.test", PORTAL_HMR_HOST, "localhost", "0.0.0.0"],
|
|
watch: {
|
|
ignored: createWatchIgnored(portalWatchDirs),
|
|
},
|
|
hmr: {
|
|
host: PORTAL_HMR_HOST,
|
|
protocol: "wss",
|
|
},
|
|
origin: `https://${PORTAL_HMR_HOST}`,
|
|
},
|
|
build: {
|
|
outDir: "public/build/portal",
|
|
assetsDir: "",
|
|
manifest: "manifest.json",
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: undefined,
|
|
},
|
|
},
|
|
},
|
|
});
|