Test mode

The app pairs with a gateway it can reach over HTTPS, under the gateway's own host name. A gateway on a laptop (https://localhost:8443) or behind an internal name has neither for a phone: test mode gives it one for a while, without a DNS record of yours and without opening a port.

Enterprise edition. Test mode comes with the Enterprise image, like the rest of the app.

How it works

Turning test mode on asks Cloudflare for a temporary address, through a quick tunnel: the gateway runs cloudflared, which ships in the Enterprise image, and gets a random address such as https://shy-river-1234.trycloudflare.com, covered by Cloudflare's own certificate. No Cloudflare account is needed, and nothing is written in your DNS.

While it is open:

It closes by itself at the end time you chose, when you turn it off, or when the gateway stops. The phones paired through it stay listed, marked Test address closed: they cannot reach the gateway any more, and the address will not come back (the next opening gets a new one). Remove them, and pair again, when you open test mode the next time.

A test tool. Cloudflare offers quick tunnels for trying things out, without any guarantee of service. Use a real host name for a gateway people depend on.

Open the test address

Turn test mode on

Open Application, Mobile (/application/mobile), choose a duration (15 minutes to 4 hours, 1 hour by default) and turn on Test mode. After a few seconds the screen shows the address, the time it closes and who opened it. A banner at the top of the console says so, on every screen, until it closes.

Pair the phone

Open your profile, Mobile, as usual. The page says it is in test mode and until when; scan its QR code with the app and type the code it shows.

Close it

Turn Test mode off, or let it reach its end time.

The Mobile screen with test mode open: the temporary address, the time it closes, and the switch to close it

The profile's Mobile app page in test mode: the QR code carries the temporary address, and the page says until when

Who can, and how to forbid it

The switch is root's and the application administrator's, like the rest of the Mobile screen. Opening and closing go in the audit trail, with the address and the reason it closed.

An installation that wants none of it forbids it at deployment: the screen then shows the switch locked, with the reason.

Deployment Setting
Helm chart mobile.testAddress: false
Environment MEERKAT_MOBILE_TEST_ADDRESS=off

The gateway also needs outbound HTTPS to Cloudflare while the address is open.