DocsReference
On this page
- Commands
- Versioning
- macOS or Linux
- The native projects
- Native push: Firebase files and the extension
- Plain HTTP to agents, and why the stores should accept it
- Android: no required hardware features
- Widgets
- One-time setup
- Apple
- Google Play
- Encryption (App Store export compliance)
- Listing texts, review notes, screenshots
- Check on a real device before the first submission
Releasing the app (App Store and Google Play)
The agent and the chart are released by CI from a vX.Y.Z tag (DEVELOPMENT.md). This page is about the native apps: how the iOS and Android projects are set up, the one-time store setup, and the commands that build, upload and submit them. Everything goes through fastlane (fastlane/, Gemfile) behind a few npm scripts in app/.
Commands#
Run them in app/.
| Command | What it does |
|---|---|
npm run release |
The whole release, to testers only. Refuses with uncommitted changes, shows this version's release notes (fastlane/release-notes/) and asks once, bumps app/package.json (patch by default; npm run release -- minor, -- major or -- 1.2.0), commits, tags app-vX.Y.Z, pushes when there is an origin, then builds and uploads both apps: Android to the internal test track, iOS to TestFlight with the App Store version prepared (texts, release notes, review notes) but not submitted. |
npm run release:continue |
Uploads the current version again, without a bump. For a stopped release (an upload failed, or iOS has to follow on a Mac). SKIP_ANDROID=1 / SKIP_IOS=1 leave a platform out, e.g. SKIP_ANDROID=1 after only iOS failed. A second upload of the same version works: both stores get the next free build number. |
npm run release:production |
Sends the tested builds for review. Android: promotes the newest internal build to production (with managed publishing on in the Play Console it then waits for your click on "Publish"). iOS: submits the prepared version with its newest build; it goes live by hand after approval, or by itself with AUTO_RELEASE=1. A version that is already submitted is left alone, so running it twice is safe. |
npm run store:metadata |
Uploads the listing texts in fastlane/metadata/ to both stores, plus the App Review notes. A release uploads the iOS texts anyway. |
npm run store:shots |
Renders the store screenshots into fastlane/screenshots/ (all sizes, German and English) from three demo agents. Linux or macOS, needs Playwright with Chromium and Python 3 with Pillow. See Screenshots. |
npm run store:screenshots |
Replaces the screenshots in both stores with fastlane/screenshots/, plus the Play icon and feature graphic. |
npm run build:ios / npm run build:android |
Web build plus cap sync for development; then npx cap open ios / npx cap open android. No store involved. |
npm run native-assets |
Renders app icons, splash screens and the Play icon and feature graphic from branding/kubernanny-ok.svg. Run after changing the logo and commit the PNGs. Needs Playwright with Chromium. |
Other switches: RELEASE_YES=1 answers the question with yes, ALLOW_DIRTY=1 skips the clean-tree check, PUSH=0 keeps commit and tag local, PLAY_RELEASE_STATUS=draft for an app that was never published (see below), VERSION_CODE=… forces an Android version code.
One platform or one step alone goes through fastlane at the repository root: bundle exec fastlane ios beta, … android metadata, … ios build (build and sign without uploading, to check signing; the IPA lands in fastlane/build/, the AAB in app/android/app/build/outputs/bundle/release/). bundle exec fastlane lanes lists them all.
| Lane | |
|---|---|
ios beta / android beta |
build, sign, upload to TestFlight / the internal track with the release notes |
ios release / android release |
submit for review / promote to production |
ios metadata / android metadata / metadata |
listing texts (one store / both) |
ios screenshots / android screenshots / screenshots |
screenshots and Play graphics (one store / both) |
ios build / android build |
build and sign only |
Versioning#
- The version is
versioninapp/package.json, and nothing else. Android reads it inapp/android/app/build.gradle(versionName); iOS gets it asMARKETING_VERSIONat build time, andnpm run releasealso writes it into the Xcode project so local builds show it. App versions are independent of the agent's: the tags areapp-vX.Y.Z, which do not match CI'sv*trigger. - Build numbers are never committed. iOS: the next free build number of this version on TestFlight. Android: one above the highest version code on any Play track. So a rebuild of the same version (
release:continue) just works. - The first store release must be at least
1.0.0:npm run release -- 1.0.0. - Release notes:
fastlane/release-notes/de-DE.txtanden-US.txt, written by hand before each release and committed with it. They go to the App Store version ("What's New") and to the Play release, for both stores the same text, so keep them free of platform-specific words, and under 500 characters (Play's limit; the lanes refuse longer ones). The release warns when they are unchanged since the last app tag.
macOS or Linux#
| macOS | Linux | |
|---|---|---|
iOS build and upload (ios beta, ios build) |
yes, needs Xcode | no: npm run release skips iOS with a note; finish on a Mac with SKIP_ANDROID=1 npm run release:continue |
iOS submit, texts, screenshots (ios release, ios metadata, ios screenshots) |
yes | yes (App Store Connect API only) |
| Android everything | yes, needs a JDK 21 and the Android SDK (Android Studio) | yes, same |
| keystore password | macOS keychain or environment | environment only |
Ruby: bundle install once at the repository root (fastlane is pinned in Gemfile / Gemfile.lock). The system Ruby of macOS is too old for current fastlane; use Homebrew's (brew install ruby) or rbenv. CocoaPods is not needed: the iOS project uses Swift Package Manager.
The native projects#
app/ios and app/android were created with npx cap add (Capacitor 8, iOS with Swift Package Manager: cap add ios --packagemanager SPM) and are committed. npx cap sync copies the web build and the plugins; it never touches the changes below.
- iOS: deployment target 15.0, iPhone and iPad. App id
app.kubernanny.Info.plistadds the URL scheme, the App Transport Security exception and the local network text (below). - Android: minSdk 24, targetSdk and compileSdk 36 (Capacitor 8's defaults,
app/android/variables.gradle).AndroidManifest.xmladds the pairing intent filter, the network security config and turns backups off. - Pairing links
kubernanny://pair?url=…&code=…&key=…(the agent's QR code):CFBundleURLTypesinInfo.plist, an intent filter for schemekubernannyand hostpairin the manifest. The app parses them inapp/src/app/core/pairing-link.ts(pairingRoute, exact hostpair) and pairs only after the person confirmed on the pairing page. The WebView runs under the CSP inapp/src/index.html(no inline scripts; see SECURITY.md): with an Android System WebView too old for Capacitor's document-start script, Capacitor's inline fallback is blocked. - Backups off on Android (
allowBackup="false",res/xml/data_extraction_rules.xml): a restored backup would bring the cluster list onto another phone without a working key, which only confuses. The device's private keys themselves live in the Android Keystore and the iOS Keychain with "this device only" access (@aparajita/capacitor-secure-storage), so no backup carries them (SECURITY.md). - Icons and splash screens come from
npm run native-assets: one opaque 1024 px iOS icon (Xcode derives the rest), Android adaptive icons (foreground: the nanny on transparent, sized to stay inside the 66 dp safe circle; background: the logo's dark gradient as a vector inres/drawable/ic_launcher_background.xml) plus legacy and round icons for Android 7, and splash screens on the app's dark ground (#0f1626). Android 12+ shows the launcher icon on that ground; older versions use the layer list inres/drawable/splash.xml, which never stretches the logo. Themed (monochrome) Android icons are not there yet.
Native push: Firebase files and the extension#
Native push (NOTIFICATIONS.md) needs two files from the Firebase project whose service account the relay uses. They are not in the repository (.gitignore lists them):
~/.config/kubernanny-store/
google-services.json Firebase, Android app app.kubernanny
GoogleService-Info.plist Firebase, iOS app app.kubernannybuild_web in the Fastfile copies them to app/android/app/ and app/ios/App/App/ before cap sync; without them the build goes on, says so, and that build has no push (the app hides the option). On Android the Gradle file applies the google-services plugin only when the file is there; on iOS a build phase copies the plist into the bundle only when it is there, and the plugin configures Firebase only then. For CI, store them as base64 secrets and write them to the same paths before the build.
Once, on a Mac: cd app && bundle exec ruby scripts/add-push-extension.rb. It adds the Notification Service Extension KubernannyPushExtension (bundle id app.kubernanny.PushExtension) to the Xcode project, embeds it, and gives the app and the extension the App Group group.app.kubernanny.push plus the app the Push Notifications capability. Register the App Group and enable Push Notifications for both identifiers in the developer account (automatic signing does it on the next build if the API key may). Then commit the changed project.pbxproj and the new App/App.entitlements. For FCM to reach iPhones, upload an APNs authentication key in the Firebase console (Project settings, Cloud Messaging).
What changes for the store forms: the app now talks to Google (Firebase Cloud Messaging) when someone switches push on, and the FCM token is a device identifier used only to deliver notifications. Review the App Privacy and Data safety answers below against Apple's and Google's current definitions before the first release with push; they were written for an app without it. The Firebase SDKs are added without Analytics (Android: analytics collection deactivated in the plugin's manifest). The export compliance answer does not change: push uses standard algorithms too (HPKE with X25519 and ChaCha20-Poly1305, PROTOCOL.md).
Check on a device: switch push on in a cluster's settings, send the test push with the app in the background and with the phone locked, and once from an agent with the app removed and reinstalled (a new token; the app registers it on start).
Plain HTTP to agents, and why the stores should accept it#
Agents are often reached as http:// in a home network or VPN: a port-forward, a NodePort, a LAN host name without a certificate. That is safe because every call between app and agent is end-to-end encrypted and authenticated with Noise against the agent key pinned at pairing (PROTOCOL.md, COMMUNICATION.md); the transport only ever carries ciphertext. Fetching a key that is not pinned yet is refused over plain HTTP by the app itself (transportAllowed). The platforms block plain HTTP by default, so:
- iOS:
NSAppTransportSecurity→NSAllowsArbitraryLoadsInWebContent = true. All of the app's requests come from the web view; the app has no native networking of its own. NotNSAllowsLocalNetworking: it only covers.localand unqualified names, not LAN DNS names or VPN names (e.g. Tailscale's). NotNSAllowsArbitraryLoads: iOS ignores it as soon as an…InWebContentkey is present, and the web view exception is the narrower one.NSLocalNetworkUsageDescription(German, like the app) explains the local network prompt iOS shows before the first call into the LAN. - Android:
res/xml/network_security_config.xmlpermits cleartext, andandroid.allowMixedContent: trueincapacitor.config.tslets the WebView (whose page ishttps://localhost) callhttp://agents at all.
App Review asks for a justification of ATS exceptions. The review notes (fastlane/review-notes.txt) carry it; if asked again, this text answers:
Kubernanny connects only to the user's own server (the Kubernanny agent in their Kubernetes cluster), which is often reachable only by plain HTTP inside a home network or VPN, where certificates are rare. Every request and response is end-to-end encrypted and authenticated with the Noise protocol: the device has its own key pair and the server's public key is pinned when the device is paired. The transport therefore only carries ciphertext, and the ATS exception (limited to the web view, which makes all of the app's requests) does not weaken confidentiality or integrity.
Android: no required hardware features#
A Capacitor plugin's manifest may declare <uses-feature android:name="…"/> without android:required, which defaults to true; the manifest merger carries it into the bundle, and Google Play then hides the app from every device without that hardware (and stops updates for people who have it installed). Today no plugin declares one (@capacitor/app, @capacitor/preferences). After adding a plugin, check the merged manifest:
cd app/android && ./gradlew :app:processReleaseMainManifest
grep -o '<uses-feature[^>]*>' app/build/intermediates/merged_manifest/release/processReleaseMainManifest/AndroidManifest.xmlEvery line must carry android:required="false" unless the app cannot work without that hardware. To override a plugin, repeat its declaration in app/android/app/src/main/AndroidManifest.xml with android:required="false" tools:replace="android:required" (and xmlns:tools="http://schemas.android.com/tools" on <manifest>). tools:replace is needed because android:required otherwise merges with OR semantics, where one true wins.
Widgets#
The home-screen widgets (ARCHITECTURE.md, Widgets) have two native parts. The plugin that hands them their data, app/native/widget-bridge (npm @kubernanny/widget-bridge, a file: dependency of the app), is wired in by npx cap sync like any plugin, on both platforms. The rest:
- Android: nothing to do. The plugin's library carries the widget (
ClusterWidgetProvider, layoutkn_widget_clusters.xml,kn_*resources, English and German strings) and declares its<receiver>in its own manifest, which the manifest merger adds to the app. It is written in Kotlin; the library applies the Kotlin Gradle plugin itself (Capacitor's default Kotlin version, 2.2.20, orkotlin_versionfromvariables.gradleif set there). It declares no<uses-feature>. - iOS: the widget is an app extension, which needs its own target in the Xcode project. The sources are committed in
app/ios/App/KubernannyWidget/; the target is created once in Xcode (until it is, the app builds and runs without a widget, and the plugin's writes fail quietly):npx cap open ios, File → New → Target → Widget Extension. Product nameKubernannyWidget, bundle idapp.kubernanny.KubernannyWidget, no Live Activity, no Configuration App Intent, embed inApp. Xcode generates sample files: delete them (move to trash), and add the committed files ofapp/ios/App/KubernannyWidget/to the new target instead (KubernannyWidget.swift,WidgetData.swift,en.lprojandde.lprojwithLocalizable.strings/.stringsdict). Set the target's Info.plist toKubernannyWidget/Info.plistand its deployment target to 15.0 (the app's).- App Group on both targets: Signing & Capabilities → "+ Capability" → App Groups →
group.app.kubernanny. For the widget, point Code Signing Entitlements at the committedKubernannyWidget/KubernannyWidget.entitlements; for the app, Xcode adds the group to the app's entitlements file (creating it if there is none). Both must name the same group, or the widget stays empty. - Build both targets once and commit the changed
project.pbxproj.
- Signing: the release lane signs automatically with
-allowProvisioningUpdates, so App Store profiles forapp.kubernannyandapp.kubernanny.KubernannyWidgetare created with the App Group. If the API key cannot register the group, register it under Certificates, Identifiers & Profiles → Identifiers → App Groups and enable it on both App IDs; then build again. Version and build number of the extension come from the sameMARKETING_VERSION/CURRENT_PROJECT_VERSIONthe lane passes for the app, as App Store Connect requires them to match. - Store texts: none needed; the widget gallery shows the widget's own name and description.
One-time setup#
Nothing account-specific is in the repository. Credentials and account values live in ~/.config/kubernanny-store/ (another place with KUBERNANNY_STORE_DIR), and the keystore password in the macOS keychain or the environment.
~/.config/kubernanny-store/
asc-api-key.json App Store Connect API key, fastlane format
asc-api-key.p8 the same key as downloaded (xcodebuild needs the file)
play-service-account.json Google Play service account key
upload-keystore.jks Android upload key
store.env the values belowstore.env (read by the Fastfile; variables already set in the environment win):
KUBERNANNY_APPLE_TEAM_ID=XXXXXXXXXX # developer.apple.com → Membership details
KUBERNANNY_UPLOAD_KEY_ALIAS=upload # default "upload"
# KUBERNANNY_UPLOAD_KEYSTORE=/path/to.jks # default: upload-keystore.jks next to this file
# KUBERNANNY_UPLOAD_KEYSTORE_PASSWORD=… # Linux; on macOS use the keychain instead
KUBERNANNY_REVIEW_FIRST_NAME=… # App Review contact (shown only to Apple)
KUBERNANNY_REVIEW_LAST_NAME=…
KUBERNANNY_REVIEW_PHONE=+49…
KUBERNANNY_REVIEW_EMAIL=…Keep the folder private: chmod 700 ~/.config/kubernanny-store && chmod 600 ~/.config/kubernanny-store/*.
Apple#
- Apple Developer Program membership (99 USD a year). Note the team id.
- App id: automatic signing registers
app.kubernannyon the first build. Or register it under Certificates, Identifiers & Profiles. The only capability is the App Groupgroup.app.kubernannyfor the widget, on the app and on its extensionapp.kubernanny.KubernannyWidget(Widgets). - App Store Connect app record: Apps → "+" → New App: platform iOS, name "Kubernanny", primary language German, bundle id
app.kubernanny, any SKU (e.g.kubernanny). The API cannot create it. - API key: Users and Access → Integrations → App Store Connect API → Team Keys → "+", role Admin. With a lower role the export fails with a cloud signing permission error: only Admin keys may use Apple's cloud-managed distribution certificate, which saves you from managing certificates and profiles (and why there is no
Matchfile). A key's role cannot be changed later. DownloadAuthKey_<KEYID>.p8(only possible once) and write both files:shcp AuthKey_ABC123.p8 ~/.config/kubernanny-store/asc-api-key.p8 jq -n --arg id ABC123 --arg iss <issuer-id> --rawfile key ~/.config/kubernanny-store/asc-api-key.p8 \ '{key_id: $id, issuer_id: $iss, key: $key, in_house: false}' > ~/.config/kubernanny-store/asc-api-key.json - In App Store Connect, once (the API does not cover these):
- App Privacy: privacy policy URL https://kubernanny.app/privacy, data collection "Data Not Collected" (no analytics, no crash reporting, no account; the app talks only to the user's own agent).
- Age rating: every answer "None" (4+).
- Pricing: free, all countries.
- Category is in the metadata (Developer Tools, secondary Utilities).
- Encryption / export compliance: see below.
- Internal testers: TestFlight → Internal Testing → add yourself. Internal builds need no review.
Google Play#
- Play Console developer account (25 USD once). Google requires identity verification; a personal account created after November 2023 must also run a closed test with a minimum number of testers for a minimum time before it may publish to production (12 testers for 14 days at the time of writing; check the current rule in the Play Console).
- Create the app: name "Kubernanny", default language German, app, free. Turn on Play App Signing (default for new apps).
- Upload key (Google holds the real signing key; this one only proves uploads come from you):Back the keystore up somewhere safe. A lost upload key can be reset through Play support, but it takes days.sh
keytool -genkeypair -v -keystore ~/.config/kubernanny-store/upload-keystore.jks \ -alias upload -keyalg RSA -keysize 4096 -validity 10000 security add-generic-password -s kubernanny-upload-keystore -a kubernanny -w # macOS: asks for the password - First upload by hand: fastlane's documentation asks for the first build of a new app to be uploaded in the Play Console, not through the API. Build once with
bundle exec fastlane android buildand upload the AAB in Play Console → Testing → Internal testing. Until the app is published for the first time, Play only accepts draft releases from the API: usePLAY_RELEASE_STATUS=draft npm run release(orrelease:continue) and roll the draft out in the console. - Service account: in Google Cloud, create a project (or reuse one), enable the "Google Play Android Developer API", create a service account and a JSON key for it, save it as
~/.config/kubernanny-store/play-service-account.json. In the Play Console → Users and permissions → invite the service account's e-mail with access to this app: view app information, manage store presence, release to testing tracks and to production. Permissions can take a while to apply. - In the Play Console, once:
- Data safety: no data collected, no data shared; data is encrypted in transit; no account, so no deletion request needed.
- Privacy policy: https://kubernanny.app/privacy
- App access: "All or some functionality is restricted" with instructions: The app connects to the user's own Kubernanny agent in their Kubernetes cluster; there is no account. To try it without a cluster, tap "Erst mal die Demo ansehen" on the start screen: it opens three built-in demo clusters with every screen of the app.
- Ads: no ads. Content rating: questionnaire, all "no". Target audience: 18+ (a tool for administrators). News app: no. Government app: no.
- Store settings: category Tools.
- Internal testers: Testing → Internal testing → testers → an e-mail list with yourself.
Encryption (App Store export compliance)#
The app implements end-to-end encryption itself (Noise_IK_25519_ChaChaPoly_BLAKE2b through the @noble/* libraries, PROTOCOL.md), so the answer to "Does your app use encryption?" is yes, and it is not only Apple's HTTPS. Whether it qualifies for an exemption (for example authentication and data protection only, or the publicly available open-source source code) and whether a self-classification report or other filing is needed is a legal question this page does not answer; check Apple's export compliance documentation and, if in doubt, ask. Until ITSAppUsesNonExemptEncryption is set in Info.plist, App Store Connect asks for every build, and a TestFlight build shows "Missing Compliance" until it is answered. Once the answer is settled, add the key (and an export compliance code, if Apple issues one) so builds go through without the question.
Listing texts, review notes, screenshots#
- Texts:
fastlane/metadata/ios/<locale>/(name, subtitle, description, keywords, promotional text, URLs) andfastlane/metadata/android/<locale>/(title, short and full description), German and English, one file per field. Edit, thennpm run store:metadata. Rules: no em or en dashes; nothing about other mobile platforms in the iOS texts (App Store guideline 2.3.10); keep keywords to generic terms (other projects' names belong in the description, not the keyword field); limits: name and subtitle 30, keywords 100, promotional text 170, Play short description 80, descriptions 4000 characters. - App Review notes:
fastlane/review-notes.txt(English). They say how to review without a cluster (the built-in demo) and justify the ATS exception. Keep the demo button's label there in step with the app. The contact comes fromstore.env; there is no demo account. - Screenshots:
fastlane/screenshots/ios/<locale>/*.png(deliver tells devices apart by pixel size) andfastlane/screenshots/android/<locale>/images/phoneScreenshots/*.png(andtenInchScreenshots/for tablets). The Playicon.png(512 px) andfeatureGraphic.png(1024 × 500) next to them come fromnpm run native-assets. The App Store needs the largest iPhone size (6.9", 1320 × 2868 or 1290 × 2796) and, because the app runs on iPad, the 13" iPad size (2064 × 2752 or 2048 × 2732); check App Store Connect for the current list. Play needs two to eight phone screenshots.npm run store:shots(scripts/store-screenshots/run.sh) renders them: it starts the three demo agents of the documentation screenshots (scripts/screenshots/demo-agents.sh), pairs the web UI with them and takes eight screens (overview red, issues with actions, last 7 days, services, the Argo CD sheet, backups, the cluster list, a green cluster) in English and German, dark, each with a caption band in the app's style above the app: iPhone 1320 × 2868 and iPad 2064 × 2752 intoios/<locale>/(iphone69-*,ipad13-*), Play phone 1080 × 1920 and ten-inch tablet 1600 × 2560 intoandroid/<locale>/images/phoneScreenshots/andtenInchScreenshots/(iOS look on the iOS sizes, Android look on Play's). A check at the end refuses any file at a wrong size or a folder with fewer than 6 or more than 8; files are RGB, no alpha. Thennpm run store:screenshots.- Switches:
SKIP_BUILD=1reuses the existingdist/of protocol, agent and app;CAPTIONS=0shows the app full-screen;ONLY=iphone69,phonerenders only those sizes. Captions are inscripts/store-screenshots/capture.cjs(SCREENS); keep them true and free of em or en dashes. - The rendered files (about 50 MB) are not committed (
.gitignore); render them before each upload. The Play icon and feature graphic stay committed.
Check on a real device before the first submission#
These could not be tested without devices and belong on the checklist of the first release:
- iOS: pairing with an
http://agent in the LAN works (ATS exception, local network prompt), and with anhttps://one. - Android: the same; Android 12+ and an Android 7 or 8 device or emulator (legacy icon, layer-list splash).
- A
kubernanny://pair?…link from the camera opens the app and lands on the pairing page, on both platforms, from a cold start and with the app running. - The adaptive icon in a launcher with circle and squircle masks.
- Widgets, both platforms: placing one (iOS small and medium; Android at 2 × 1, 3 × 2 and 4 × 3 cells), red, yellow and green clusters and a demo cluster, light and dark mode, the largest text size; a tap on a cluster opens it, from a cold start and with the app running; after 30 minutes without opening the app the entries turn grey; switching a cluster off in its settings and "Home-screen widgets: Off" on the cluster list empty the widget at once; German and English device language.