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
```
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
For inbuxa-charts K-C3.
SERVER_TAG=<tag> lab/chart/frontends-test.shinstalls 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 asinbuxa-adminwith 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
mainwithout it, the callback on the second replica fails withstate_mismatch.Tested on kind (inbuxa-k8s-lab
lab/chart/frontends-test.sh, lab PR below), with the webmail from inbuxa/inbuxa-webmail#113: