CloudTAK
CloudTAK is a browser map client for TAK Server in the Team Awareness Kit (TAK) ecosystem. The optional cloudtak component runs it at https://map.<domain>/, next to the TAK web user interface (UI), and connects it to the TAK Server in the takserver namespace. The component adds three Ingress rules to TAK Server’s Package custom resource (CR).
What is deployed
Section titled “What is deployed”| Object | Namespace | Purpose |
|---|---|---|
Deployment cloudtak |
cloudtak |
CloudTAK’s nginx and application programming interface (API) process on port 5000, plus the sso and bootstrap containers |
StatefulSet cloudtak-postgis |
cloudtak |
CloudTAK’s own PostGIS database, ghcr.io/jonathanagustin/uds-takserver/postgis:18-3.6 (amd64 and arm64), 2Gi volume |
Secret cloudtak |
cloudtak |
Session signing secret, database password, and the password of the TAK account behind the admin connection. Generated on first install and kept on upgrade |
Secret cloudtak-sso |
cloudtak |
Keycloak client secret, key OIDC_CLIENT_SECRET. Written by the Unified Defense Stack (UDS) operator |
Secret cloudtak-tak-admin |
cloudtak |
ca.pem, admin.pem, admin.key, and CAPASS. The takserver-oidc watcher copies the certificates from ConfigMap takserver/cert-migration, the key from Secret takserver-certs, and CAPASS from Secret takserver-keystore |
Package cloudtak |
cloudtak |
Keycloak client uds-cloudtak (name CloudTAK Login), the map host on the tenant gateway, and the allow list |
Upstream CloudTAK’s compose file also runs a tile server, an events worker, a media server, a retention job, and an S3 store. This component does not deploy those services. Without S3, features that store files (imports, attachments, uploaded basemaps, data packages) do not work. The map, Cursor on Target (CoT) from TAK, and the admin pages work.
The image is built from the upstream/cloudtak git submodule, pinned to tag v13.112.3 (745d8a9bcfebde48d7a97cc4e77aa0f4d827508a), and published as ghcr.io/jonathanagustin/uds-takserver/cloudtak:v13.112.3. No upstream image is used.
.github/container-and-chart/cloudtak/ holds the build:
docker-bake.hclbuilds CloudTAK’s ownDockerfilefrom the submodule with no changes. Its first stage downloads the CloudTAK-Datav1.2.0release zip, which upstream pins in that file.Dockerfilecopies the built API and web app from that image.docker-bake.hclpasses it in as thecloudtak-upstreambuild context, and the Dockerfile copies from that context. The context is not a registry image, so it has no digest to pin on aFROMline.npm prune --omit=devruns onnode:26-alpine3.24, the Node tag upstream copies in, pinned by digest. The runtime stage is the samenginx:alpine3.24base withnodejs-current,bash, andopenssl. The upstream image is about 2.2 GB because it keeps its compilers and build dependencies. This one is about 600 MB.start.shreplaces upstreamapi/start. It renders the samenginx.conf, drops theuserdirective, and moves the pid file, logs, and temp paths under/tmp. The container runs as uid 101 with a read-only root filesystem.sso.mjsis thessocontainer’s Keycloak sign-in.nginx-sso.confandnginx-sso-head.confare the two nginx fragmentsstart.shadds for it. See Sign-in.bootstrap.mjsis the bootstrap container’s script. See below.basemap.mjswrites the tile proxy’s nginx configuration and keeps the default basemap record. See Basemap.
build.sh refuses to build if the submodule is not at the pinned commit. The image is published for linux/amd64 and linux/arm64, the same way as the TAK images (see Building the images). Each architecture builds on a native runner, without QEMU emulation, and the tags are keyed by the build inputs:
- The inputs are the submodule commit plus the git tree of this directory, recorded in the
dev.uds-takserver.inputslabel.<key>is the first 12 hex digits of their SHA-256 (build.sh --tagprintsv13.112.3-<key>). - The Test workflow’s
cloudtak-imagejobs runARCH=<arch> build.sh --if-changedon a native runner for each architecture (ubuntu-24.04andubuntu-24.04-arm). Each job pushesv13.112.3-<key>-<arch>, and only when no image with those inputs exists yet. cloudtak-indexthen runsbuild.sh --merge. It writesv13.112.3-<key>as an index of the two tags withdocker buildx imagetools create, and writes nothing unless both tags carry this commit’s inputs.- Before continuous integration (CI) creates a package,
.github/scripts/pin-image-tags.shpointszarf.yamland the chart values atv13.112.3-<key>in the job’s checkout. A keyed tag only ever holds one set of inputs, so a pull request tests its own CloudTAK image even when another branch builds a different one at the same time. The PostGIS image works the same way (18-3.6-<key>). v13.112.3andv13.112.3-<arch>, the tags in the committed files and in released packages, are written only frommain.build.sh --wait, used by the Scan and Package workflows, waits for the keyed index..github/workflows/cloudtak-image.yamldoes the same onmain.
A local build.sh builds the host architecture and loads it as v13.112.3.
Renovate’s git-submodules manager follows CloudTAK release tags. The tag strings marked # cloudtak-version in zarf.yaml, charts/cloudtak/, and docker-bake.hcl move in the same pull request.
Sign-in
Section titled “Sign-in”People sign in to CloudTAK through UDS Core Keycloak, on the same UDS login page as the TAK web UI. CloudTAK’s own password and passkey sign-in is off.
https://map.<domain>/loads the CloudTAK app. With no session, the app routes to/login. nginx adds/api/login/oidc/auto.jsto the app’s Hypertext Markup Language (HTML) pages. With no stored ID token, that script sends/loginon to/api/login/oidc. After a sign-in it sends/loginto/api/login/oidc/logoutwith the ID token asid_token_hint./api/login/oidcstarts an authorization code flow with Proof Key for Code Exchange (PKCE) (S256) for Keycloak clientuds-cloudtakin realmuds, and the browser lands onhttps://sso.<domain>/realms/uds/protocol/openid-connect/auth. The client allows members of/UDS Core/Adminand/CloudTAK/Users. See Who can sign in.- Keycloak returns to
https://map.<domain>/api/login/oidc/callback. Thessocontainer exchanges the code at Keycloak’s token endpoint, in the cluster.sso.<domain>resolves to the tenant gateway through the in-cluster CoreDNS rewrite (see Networking), and the Keycloak certificate is checked against the system trust store. - It enrolls a TAK client certificate for the user on TAK’s 8447. It sends the Keycloak access token as a bearer token, through the same TAK library call CloudTAK uses for password sign-in. TAK takes the username from
preferred_usernameand the groups fromgroups, as it does for the TAK web UI (see Single sign-on). The certificate is the Keycloak user’s own TAK identity, with that user’s TAK groups. - It creates or updates the CloudTAK profile for that username with the certificate, and opens a CloudTAK login session with CloudTAK’s own session code. Members of
sso.adminGroup(default/UDS Core/Admin) become CloudTAK system administrators. - The browser gets the session (login token, refresh token, session id) in the uniform resource locator (URL) fragment of
/api/login/oidc/finish, which is not sent to any server or written to a log. That page stores them where CloudTAK’s own login page does and opens the map. The app restores the session, rotates the refresh token, and opens its own streaming connection to TAK’s 8089 with the user’s certificate.

Who can sign in
Section titled “Who can sign in”Keycloak lets a user into CloudTAK only if they are a direct member of a group in sso.groups (charts/cloudtak/values.yaml). The UDS operator writes that list to the client’s groups.anyOf. The default list is:
| Group | Who | CloudTAK role |
|---|---|---|
/UDS Core/Admin |
UDS Core platform admins. UDS Core creates this group | System administrator, because it is also sso.adminGroup |
/CloudTAK/Users |
People who use the map but are not admins | Regular user |
The TAK Server web UI at takserver.<domain> still allows only /UDS Core/Admin. A member of /CloudTAK/Users alone is refused there by Keycloak.
UDS Core does not create /CloudTAK/Users. Create it once in the Keycloak admin console (realm uds, Groups) and add users to it. Keycloak skips a listed group that does not exist, so admins can still sign in before you create it.
A user in /CloudTAK/Users also needs a TAK group to see TAK data. Add them to a group under /TAK/, for example /TAK/Operators_READ (see Single sign-on). /CloudTAK/Users is outside /TAK/, so TAK does not treat it as a TAK group.
CloudTAK makes a user a system administrator only when the groups claim holds sso.adminGroup, and it checks that at every sign-in. TAK grants ROLE_ADMIN only for /UDS Core/Admin. So a /CloudTAK/Users member gets a regular CloudTAK account and a regular TAK client certificate.
To change the list, set bundle variable CLOUDTAK_SSO_GROUPS. It replaces the whole list, so include /UDS Core/Admin if admins should keep access:
variables: takserver: CLOUDTAK_SSO_GROUPS: - /UDS Core/Admin - /Field Teams/Mapbundle/uds-bundle.yaml and bundle/full/uds-bundle.yaml show the override (cloudtak component, uds-cloudtak chart, path sso.groups). A bundle of your own needs the same overrides entry. Group paths are case-sensitive.

What CloudTAK does and does not provide
Section titled “What CloudTAK does and does not provide”CloudTAK 13.112.3 has oidc::enabled, oidc::enforced, oidc::name, and oidc::discovery settings, and its login page links a “Sign in with …” button to /api/login/oidc. Its API has no route there (upstream issue #661). The chart sets those settings with CLOUDTAK_Config_* variables, which CloudTAK writes to its settings table on start:
| Setting | Value | Effect |
|---|---|---|
oidc::enabled, oidc::enforced |
true |
POST /api/login returns 403. The login page shows only the Keycloak button |
oidc::name |
UDS SSO |
Button text |
oidc::discovery |
https://sso.<domain>/realms/uds/.well-known/openid-configuration |
The page shows a misconfiguration warning instead of the button without it |
passkey::enabled |
false |
Hides the passkey button |
The sso.mjs script handles that route. It runs in a second container of the CloudTAK pod and listens only on 127.0.0.1:5002.
start.sh adds a location ^~ /api/login/oidc block for it in front of CloudTAK’s location ~ ^/api (a ^~ prefix match is chosen before regular expressions). The sign-in route does not patch CloudTAK’s application code.
sso.mjs imports CloudTAK’s compiled model, user, and session modules from the image, so a CloudTAK upgrade that changes those modules needs a matching change here. The Renovate pull request for a new CloudTAK tag runs the sign-in test below.
CloudTAK cannot redirect to Keycloak on its own. The auto-redirect is the auto.js script, loaded with nginx sub_filter. https://map.<domain>/login?sso=off shows the login page without the redirect, with only the Keycloak button. After a failed Keycloak sign-in the browser lands there, and the sso container log has the reason.
Trade-offs
Section titled “Trade-offs”- Authservice is not used. Authservice in front of CloudTAK would authenticate the page but CloudTAK would never see the Keycloak user. People would still need a TAK account and a second sign-in, and TAK would see that account instead of the Keycloak user. With the code flow in the pod, the Keycloak user is the CloudTAK user and the TAK certificate subject.
- The ID token is taken straight from Keycloak’s token endpoint over a verified Transport Layer Security (TLS) connection, so
sso.mjschecks its issuer, audience, nonce, and expiry rather than its signature (OpenID Connect Core 3.1.3.7). TAK checks the access token’s signature against Keycloak’s keys when it enrolls the certificate. - CloudTAK’s own logout clears the CloudTAK session and opens
/login.auto.jssends that to/api/login/oidc/logoutwith the ID token from sign-in asid_token_hint. The client setslogout.confirmation.enabledtofalse. UDS Core otherwise leaves that on, and Keycloak 26 then shows “You are logged out” instead of followingpost_logout_redirect_uri. With it off, Keycloak ends the session and redirects back to the sign-in route, so the next visit stops on the Keycloak login page. Without the hint Keycloak stays on its confirmation page and does not continue. - Before that redirect,
auto.jsdrops the CloudTAK login token, refresh token, and session id, so the next load cannot refresh the old session. A CloudTAK session that never opens/loginstill lasts until its refresh token expires. Password sign-in and passkey sign-in stay off. - A CloudTAK session lasts as long as CloudTAK’s refresh token (
login::refresh::expiry, 720 hours by default), not the Keycloak session. Removing a user from the sign-in groups in Keycloak blocks new sign-ins, not open CloudTAK sessions. Disable the profile in CloudTAK’s admin page or revoke the certificate in TAK to cut one off. - The TAK certificate is enrolled at each sign-in. CloudTAK keeps it for the session, the way it keeps one from a password sign-in.
Admin account
Section titled “Admin account”CloudTAK’s admin connection (connection 0) needs a TAK account and a certificate. The component creates one TAK file user, cloudtak-admin, in the TAK group Operators, and gives CloudTAK the TAK admin certificate for connection 0. Nobody signs in with that account: CloudTAK refuses password sign-in. Its password is CLOUDTAK_PASSWORD in Secret cloudtak/cloudtak.
Bootstrap container
Section titled “Bootstrap container”The bootstrap container runs bootstrap.mjs in the CloudTAK pod. It calls CloudTAK on 127.0.0.1:5000, inside the pod. Every five minutes it does the following:
- Tries the
cloudtak-adminpassword against TAK’s/oauth/tokenon 8447. If that fails, it creates the user through/user-management/api/new-useron 8443 with the admin certificate. TAK stores file users inUserAuthenticationFile.xmlinside the API pod, and that file does not survive a restart of the API pod, so this check is what recreates the user. - It reads and reconciles the TAK streaming, API, and web URLs and the mounted admin certificate/key through authenticated
GETandPATCH /api/servercalls. First setup also sends thecloudtak-admincredentials and an initial display name. Later updates preserve the display name, connection enablement, and other administrator settings. A new endpoint or matching certificate/key pair is applied without clearing CloudTAK’s database. Files are read again each cycle so projected Secret updates are picked up.
CloudTAK redacts the saved private credentials from its API. Bootstrap therefore replays its managed credentials once after a process restart, which refreshes the admin connection even when they already match. Later cycles make no write when the endpoints, mounted credentials, and server record’s update marker are unchanged. An externally edited server record is reconciled again. Authentication failures, malformed responses, and unconfirmed writes are retried rather than reported as successful configuration.
node /home/etl/uds/bootstrap.mjs status prints the server record. It authenticates with a five-minute token for cloudtak-admin signed with CloudTAK’s SigningSecret, the form CloudTAK accepts as a server-minted token. It exits 0 only when connection_status is live.
The admin certificate is mounted only in the bootstrap container. The CloudTAK container gets only ca.pem. CloudTAK still stores the admin certificate and key in its database, because its admin connection (connection 0) uses them. Treat that database as holding a TAK admin credential.
Trust bundle
Section titled “Trust bundle”CloudTAK’s API and single sign-on (SSO) containers use NODE_EXTRA_CA_CERTS with one PEM file
containing the deploy-time TAK certificate authority (CA) and UDS Core’s uds-trust-bundle. This lets
Keycloak discovery and token exchange verify a private gateway CA supplied
through Core’s CA_BUNDLE_CERTS. Node’s built-in public roots still apply.
The init container assembles the file; the Node containers mount it read-only.
An absent or empty Core bundle keeps the TAK CA alone, as on slim core.
The operator labels the bundle ConfigMap for pod reload, restricted to
app=cloudtak in the CloudTAK namespace. A bundle change restarts CloudTAK
so Node reads the new file at startup. TAK’s bundle uses the existing
uds.dev/oidc-reload=takserver selector so its API and messaging init containers
also rebuild their Java virtual machine (JVM) trust stores when the bundle changes.
Run the CA rotation acceptance test
Section titled “Run the CA rotation acceptance test”On a disposable test cluster with this package deployed and a private-CA tenant gateway, run:
python3 -B tests/trust-bundle-live.py --uiThe script appends a temporary CA to the saved custom roots in ClusterConfig
uds-cluster-config, waits for both namespace bundles and new API, messaging,
and CloudTAK pod UIDs, and checks Keycloak from the SSO container. Node must
reject the live gateway certificate when using only public roots, accept it
when trusting only the bundled anchor of its verified chain, and reject it
when trusting only the unrelated trial CA. For an intermediate chain, the
anchor is its root CA, not an intermediate treated as a standalone root. If
the server sends that root and it is absent from the bundle, the script installs
it and waits until both namespace bundles contain it. If a required private
root is neither configured nor sent by the gateway, configure it before running
the trial; the test does not weaken TLS verification to accept an incomplete chain. Core does not restart pods the first time
it creates uds-trust-bundle; the following trial-CA change is the reload. It then rotates to a second trial CA and repeats
the checks. The first Node error is kept, bounded to 300 characters, with no
certificate body. --ui also reruns the existing browser suite after each
rotation, requiring Keycloak setup rather than allowing SSO tests to skip. The
browser suite currently uses the development uds.dev domain; without --ui,
set DOMAIN for another test domain.
Existing custom roots and the include-public/DoD settings are preserved. On
exit, the script restores the saved custom CA setting and waits for the
generated bundles. If an administrator changed public/DoD settings during the
trial, cleanup preserves those new settings and roots while requiring the saved
custom roots to return and all trial-only roots to disappear. With unchanged
settings, it requires the original complete bundle. Core can retain its last
namespace bundle when all global roots are removed. After Core reconciles the
restored generation, cleanup removes only fingerprints introduced by this trial,
using UID, resource-version and old-data tests on the Core-owned ConfigMap. It
preserves every other certificate and all metadata, and excludes roots now
legitimately enabled by concurrent public/DoD settings. It never deletes an
arbitrary ConfigMap. It then explicitly restarts the consumers to clear cached
trust and fails if temporary roots return. A concurrent custom-CA edit is never
overwritten. Temporary private keys stay in a private directory
and are deleted. out/trust-bundle-live.json records CA fingerprints, pod UIDs,
and cleanup success. out/trust-bundle-original-ca.json saves the original
public CA settings before the first mutation, for manual recovery if the
process is forcibly killed before cleanup can finish.
The same test is available through Test workflow dispatch with
trust_bundle=true on both native install architectures; airgap and upgrade
jobs are intentionally skipped. This mode generates a one-day private gateway
CA and wildcard tenant certificate, then supplies Core’s supported
TENANT_TLS_CERT, TENANT_TLS_KEY and CA_BUNDLE_CERTS variables during the
baseline bundle deployment, before TAK and CloudTAK start. The initial SSO
checks therefore require the private CA. Normal installs retain their packaged
gateway certificate. The generated configuration preserves pinned image tags,
stays in a private runner directory outside log artifacts, and is removed at
job exit. Private keys are masked and redacted from staged logs. The runner’s
host trust file retains public roots and adds the fixture CA. It changes cluster-wide
trust configuration and can restart Core’s Istio consumers too, so it is an
opt-in acceptance run. The normal install and upgrade paths remain unchanged.
This test proves the live gateway certificate chains to a CA in the combined
trust file, that public roots alone do not accept it, and that an unrelated
trial CA does not accept it. It also proves both TAK workloads and CloudTAK
restart when that bundle changes. The rotation script leaves the gateway
certificate unchanged; the opt-in workflow prepares its private certificate
before the baseline deployment. The separate test_trust_bundle.py Hypertext Transfer Protocol Secure (HTTPS) test proves the merge
script with two local CAs.
TAK connection
Section titled “TAK connection”| CloudTAK setting | Value | Used for |
|---|---|---|
url |
ssl://takserver-messaging-service.takserver.svc.cluster.local:8089 |
CoT streaming with client certificates |
api |
https://takserver-api-service.takserver.svc.cluster.local:8443 |
Marti API with client certificates |
webtak |
https://takserver-web.takserver.svc.cluster.local:8447 |
Certificate enrollment for each Keycloak sign-in (bearer token) and for the admin account (password) |
webtak is 8447, the connector the tenant gateway uses, rather than 8446. 8447 has a certificate whose SANs are the takserver-web Service names, so CloudTAK verifies it against the deploy-time CA (NODE_EXTRA_CA_CERTS). TAK’s generated 8443 and 8089 server certificate names no in-cluster host. CloudTAK’s TAK library does not verify the server certificate on its certificate-authenticated connections, as upstream ships it. The bootstrap container checks the 8443 chain against the CA and skips only the host name.

Network rules
Section titled “Network rules”All rules are explicit. There is no IntraNamespace and no Anywhere rule in either Package CR.
| From | To | Port | Rule in |
|---|---|---|---|
| tenant gateway | cloudtak |
5000 | cloudtak expose |
cloudtak |
cloudtak-postgis |
5432 | cloudtak |
cloudtak |
takserver-api |
8443, 8447 | cloudtak Egress and takserver Ingress |
cloudtak |
takserver-messaging |
8089 | cloudtak Egress and takserver Ingress |
cloudtak |
tenant gateway (Keycloak) | 443 | cloudtak Egress |
cloudtak (service account cloudtak) |
tile.openstreetmap.org |
443 | cloudtak Egress remoteHost, only with basemap.enabled |
The namespace has no waypoint of its own: it is ambient and Authservice is not enabled. The basemap rule uses UDS Core’s shared egress waypoint in istio-egress-ambient. The UDS operator creates a ServiceEntry for the tile host and an AuthorizationPolicy that admits only the cloudtak service account. charts/takserver/values.yaml cloudtak.enabled renders the three takserver Ingress rules. They stay in place if the cloudtak component is not deployed, and then match no pods.
additionalNetworkAllow in charts/cloudtak/values.yaml appends deployer rules after these, the same as in the takserver chart. Each entry needs a unique description.
Basemap
Section titled “Basemap”New users get OpenStreetMap as their default basemap. CloudTAK fetches the basemap’s tiles through nginx in its own container, which proxies and caches them from the tile host.
- The browser asks for
https://map.<domain>/uds-basemap/tiles/{z}/{x}/{y}?token=<session>. nginx checks the token with CloudTAK, so only signed-in users get tiles. Zoom levels outsideminzoom..maxzoomget 404, and a session that asks for more than 20 tiles a second after a burst of 200 gets 429. - nginx sends the tile host only Host, Accept, the browser’s Referer, and a User-Agent such as
CloudTAK/13.112.3 (uds-takserver; +https://github.com/jonathanagustin/uds-takserver; contact: <basemap.contact>). It verifies the host’s TLS certificate. - Tiles are cached in the pod’s
/tmp(cacheSize, default 256m), for as long as the tile host’s cache headers allow, or 7 days when it sends none. Responses carryX-Cache-Status. - The bootstrap container creates the server basemap record “OpenStreetMap” with the attribution “© OpenStreetMap contributors”, and sets it as CloudTAK’s default basemap (
map::basemap). It updates the record when the settings change. Users who signed in before keep their basemap and can choose this one in the basemap menu. - The Package allows egress to the tile host on its port only, from the
cloudtakservice account (see Network rules).
The OpenStreetMap tile servers are run by donations, with no service level, under the tile usage policy. Its rules for a caching proxy are met by the headers, the cache, and the rate limit above. The policy also asks for a contactable User-Agent: set basemap.contact to an email address or URL for your deployment. For heavy use, use another provider or your own tile server.
Settings, under basemap in charts/cloudtak/values.yaml (set them with UDS bundle overrides on chart uds-cloudtak):
| Value | Default | Meaning |
|---|---|---|
enabled |
true |
false removes the basemap record, the proxy, and the egress rule |
url |
https://tile.openstreetmap.org/{z}/{x}/{y}.png |
Tile URL template, http or https, with {z}, {x}, and {y} |
name |
OpenStreetMap |
Name in CloudTAK’s basemap list |
attribution |
© OpenStreetMap contributors with a link |
Shown on the map. HTML |
minzoom, maxzoom |
0, 19 |
Zoom levels served |
default |
true |
Make it CloudTAK’s default basemap for new users |
contact |
empty | Email or URL added to the User-Agent |
userAgent |
empty | Replaces the whole User-Agent |
cacheSize |
256m |
Disk cache size |
rate, burst |
20, 200 |
Tiles a second per session, after a burst |
port |
from url |
Port of the egress rule |
egress |
{} |
Replaces the remoteHost rule, for a tile server in the cluster, such as {remoteNamespace: tiles, remoteSelector: {app: tileserver}, port: 8080} |
Air-gapped installs: set basemap.enabled: false, or point basemap.url at a tile server in the network. A server outside the cluster gets a remoteHost rule for its host. For one inside the cluster, use its Service’s full name in url and set egress. A server with a private CA needs that CA in the image’s bundle (/etc/ssl/certs/ca-certificates.crt), or plain http.
CloudTAK’s own tile route for this record (/api/basemap/:id/tiles/:z/:x/:y) refuses the private address the tile host resolves to in the mesh. The web map does not use it for this basemap, but server-side tile features do. Uploaded basemaps and fully offline PMTiles need S3 and CloudTAK’s tile service, which are not part of this component.
uds run test:cloudtak (part of test:all):
- waits for the PostGIS StatefulSet and the CloudTAK Deployment, and checks that every container is ready and no pod runs as uid 0
- checks that the
cloudtakPackage isReady, has NetworkPolicies, and has noAnywhereorIntraNamespacerule - checks that
https://map.uds.dev/loginloads the auto-redirect script, that/api/login/oidcis a 302 to theuds-cloudtakclient onsso.uds.devwith PKCE, thatPOST /api/loginis refused with 403, and that Secretcloudtak-ssoexists - runs
bootstrap.mjs statusin the pod untilconnection_statusislive - with the basemap on, checks that the Package has one
remoteHostrule, thatistio-egress-ambienthas a ServiceEntry for that host, and thatbootstrap.mjs basemapfinds the basemap record as the default and gets tile 0/0/0 back as an image through the proxy
tests/cloudtak.spec.ts (Playwright, in test:ui) opens https://map.uds.dev/ in a new browser context and expects the Keycloak login for client uds-cloudtak with redirect https://map.uds.dev/api/login/oidc/callback. It signs in as the Keycloak test user doug (in /UDS Core/Admin and /TAK/Operators_READ) and waits for the map canvas on map.uds.dev, with no CloudTAK form in between. On a first sign-in CloudTAK asks for a callsign; the test enters the Keycloak username and skips the browser permission step. Then, with the CloudTAK session the browser holds, it checks that:
GET /api/loginreturns the Keycloak username as the account (email)GET /api/marti/groupreturns 200 with at least one group. CloudTAK makes that call to TAK with the certificate it enrolled for the userGET /api/serverhasconnection_status: live(connection 0)GET /api/marti/clientslists a connected TAK client for the user, which is the map’s own streaming connection- the server basemap with the
/uds-basemap/tiles/URL exists, the map loads its tiles (200,image/*), the attribution box names OpenStreetMap, and a tile request without the session token gets 401 - zooming in with the mouse wheel loads tiles at a higher zoom
/login?sso=offshows “Sign in with UDS SSO” and no password or passkey form
tests/cloudtak-user.spec.ts signs in as mapuser, which tests/ensure-map-user.py puts in /CloudTAK/Users and /TAK/Operators_READ only. It expects the map, access: user from GET /api/login, the Operators group from GET /api/marti/group, and a refusal from the admin-only GET /api/server/injector. It then expects Keycloak to refuse the same user at the TAK Server web UI. tests/sso-clients.py checks that the uds-takserver client allows only /UDS Core/Admin, and that uds-cloudtak allows /UDS Core/Admin and /CloudTAK/Users.
It saves cloudtak-01-keycloak.png, cloudtak-02-map.png, cloudtak-04-basemap.png (after the zoom), and cloudtak-03-login-page.png under tests/.playwright/screenshots, which CI uploads with the Playwright report. test:flows also checks the flows inside the cloudtak namespace.
License
Section titled “License”CloudTAK is licensed under AGPL-3.0. This repository does not include its source: upstream/cloudtak is a submodule that points at the upstream repository, and the image’s org.opencontainers.image.source and org.opencontainers.image.revision labels name the build. AGPL section 13 requires that users who interact with a modified CloudTAK over a network can get its source. The image replaces the start script and adds the sign-in, bootstrap, and basemap scripts and nginx fragments. It also patches the bundled TAK client library and adds an error guard for connection resets. These changes are in this repository; CloudTAK’s application source is unchanged. Whoever runs a modified CloudTAK for others has to offer that source. The rest of this repository stays GPL-3.0-only.
Resources
Section titled “Resources”CloudTAK requests 100m of central processing unit (CPU) capacity and 256Mi memory, with a 500m and 768Mi limit. The sso container requests 50m and 128Mi, with a 500m and 512Mi limit. It loads CloudTAK’s modules. Typical steady working set is around 146Mi for CloudTAK and 67Mi for sso (with headroom up to 512Mi for startup spikes). The bootstrap container requests 10m and 48Mi, with a 200m and 128Mi limit (steady 19Mi). PostGIS requests 50m and 128Mi, with a 500m and 512Mi limit (steady 96Mi). The API’s Node heap is capped at 640 MB with NODE_OPTIONS. Upstream asks for 6 GB.