Part 7 of TAK: From Two Phones to a Global Platform

Beyond ATAK: Browser Clients on Our TAK Server

Every device on our server so far has run ATAK. That suits people in the field, but not everyone who needs the picture carries an Android device. Someone at a desk in an operations centre might only have a browser, and a laptop they aren’t allowed to install software on.

The fourth article listed the TAK clients. This one connects two of them to the server we built: WebTAK, which comes with TAK Server, and CloudTAK, an open source browser client that runs as a server of its own. Both appear on the same map as the ATAK devices. They differ in how they sign in, where certificates are kept, and what happens when you lock a user out.

What you’ll need

The setup from the previous article, running, with both ATAK devices connected. This article adds a folder for CloudTAK and a script, so update your copy first:

cd tak-stack
git stash
git pull
git stash pop

You’ll also need two more users: charlie-1 for WebTAK and delta-1 for CloudTAK. Add them as TAK Server users: in compose/takserver, put both names in USERS in config/takserver.env, run ./setup.sh, and run docker compose up -d. Their passwords are in config/secrets.env, as USER_PASS_CHARLIE_1 and USER_PASS_DELTA_1.

Check USER_GROUPS too. If you kept the blue group assignments from the previous article, add charlie-1 and delta-1 to that group so all four users can share through the server:

USER_GROUPS=alpha-1:blue bravo-1:blue charlie-1:blue delta-1:blue

Apply the change with docker compose up -d from compose/takserver. This walkthrough uses a shared group; keep separate groups where your teams need them.

CloudTAK builds from source, so allow about 8 GB of disk space for it.

Three ways in

Here’s how each client got onto the map in my tests:

ATAKWebTAKCloudTAK
Where it runsOn the deviceIn a browser, served by TAK ServerIn a browser, served by its own server
How the user signs inUsername and password, once, to enrollUsername and password, on port 8446Username and password, which CloudTAK checks with TAK Server
CertificateOn the device, with a key the device generatedNo user client certificateOne per user, enrolled and kept by CloudTAK
Connection to TAK ServerThe device connects to port 8089The browser connects to port 8446CloudTAK’s server connects to port 8089 for each user
What you set upThe app, and a data package on each deviceNo additional server or app installationA second server, with seven containers

WebTAK

WebTAK is part of TAK Server. There’s nothing to install, and our server already serves it on port 8446.

Browse to https://localhost:8446/webtak/index.html. From another computer, use your server’s address instead of localhost. As with the admin console in the fifth article, your browser warns that it doesn’t know the server’s certificate authority. That’s expected here, and you can continue past it.

Sign in as charlie-1:

The WebTAK sign-in page, with charlie-1 entered as the username and a hidden password.

In my tests, signing in sent the browser to TAK Server’s home page, which was blank for this user. Open the WebTAK address again, and the map loads. The first time you sign in, WebTAK asks who you are. Set the callsign to CHARLIE-1 and save:

WebTAK's User Information dialog, with the callsign CHARLIE-1, team Cyan, role Team Member and a location field.

WebTAK doesn’t use your browser’s location until you ask it to. Until then, it reported CHARLIE-1 at latitude 0, longitude 0, in the Atlantic off West Africa. Turn on Track Location, and it uses your browser’s location instead:

WebTAK's map of Calgary showing CHARLIE-1 next to ALPHA-1 and BRAVO-1, with the User Information panel open and Track Location turned on.

ALPHA-1 and BRAVO-1 arrive from the ATAK devices, and CHARLIE-1 shows up in their contact lists.

WebTAK doesn’t get a certificate. TAK Server checks the password and gives the browser a sign-in token, valid for 130 minutes in my tests, and the Client Certificates page lists nothing for charlie-1.

WebTAK keeps the callsign and its contact ID in the browser’s storage. Signing in from another browser, or after clearing its storage, gave CHARLIE-1 a new ID, and ATAK showed both: the old one greyed out, and the new one live.

CloudTAK

CloudTAK is the open source browser client from Colorado’s Center of Excellence, mentioned in the fourth article. Unlike WebTAK, it isn’t part of TAK Server. It’s a server of its own, with seven containers:

ContainerWhat it does
apiThe web page and CloudTAK’s API, and the connections to TAK Server
postgisCloudTAK’s database
storeFiles, such as uploads and imports
eventsProcesses uploaded files
tilesServes map tiles
mediaVideo streams
retentionCleans up old data on a schedule

CloudTAK doesn’t publish ready-made images for Docker Compose, so the compose/cloudtak folder builds it from source. It doesn’t change CloudTAK’s code. setup.sh downloads a tested release, and a small Compose file adjusts it to run beside our server. Its README lists each change and why.

CloudTAK published 14 releases in the two weeks before I tested. On the day I tested, the newest release, v13.120.0, didn’t finish building: its tile server’s tests failed. The folder uses v13.113.0, which built cleanly.

Start CloudTAK

With TAK Server running:

cd tak-stack/compose/cloudtak
./setup.sh
docker compose up -d --build

setup.sh downloads CloudTAK, creates random secrets for it, and copies our root CA’s public certificate into tak-ca.pem. CloudTAK checks TAK Server’s certificate when it connects, so it needs that CA. The key stays with TAK Server.

The first build takes a while. When it’s done, CloudTAK’s setup page needs the admin certificate. Copy it out of TAK Server:

cd ../takserver
docker compose cp takserver:/opt/tak/certs/files/admin.p12 .

Connect it to TAK Server

Open http://localhost:5080, and fill in the setup page:

CloudTAK's Initial Server Configuration page, with server name tak-stack, hostname takserver, ports 8089, 8443 and 8446, an uploaded admin certificate and delta-1 as the initial administrator.

FieldValue
Server Nametak-stack, or any name you like
Server Hostnametakserver, TAK Server’s name on its Docker network, and already on its certificate
CoT Port, Marti Port, WebTAKLeave them at 8089, 8443 and 8446
Admin Certificateadmin.p12, then its password, ADMIN_CERT_PASS in config/secrets.env
Initial Administratordelta-1 and its password

Click Configure Server, then delete your copy of admin.p12. CloudTAK keeps its own.

Sign in

CloudTAK shows its sign-in page. Sign in as delta-1, with its password, USER_PASS_DELTA_1. It asks for a callsign, a team and a role:

CloudTAK's Welcome dialog, with the callsign DELTA-1, team Orange and role Team Member.

Click Get Started. When the browser asks, allow CloudTAK to use your location. The map shows the tracks available to delta-1 through its server groups:

CloudTAK's map of downtown Calgary showing CHARLIE-1, ALPHA-1 and BRAVO-1, with DELTA-1's own position in orange.

On an ATAK device, both browser users now appear as contacts:

ATAK's contact list on ALPHA-1, showing BRAVO-1, CHARLIE-1 and DELTA-1, each with a green status dot.

What CloudTAK holds

CloudTAK connects to TAK Server for each user, with a certificate it enrolled for them. In my tests, it enrolled delta-1’s certificate during setup. Another user got theirs the first time they signed in. Each appears on the Client Certificates page with a device ID of the username followed by (ETL), and CloudTAK keeps the certificate and its private key in its database.

That has two consequences. CloudTAK’s database holds a working certificate for every user who has signed in, so protect it as you would the devices. And CloudTAK keeps TAK Server’s admin certificate, so anyone who controls CloudTAK’s server can act as a TAK Server administrator.

The web page is plain HTTP on port 5080. That’s fine on localhost. Before you open it to other computers, put it behind HTTPS: passwords would otherwise cross the network unencrypted, and browsers only share location with secure pages.

Locking out browser users

REVOKE from the previous article works for browser users too. With both users signed in, I set REVOKE=charlie-1 delta-1 in compose/takserver and ran docker compose up -d.

After the restart, neither reconnected. WebTAK showed Socket Disconnected. The server refused CloudTAK’s connection for delta-1, and its log named the reason:

RevokedException: Attempt to use revoked certificate : CN=delta-1,OU=Lab,O=TAKStack

New sign-ins failed for both users. CloudTAK reported TAK Server reports incorrect Username or Password.

Lifting the lockout is where they differ. I emptied REVOKE and restarted. charlie-1 could sign in to WebTAK again as soon as the server was back. delta-1 couldn’t sign in to CloudTAK:

UND_ERR_SOCKET: other side closed

CloudTAK was still using the certificate it had stored for delta-1, which was now revoked. CloudTAK v13.113.0 is designed to notice that and enroll a new one, but it recognizes the rejection by TAK Server’s error message. Our server refuses revoked certificates during the TLS handshake, using the revocation lists from the previous article, so that message never arrives.

To fix it, tell CloudTAK to forget the certificate:

cd tak-stack/compose/cloudtak
./forget-certificate.sh delta-1

At their next sign-in, CloudTAK enrolls a new certificate, and they’re back. The how-to guide includes this step.

iTAK and WinTAK

I haven’t tested iTAK or WinTAK against this server, so this article doesn’t cover them.

Which suits which team

Based on what these tests showed:

WhoClientWhy
People in the fieldATAKHolds its own certificate, and works over a local network without a server, as in the second article
Someone at a desk who needs the pictureWebTAKUses an existing TAK Server account, without a user client certificate or additional app installation
A team evaluating a separately hosted browser clientCloudTAKEnrolls and stores user certificates on its server. This walkthrough demonstrates that connection model and its lockout recovery steps; it does not test capacity

Common errors

Errors encountered during testing, and what caused them:

What you seeWhereWhat caused it
A blank page after signing inWebTAKWebTAK sent the browser to TAK Server’s home page. Open /webtak/index.html again
A WebTAK user at latitude 0, longitude 0Every client’s mapTrack Location is off in WebTAK
Socket DisconnectedWebTAKThe connection to TAK Server dropped, for example during a restart or after a lockout
SELF_SIGNED_CERT_IN_CHAINCloudTAK’s setup pageCloudTAK didn’t trust TAK Server’s CA. Run ./setup.sh, then docker compose restart api
Bind for 0.0.0.0:8888 failed: port is already allocateddocker compose up for CloudTAKAnother program uses the port. Set MEDIA_PORT_HLS to a free port in CloudTAK’s .env
TAK Server reports incorrect Username or PasswordCloudTAK’s sign-in pageA wrong password, or a user locked out with REVOKE
UND_ERR_SOCKET: other side closedCloudTAK’s sign-in pageIn this test, CloudTAK was using a revoked certificate. After restoring the user’s access, run ./forget-certificate.sh <username> from compose/cloudtak

What you’ve built

The updated repository adds a CloudTAK folder and a script for clearing its stored certificates. In this walkthrough, you’ve used them and TAK Server’s built-in WebTAK to:

  • Connect two browser clients. WebTAK and CloudTAK users appeared on the same map as the ATAK devices, and the ATAK devices listed them as contacts
  • See where credentials live. WebTAK used a sign-in token and no certificate. CloudTAK enrolled a certificate for each user and kept it, and its key, in its database
  • Lock out browser users. REVOKE stopped both from reconnecting and signing in. Letting a CloudTAK user back in also took ./forget-certificate.sh

CloudTAK in this setup is for a lab: plain HTTP, on one computer. Before opening it to other users, add HTTPS and protect the stored user certificates and private keys, as well as the TAK Server admin certificate that CloudTAK retains.

Next up: we’ll bring external data sources onto the map: aircraft, vessels and sensor feeds.