[Feature] Add option to create unique keychain groups
Chưa có ai nhận issue này.
- #611 của @devnoname120 — đã đóng, không merge
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
The request concerns Feather’s app-signing entitlements and keychain access groups, but it names no source files, tests, or entry points. First inspect the signing flow and how provisioning-profile entitlements are applied; the requested outcome is a deterministic keychain group derived from each app’s bundle ID. Verify that it remains stable across updates and isolates apps, while respecting the provisioning profile’s allowed groups.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Request
Currently all apps sideloaded with a given .mobileprovision use the same keychain group. This is a major security risk because any sideloaded app can snoop on other apps keychain entries (instagram tokens, telegram tokens, passwords for some apps, etc.).
This means that any malicious app can defeat iOS keychain sandboxing entirely instead of only being able to access its own keychain entries. This also causes conflicts when multiple apps use the same names for keychain entries, e.g. for cloned apps.
Would it be possible to add a feature to Feather so that it can automatically use unique keychain groups?
Ideally, the keychain group name would be deterministically derived from the bundle id of the app to make sure that installing new versions of said app won’t lose the keychain entries (that would be pretty annoying).
Thanks!
In case it helps, I found a tutorial on Telegram that explains how to do that:
Tutorial: Creating Unique Keychain Groups for Better App Duplication
This guide helps you set up unique keychain groups for each app, ensuring better app duplication. To follow this, you need basic provisioning/signing knowledge and a certificate that includes a wildcard keychain group (most certificates already have this).
Step 1: Extract Entitlements from Your Provisioning Profile
- Open your mobile provisioning file (.mobileprovision) in a text editor.
- Locate the entitlements section in the file and copy its contents.
Step 2: Convert Entitlements to XML Format
- Paste the copied entitlements into ChatGPT with the prompt: “Convert the above entitlements to XML text.”
- Copy the XML output provided by ChatGPT.
Step 3: Create a Base Entitlements File
- Save the XML text as a new file named Choco.xml.
- This file will act as your base entitlements file.
Step 4: Customize the Entitlements for Each App
- For every app you sign, duplicate the Choco.xml file and rename it (e.g., AppName.xml).
- Open the new file in a text editor.
Step 5: Modify the Keychain Group
- Find the keychain-access-groups key inside the file.
- Replace the value:
From: $YourTeamId.*
To: $YourTeamId.$YourAppBundleId
- $YourTeamId is your Apple Developer Team ID.
- $YourAppBundleId is the bundle identifier for the specific app you’re signing.
- Save the changes.
Step 6: Sign the App Using the Custom Entitlements
- Use eSign (or your preferred signing tool) to sign the app.
- During the signing process:
- Click on the “Select Entitlements File” option.
- Select the custom entitlements file you created for the app.
Step 7: Install and Test
- Install the signed app on your device.
- The app will now have a unique keychain group, ensuring smooth duplication without conflicts.
Tips
- Keep the base Choco.xml file unchanged for easy duplication.
- Always double-check the modified keychain group value for accuracy.
This method ensures each duplicated app functions independently with unique keychain groups.
Request Agreement
- I have read the requirements for opening an issue above
Contributor Checks
- I am willing to attempt to make a pull request with these requested features: https://github.com/CLARATION/Feather/pull/611
- Ngôn ngữ chính
- Swift
- Star
- 4.8k
- Fork
- 430
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của claration/feather
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Tất cả issue của claration/feather
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
macos-27 menubar punkto regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
thaw-app/Thaw#1791 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 4 ngày
-
bug help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Agent-Clubhouse/Clubhouse-Go#902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CI failed on qaĐang mởci-failure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
CrisH2307/stephen#601 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày