CluPilotCloud/resources/views/livewire/admin
Claude a58faf3f85
tests / pest (push) Successful in 8m56s Details
tests / assets (push) Successful in 20s Details
tests / release (push) Successful in 4s Details
Manage the Stripe key from the console, behind a password and a test
Changing a key meant a shell, a file edit and a cache rebuild — and the person
who owns the Stripe account is not necessarily the person who owns the server.

Two gates, not one. The capability decides who may open the page; every operator
has console.view, and that must not mean "can read the payment key". The
password decides whether this SESSION may see or change anything, because the
realistic threat is not a stranger but an unlocked machine, and a session is
exactly what that hands over. Both are re-checked server-side on every action —
a Livewire action is reachable by anyone who can post to /livewire/update.

The value is stored encrypted under a key of its own, SECRETS_KEY, and the vault
refuses to work without it rather than falling back to APP_KEY: rotating APP_KEY
is ordinary maintenance and would otherwise destroy every stored credential,
discovered when Stripe stops answering. It is read where it is used, not
overlaid onto config at boot — an overlay adds a query to every request
including the public site, and leaves queue workers holding whatever was true
when they started. It is never shown again, only outlined, and never enters a
Livewire property that would carry it to the browser and back in the snapshot.

A registry, not an env editor: a form that can set any environment variable is a
privilege-escalation primitive, and one bad value bricks the installation with
no way back through that same form.

The test button is the part that matters. It reports which Stripe account the
key belongs to, whether it is LIVE or test — the most expensive mistake here is
pasting one where the other belongs, and both look identical in a form — and
which webhook endpoints exist with the events each subscribes to. A key can be
perfectly valid while the endpoint listens for the wrong five events, and
nothing fails until a payment goes unrecorded.

The webhook signing secret deliberately stays in .env. It is read on every
incoming payment event; in the database, a database problem becomes silently
failing signature checks.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 09:01:16 +02:00
..
confirm-delete-datacenter.blade.php fix(ui): make modal cancel buttons work; serve the app over the HTTPS domains 2026-07-25 21:24:03 +02:00
confirm-delete-plan-draft.blade.php feat(admin): a console for creating, pricing and scheduling plans 2026-07-26 12:41:51 +02:00
confirm-delete-vpn-peer.blade.php feat(admin): VPN access management with live peer state 2026-07-25 21:38:12 +02:00
confirm-remove-host.blade.php fix(ui): make modal cancel buttons work; serve the app over the HTTPS domains 2026-07-25 21:24:03 +02:00
customers.blade.php feat(admin): administrator access to a customer's Nextcloud 2026-07-26 05:30:59 +02:00
datacenters.blade.php fix(admin): no admin lockout (is_admin fallback); centered modal width; datacenter edit modal + country dropdown 2026-07-25 18:09:17 +02:00
edit-datacenter.blade.php Let people change their own password, and a location be switched off while editing it 2026-07-27 07:49:07 +02:00
host-create.blade.php feat(admin): datacenters management (create + select) 2026-07-25 13:25:17 +02:00
host-detail.blade.php feat(admin): host reserve edit + maintenance drain; customer suspend/reactivate 2026-07-25 14:30:21 +02:00
hosts.blade.php feat(admin): scalable host list (search/filter/health) + host detail redesign 2026-07-25 14:27:53 +02:00
instance-admin-access.blade.php feat(admin): administrator access to a customer's Nextcloud 2026-07-26 05:30:59 +02:00
instances.blade.php Report the estate from the database, and print the traffic that is sold 2026-07-27 04:48:51 +02:00
maintenance.blade.php fix(maintenance): make the window form usable 2026-07-25 23:05:33 +02:00
overview.blade.php Report the estate from the database, and print the traffic that is sold 2026-07-27 04:48:51 +02:00
plan-versions.blade.php Make the console's access list reach the proxy, price in euros, and answer errors 2026-07-27 06:51:05 +02:00
plans.blade.php feat(admin): a console for creating, pricing and scheduling plans 2026-07-26 12:41:51 +02:00
provisioning.blade.php feat(admin): provisioning liveness — per-run progress bar, last-activity, stale warning 2026-07-25 18:11:17 +02:00
revenue.blade.php Report the estate from the database, and print the traffic that is sold 2026-07-27 04:48:51 +02:00
secrets.blade.php Manage the Stripe key from the console, behind a password and a test 2026-07-27 09:01:16 +02:00
settings.blade.php Give customers two-factor, and stop every button on the settings page reacting at once 2026-07-27 08:48:34 +02:00
vpn-config-access.blade.php feat(vpn): ownership, a Developer role, and password-gated config retrieval 2026-07-25 22:31:54 +02:00
vpn.blade.php Make the console's access list reach the proxy, price in euros, and answer errors 2026-07-27 06:51:05 +02:00