Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Document Auth macOS provisioning secret

Manav Rathi9bb700caf892
diff --git a/.github/docs/apple-signing.md b/.github/docs/apple-signing.md
index ba8855e0bb..4d6502ba56 100644
--- a/.github/docs/apple-signing.md
+++ b/.github/docs/apple-signing.md
@@ -14,14 +14,15 @@ GitHub macOS builds are made by manually signing with an Apple Developer ID Appl
## What you need
-| Artifact | Scope | Where it lives |
-| ------------------------------------ | ----------- | ---------------------------------------------------------- |
-| Developer ID Application certificate | Team-wide | GitHub secret as a base64 `.p12`, plus its export password |
-| Apple Distribution certificate | Team-wide | GitHub secret as a base64 `.p12`, plus its export password |
-| App Store Connect API key | Team-wide | GitHub secrets for the `.p8`, key ID, and issuer ID |
-| App ID | Per iOS app | Apple Developer portal |
-| App Store Connect app | Per iOS app | App Store Connect |
-| App Store provisioning profile | Per iOS app | Apple Developer portal |
+| Artifact | Scope | Where it lives |
+| ------------------------------------ | ------------- | ---------------------------------------------------------- |
+| Developer ID Application certificate | Team-wide | GitHub secret as a base64 `.p12`, plus its export password |
+| Apple Distribution certificate | Team-wide | GitHub secret as a base64 `.p12`, plus its export password |
+| App Store Connect API key | Team-wide | GitHub secrets for the `.p8`, key ID, and issuer ID |
+| Developer ID provisioning profile | Per macOS app | GitHub secret as a base64 `.provisionprofile` |
+| App ID | Per iOS app | Apple Developer portal |
+| App Store Connect app | Per iOS app | App Store Connect |
+| App Store provisioning profile | Per iOS app | Apple Developer portal |
The Developer ID certificate and Apple Distribution certificate are different certificates. Developer ID is for distributing notarized macOS apps outside the Mac App Store. Apple Distribution is for App Store/TestFlight distribution.
@@ -104,6 +105,21 @@ Download the `.p8` immediately; Apple only offers it once. Store:
If the key is lost or compromised, revoke it and create a new one.
+## Per-app macOS setup
+
+### Developer ID provisioning profile
+
+Auth macOS builds also use a Developer ID provisioning profile, stored as `AUTH_MACOS_DEVELOPER_ID_PROVISION_PROFILE_BASE64`.
+
+Create the profile in Apple Developer > Certificates, Identifiers & Profiles > Profiles:
+
+1. Select Developer ID.
+2. Select the Auth macOS App ID, `io.ente.auth.mac`.
+3. Select the Developer ID Application certificate stored in `MAC_OS_CERTIFICATE`.
+4. Set `AUTH_MACOS_DEVELOPER_ID_PROVISION_PROFILE_BASE64` to the base64 of the downloaded profile.
+
+Regenerate the profile when the App ID entitlements or Developer ID certificate change.
+
## Per-app iOS setup
Each iOS app needs its own App ID, App Store Connect app, and App Store provisioning profile. The Apple Distribution certificate and App Store Connect API key are reused across apps.
diff --git a/.github/workflows/auth-build.yml b/.github/workflows/auth-build.yml
index dd75bd7751..627e952392 100644
--- a/.github/workflows/auth-build.yml
+++ b/.github/workflows/auth-build.yml
@@ -427,7 +427,7 @@ jobs:
echo ${CM_PROVISIONING_PROFILE} | base64 --decode > "$PROFILE_PATH"
echo "Saved provisioning profile $PROFILE_PATH"
env:
- CM_PROVISIONING_PROFILE: ${{ secrets.MAC_OS_BUILD_PROVISION_PROFILE_BASE64 }}
+ CM_PROVISIONING_PROFILE: ${{ secrets.AUTH_MACOS_DEVELOPER_ID_PROVISION_PROFILE_BASE64 }}
- name: Add certificates
run: |