Lab: the chart's webmail and console test #19

Merged
jcoffey-dev merged 1 commits from feat/frontends-test into main 2026-11-18 21:59:52 +00:00
Owner

For inbuxa-charts K-C3. SERVER_TAG=<tag> lab/chart/frontends-test.sh installs the webmail and console (values-frontends.yaml), then:

  • signin.py: starts a webmail sign-in on one replica, signs in on the server, finishes on the other replica, and uses the session (session + JMAP) on both;
  • console-signin.py: loads the console, signs in as inbuxa-admin with PKCE to its callback, exchanges the code, and calls the server from the console's origin (CORS).

Both pass with inbuxa/inbuxa-webmail#113. Against the webmail's main without it, the callback on the second replica fails with state_mismatch.

Tested on kind (inbuxa-k8s-lab lab/chart/frontends-test.sh, lab PR below), with the webmail from inbuxa/inbuxa-webmail#113:

A: sends the browser to https://mail.lab.test/login as ihasmail-inbuxa, state cookie 407 bytes
server: signed [email protected] in, code issued for https://webmail.lab.test/api/auth/callback
B: finished the sign-in A started, session cookie 650 bytes
B: session and JMAP work (6 mailboxes)
A: session and JMAP work (6 mailboxes)
console: served, api-base-url and connect-src name https://mail.lab.test
server: signed [email protected] in for inbuxa-admin, back to https://admin.lab.test/oauth/callback
server: exchanged the code for a token
server: allows https://admin.lab.test; the token opens [email protected]'s session
For inbuxa-charts K-C3. `SERVER_TAG=<tag> lab/chart/frontends-test.sh` installs the webmail and console (`values-frontends.yaml`), then: - `signin.py`: starts a webmail sign-in on one replica, signs in on the server, finishes on the other replica, and uses the session (session + JMAP) on both; - `console-signin.py`: loads the console, signs in as `inbuxa-admin` with PKCE to its callback, exchanges the code, and calls the server from the console's origin (CORS). Both pass with inbuxa/inbuxa-webmail#113. Against the webmail's `main` without it, the callback on the second replica fails with `state_mismatch`. **Tested on kind** (inbuxa-k8s-lab `lab/chart/frontends-test.sh`, lab PR below), with the webmail from inbuxa/inbuxa-webmail#113: ``` A: sends the browser to https://mail.lab.test/login as ihasmail-inbuxa, state cookie 407 bytes server: signed [email protected] in, code issued for https://webmail.lab.test/api/auth/callback B: finished the sign-in A started, session cookie 650 bytes B: session and JMAP work (6 mailboxes) A: session and JMAP work (6 mailboxes) console: served, api-base-url and connect-src name https://mail.lab.test server: signed [email protected] in for inbuxa-admin, back to https://admin.lab.test/oauth/callback server: exchanged the code for a token server: allows https://admin.lab.test; the token opens [email protected]'s session ```
jcoffey-dev added 1 commit 2026-11-18 21:53:01 +00:00
frontends-test.sh installs them (values-frontends.yaml) and runs
signin.py, which starts a webmail sign-in on one replica, signs in on the
server, finishes on the other replica and uses the session on both; and
console-signin.py, which loads the console, signs in as inbuxa-admin with
PKCE to its callback, exchanges the code and calls the server from the
console's origin.
jcoffey-dev merged commit 85246cb8c8 into main 2026-11-18 21:59:52 +00:00
jcoffey-dev deleted branch feat/frontends-test 2026-11-18 21:59:52 +00:00
Sign in to join this conversation.