Commit Graph

38 Commits

Author SHA1 Message Date
Zakaria 4156afccfe feat(api): add Cognito user pools to the cloud explorer
Adds a userpools catalog entry, schema and AwsUserPoolsAdapter, verified
against Floci core:

- list/get/create/delete user pools; create can set email or username
  sign-in, a relaxed password policy for local test users, and a public
  app client (on by default) whose id is surfaced in the pool metadata
- users as the pool's child items: list (paged), get, create and delete;
  passwords are set permanent by default so users can sign in at once
- map Cognito's HTTP-400 error names (UserNotFoundException,
  UsernameExistsException, AliasExistsException, InvalidPasswordException)
- link Floci's cognito-idp service to the new page on the diagnostics page
2026-10-23 12:12:40 -04:00
Zakaria ece36e4a34 Merge pull request 'feat: add a runtime diagnostics page' (#6) from feat/diagnostics-page into main
CI / checks (push) Has been cancelled
Reviewed-on: #6
2026-10-23 15:42:29 +00:00
Zakaria 953ba951db feat: add a runtime diagnostics page
CI / checks (pull_request) Failing after 13m18s
Adds GET /api/clouds/:cloud/diagnostics and a Diagnostics page in the
General nav. The report combines, in one call:

- runtime reachability, latency, version and edition from /_floci/health
- every service the runtime emulates, with the console pages backed by it
- per-console-service probes (the existing status check)
- EC2 instance containers from /_floci/diagnose
- console uptime, sign-in mode and active session count

Each source is optional, so a down runtime still yields a partial report.
2026-10-23 11:29:48 -04:00
Zakaria dd16bcf4cd Merge pull request 'test: bring stale tests and lint in line with the current UI' (#5) from chore/ci-green-checks into main
CI / checks (push) Has been cancelled
Reviewed-on: #5
2026-10-23 15:16:18 +00:00
Zakaria 432d9d4ce1 ci: run lint, type-check, tests and build on Gitea Actions
CI / checks (pull_request) Successful in 28m29s
Runs on pushes to main and on every pull request.
2026-10-23 11:12:51 -04:00
Zakaria b171f745db test: bring stale tests and lint in line with the current UI
- CodeDeploy: query the redesigned form's labels.
- CloudFormation: expect the parameters and capabilities fields the form
  now submits.
- ALB listeners: advance the five-second minimum create state before
  deleting, since row actions are disabled while it is pending.
- Lightsail: cast the fetch mock as a whole so it type-checks.
- TargetGroupPanel: depend on the stable refetch function to satisfy
  react-hooks/exhaustive-deps.
2026-10-23 11:12:51 -04:00
Zakaria f5e70a78d8 Merge pull request 'fix(api): block open redirects, add health check and body limits, run as non-root' (#4) from fix/api-hardening into main
Reviewed-on: #4
2026-10-23 14:59:32 +00:00
Zakaria c5a2fc9105 fix(api): block open redirects, add health check and body limits, run as non-root
- safeReturnTo resolves the target against a placeholder origin and rejects
  backslashes and control characters, so `/\evil.example` and similar
  payloads can no longer redirect off-site after sign-in.
- Add a real unauthenticated /api/health and answer unknown /api/* paths
  with a JSON 404 instead of the SPA shell.
- Limit request bodies: 16 KB for /api/auth/* (read before a session
  exists), 128 MB for resource create/update and uploads, 10 MB elsewhere.
- Run the production image as an unprivileged user and add a Docker
  HEALTHCHECK against /api/health.
2026-10-23 10:43:41 -04:00
Zakaria c9b0677fed Merge pull request 'feat(frontend): add a terminal theme and three-way theme switcher' (#3) from feat/console-themes-and-aws-focus into main
Reviewed-on: #3
2026-10-23 14:41:07 +00:00
Zakaria 0371a8884f chore: remove unused index.sample.html 2026-10-23 10:12:41 -04:00
Zakaria 75432a4bc7 feat(s3): add a copy button for the bucket name 2026-10-23 10:12:41 -04:00
Zakaria c519d41799 feat(frontend): focus the console on AWS
Redirects the Azure and GCP console and explorer routes to AWS and removes the cloud selector from Console Home.
2026-10-23 10:12:41 -04:00
Zakaria ba90eff5db feat(frontend): add a terminal theme and three-way theme switcher
Adds the cyber theme to the console and login page, replaces the dark/light toggle with a theme switcher, and moves the login page script to /login.js so it is served under the existing CSP.
2026-10-23 10:12:41 -04:00
Zakaria 502d0b3986 Merge pull request 'fix(api): harden sign-in throttling, OIDC authorization and auth state' (#2) from fix/auth-hardening into main
Reviewed-on: #2
2026-10-23 14:01:46 +00:00
Zakaria 2db02ed369 fix(api): harden sign-in throttling, OIDC authorization and auth state
- Key login throttling on the real peer address; read X-Forwarded-For only
  from FLOCI_UI_TRUSTED_PROXIES (right-most untrusted hop). Add a per-IP
  limit across usernames so one attacker can no longer lock out the admin.
- Require an OIDC allow-list (FLOCI_UI_OIDC_ALLOWED_GROUPS / _EMAILS, or
  FLOCI_UI_OIDC_ALLOW_ALL_USERS=true); fall back to UserInfo for groups
  when the ID token omits them. Redirect IdP and token errors to /login
  instead of returning 500s; cache discovery and JWKS.
- Sweep expired sessions, attempts and pending OIDC requests every 60s,
  cap each map, and throttle OIDC sign-in starts per IP.
- Fix the .ts import extension that broke the API type-check.
- Add auth.test.ts and document the new settings.
2026-10-23 09:44:14 -04:00
Zakaria a231ee8f17 polishing UI 2026-10-17 00:55:21 -04:00
Zakaria 924e354788 feat: added a login page with Authentik authentication 2026-10-16 19:35:27 -04:00
Zakaria 668911ed6e small feat: svg animation for servers, codebuild, codePipleline etc... 2026-10-15 10:25:16 -04:00
Zakaria ca1e845cb6 feat: Lightsail + svg animation 2026-10-11 14:19:00 -04:00
Zakaria 0036ef7e51 bug fixes: subnets listing, icons resizing and some shenanigans 2026-10-07 10:54:58 -04:00
Zakaria 71c2d276b6 adding Alpine to the quick start instances list 2026-10-06 12:06:56 -04:00
Zakaria c86b4554c0 feat: ElastiCache 2026-10-05 16:03:05 -04:00
Zakaria c0d3e5f402 feat: MSK, MSK CONNECT and SES 2026-10-05 11:06:57 -04:00
Zakaria 2d8ff50a99 feat: Fargate 2026-10-02 09:53:45 -04:00
Zakaria 7f08f5b668 Layout polish - rename: The Cloud 2026-10-01 15:06:55 -04:00
Zakaria 7f0d707578 CI/CD - CodeBuild + CodeDeploy + CodePipeline 2026-10-01 09:18:04 -04:00
Zakaria aa02cdb7f6 RDS port issue fixed 2026-09-30 18:40:00 -04:00
Zakaria 7764ea0dc1 feat: Cloudformation + RDS 2026-09-30 17:43:42 -04:00
Zakaria 548a15d7ec feat: Step Function + small fixes + more services + color matching the services 2026-09-28 18:38:22 -04:00
Zakaria 0d613ae256 feat: Step Function + hardning 2026-09-27 23:26:00 -04:00
Zakaria ce8400757c adding a real test Method for API gateway 2026-09-27 20:14:59 -04:00
Zakaria e8843a462b feat: CORS enable button... small fixes 2026-09-27 15:40:15 -04:00
Zakaria b474e823ce feat: CORS enable button...ish still now understanding this 2026-09-27 14:46:04 -04:00
Zakaria 8470b8d17a feat: fully functioning ALB 2026-09-26 16:14:24 -04:00
Zakaria 093afb9b2b feat: EC2 UI polished + storage persisting 2026-09-25 18:18:33 -04:00
Zakaria 1b129e9dcf feat: add SQS + EventBridge 2026-09-24 22:34:04 -04:00
Zakaria 9bbe80b5f2 feat: add API Gateway route testing and discovery 2026-09-24 08:56:22 -04:00
Zakaria 7e49be27f1 first commit 2026-09-22 16:13:21 -04:00