# frizzlem/breakfree architecture

> Architecture diagram of the GitHub repository frizzlem/breakfree, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/frizzlem/breakfree
- Repository: https://github.com/frizzlem/breakfree

## Overview

#### Purpose and Delivery Surface
BreakFree distributes an iOS/iPadOS Shortcut and supporting install artifacts intended to enable enterprise-signed app installation while applying an Apple-blocking DNS profile. User-facing entry points are GitHub Releases, the generated static landing page at `index.html`, and DNS configuration profiles `BreakFreeDNS(3.0).mobileconfig` and `BreakFree_DNS(2.0).mobileconfig`.

#### Static Installation Portal
The repository publishes a static HTML catalog rather than a server application. `template.html` supplies the page template; `generate_index.sh` builds `index.html`; `generate_plist.sh` creates OTA-install manifest files. The resulting page links users to signed IPA assets and their `.plist` manifests, which iOS consumes for enterprise OTA installation.

#### Feather Signing Artifact Channel
Feather is one app distribution channel. Certificate-specific signed IPA inputs reside in `Feather/SignedIPA/`, while normalized generated install pairs are in `Feather/output/`, such as `Feather/output/feather-Aramco.ipa` and `Feather/output/feather-Aramco.plist`. `Feather/output/certificate-validity.tsv` exposes certificate validity state for catalog generation or operator review.

#### Freesign Signing Artifact Channel
Freesign is the parallel app channel, following the same output contract: IPA plus OTA plist per certificate identity. Its published artifacts are under `Freesign/output/`, including `Freesign/output/freesign-Aramco.ipa`, `Freesign/output/freesign-Aramco.plist`, and `Freesign/output/certificate-validity.tsv`. The portal can therefore treat signing providers as interchangeable sources of installable app records.

#### Multi-Certificate Signing Pipeline
`sign_with_all_certs.sh` is the central batch-signing boundary: it likely takes app inputs and applies the available enterprise certificates to produce per-certificate variants. Certificate material is organized under `Ksign-and-esign/certs/` and also appears in `Feather/SignedIPA/` (including `Feather/SignedIPA/Estate.p12`). Generated IPA/plist outputs are committed artifacts, allowing static hosting without runtime signing.

#### Automation and Publishing
GitHub Actions executes the operational pipeline: `.github/workflows/sync_feather.yml` and `.github/workflows/sync_freesign.yml` synchronize the two artifact channels, while `.github/workflows/generate_index_html.yml` regenerates the static catalog. `.github/workflows/ios-resign.yml` is the signing/resigning automation boundary. GitHub hosts the repository, workflows, releases, and likely the static page/artifact URLs.

#### User Device Flow and External Dependencies
On-device flow is: obtain the BreakFree Shortcut from Releases/RoutineHub, install/select a DNS mobileconfig profile, then initiate installation through an IPA-specific OTA plist. The approach materially depends on iOS/iPadOS enterprise certificate installation behavior, DNS-based blocking, public/leaked enterprise certificates, GitHub-hosted artifacts, and external signing sources identified in the README as WSF and Khoindvn. Certificate revocation is the primary operational failure boundary; validity TSVs and frequent sync/resign workflows address it.

Main entry points: [`sign_with_all_certs.sh`](https://github.com/frizzlem/breakfree/blob/main/sign_with_all_certs.sh) (Batch multi-cert signing), [`generate_index.sh`](https://github.com/frizzlem/breakfree/blob/main/generate_index.sh) (Catalog generator), [`Feather/output`](https://github.com/frizzlem/breakfree/tree/main/Feather/output) (Published install pairs), [`Freesign/output`](https://github.com/frizzlem/breakfree/tree/main/Freesign/output) (Published install pairs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_automation["Automation"]
  node_index_generator["Catalog generator<br/>shell script<br/>[generate_index.sh]"]
  node_manifest_generator["OTA manifest generator<br/>shell script<br/>[generate_plist.sh]"]
  node_signing_pipeline["Batch multi-cert signing<br/>shell pipeline"]
  node_ios_resign_workflow["iOS resign workflow<br/>GitHub Actions workflow<br/>[ios-resign.yml]"]
  node_index_workflow["Catalog publish workflow<br/>GitHub Actions workflow"]
end

subgraph group_feather["Feather channel"]
  node_feather_signed_inputs["Signed IPA inputs<br/>IPA artifacts"]
  node_feather_outputs["Published install pairs"]
  node_feather_sync["Feather sync workflow<br/>GitHub Actions workflow<br/>[sync_feather.yml]"]
end

subgraph group_freesign["Freesign channel"]
  node_freesign_outputs["Published install pairs"]
  node_freesign_sync["Freesign sync workflow<br/>GitHub Actions workflow<br/>[sync_freesign.yml]"]
end

node_user(("iOS/iPadOS user<br/>device user"))
node_github{{"GitHub hosting &amp; Releases<br/>delivery platform"}}
node_shortcut["BreakFree Shortcut<br/>iOS Shortcut"]
node_dns_profiles["DNS blocking profiles<br/>mobileconfig"]
node_template["Portal template<br/>HTML template<br/>[template.html]"]
node_static_portal["Static install portal<br/>HTML catalog<br/>[index.html]"]
node_certificate_store["Enterprise certificates<br/>certificate material"]
node_ios_ota{{"iOS enterprise OTA install<br/>platform behavior"}}
node_certificate_revocation(("Certificate revocation<br/>operational risk"))

node_user -->|"downloads from"| node_github
node_github -->|"delivers"| node_shortcut
node_github -->|"publishes"| node_static_portal
node_user -->|"installs/selects"| node_dns_profiles
node_user -->|"browses"| node_static_portal
node_template -->|"templates"| node_index_generator
node_feather_outputs -->|"catalog records"| node_index_generator
node_freesign_outputs -->|"catalog records"| node_index_generator
node_index_generator -->|"builds"| node_static_portal
node_manifest_generator -->|"creates manifests"| node_feather_outputs
node_manifest_generator -->|"creates manifests"| node_freesign_outputs
node_certificate_store -->|"signing inputs"| node_signing_pipeline
node_feather_signed_inputs -->|"app inputs"| node_signing_pipeline
node_signing_pipeline -->|"generates variants"| node_feather_outputs
node_signing_pipeline -->|"generates variants"| node_freesign_outputs
node_ios_resign_workflow -->|"runs"| node_signing_pipeline
node_feather_sync -->|"synchronizes"| node_feather_outputs
node_freesign_sync -->|"synchronizes"| node_freesign_outputs
node_index_workflow -->|"runs"| node_index_generator
node_static_portal -->|"links IPA and plist"| node_ios_ota
node_ios_ota -->|"installs app on"| node_user
node_certificate_revocation -.->|"invalidates variants"| node_feather_outputs
node_certificate_revocation -.->|"invalidates variants"| node_freesign_outputs

click node_dns_profiles "https://github.com/frizzlem/breakfree/blob/main/BreakFreeDNS(3.0).mobileconfig"
click node_template "https://github.com/frizzlem/breakfree/blob/main/template.html"
click node_index_generator "https://github.com/frizzlem/breakfree/blob/main/generate_index.sh"
click node_manifest_generator "https://github.com/frizzlem/breakfree/blob/main/generate_plist.sh"
click node_static_portal "https://github.com/frizzlem/breakfree/blob/main/index.html"
click node_signing_pipeline "https://github.com/frizzlem/breakfree/blob/main/sign_with_all_certs.sh"
click node_certificate_store "https://github.com/frizzlem/breakfree/tree/main/Ksign-and-esign/certs"
click node_ios_resign_workflow "https://github.com/frizzlem/breakfree/blob/main/.github/workflows/ios-resign.yml"
click node_index_workflow "https://github.com/frizzlem/breakfree/blob/main/.github/workflows/generate_index_html.yml"
click node_feather_signed_inputs "https://github.com/frizzlem/breakfree/tree/main/Feather/SignedIPA"
click node_feather_outputs "https://github.com/frizzlem/breakfree/tree/main/Feather/output"
click node_feather_sync "https://github.com/frizzlem/breakfree/blob/main/.github/workflows/sync_feather.yml"
click node_freesign_outputs "https://github.com/frizzlem/breakfree/tree/main/Freesign/output"
click node_freesign_sync "https://github.com/frizzlem/breakfree/blob/main/.github/workflows/sync_freesign.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_index_generator,node_manifest_generator,node_signing_pipeline,node_ios_resign_workflow,node_index_workflow toneBlue
class node_feather_signed_inputs,node_feather_outputs,node_feather_sync toneAmber
class node_freesign_outputs,node_freesign_sync toneMint
class node_user,node_github,node_shortcut,node_dns_profiles,node_template,node_static_portal,node_certificate_store,node_ios_ota,node_certificate_revocation toneNeutral
```

## Components

### Automation

- [Catalog generator](https://github.com/frizzlem/breakfree/blob/main/generate_index.sh): shell script · Builds the published static install catalog. · `generate_index.sh`
- [OTA manifest generator](https://github.com/frizzlem/breakfree/blob/main/generate_plist.sh): shell script · Creates plist manifests consumed by iOS OTA install. · `generate_plist.sh`
- [Batch multi-cert signing](https://github.com/frizzlem/breakfree/blob/main/sign_with_all_certs.sh): shell pipeline · Produces certificate-specific install variants. · `sign_with_all_certs.sh`
- [iOS resign workflow](https://github.com/frizzlem/breakfree/blob/main/.github/workflows/ios-resign.yml): GitHub Actions workflow · `.github/workflows/ios-resign.yml`
- [Catalog publish workflow](https://github.com/frizzlem/breakfree/blob/main/.github/workflows/generate_index_html.yml): GitHub Actions workflow · `.github/workflows/generate_index_html.yml`

### Feather channel

- [Signed IPA inputs](https://github.com/frizzlem/breakfree/tree/main/Feather/SignedIPA): IPA artifacts · Certificate-specific Feather signing inputs. · `Feather/SignedIPA`
- [Published install pairs](https://github.com/frizzlem/breakfree/tree/main/Feather/output): IPA, plist & validity TSV · Normalized Feather artifacts for the static catalog. · `Feather/output`
- [Feather sync workflow](https://github.com/frizzlem/breakfree/blob/main/.github/workflows/sync_feather.yml): GitHub Actions workflow · `.github/workflows/sync_feather.yml`

### Freesign channel

- [Published install pairs](https://github.com/frizzlem/breakfree/tree/main/Freesign/output): IPA, plist & validity TSV · Normalized Freesign artifacts for the static catalog. · `Freesign/output`
- [Freesign sync workflow](https://github.com/frizzlem/breakfree/blob/main/.github/workflows/sync_freesign.yml): GitHub Actions workflow · `.github/workflows/sync_freesign.yml`

### Other components

- **iOS/iPadOS user**: device user
- **GitHub hosting & Releases**: delivery platform · Hosts releases, static artifacts, and workflow execution.
- **BreakFree Shortcut**: iOS Shortcut
- [DNS blocking profiles](https://github.com/frizzlem/breakfree/blob/main/BreakFreeDNS(3.0).mobileconfig): mobileconfig · Apple-blocking DNS configurations selected on device. · `BreakFreeDNS(3.0).mobileconfig`
- [Portal template](https://github.com/frizzlem/breakfree/blob/main/template.html): HTML template · `template.html`
- [Static install portal](https://github.com/frizzlem/breakfree/blob/main/index.html): HTML catalog · Links signed IPAs to their OTA manifests. · `index.html`
- [Enterprise certificates](https://github.com/frizzlem/breakfree/tree/main/Ksign-and-esign/certs): certificate material · Certificate inputs used for signing. · `Ksign-and-esign/certs`
- **iOS enterprise OTA install**: platform behavior · Installs an IPA using its linked enterprise OTA plist.
- **Certificate revocation**: operational risk · Validity TSVs and re-signing mitigate revoked certificates.

## Connections

- iOS/iPadOS user → GitHub hosting & Releases: downloads from
- GitHub hosting & Releases → BreakFree Shortcut: delivers
- GitHub hosting & Releases → Static install portal: publishes
- iOS/iPadOS user → DNS blocking profiles: installs/selects
- iOS/iPadOS user → Static install portal: browses
- Portal template → Catalog generator: templates
- Published install pairs → Catalog generator: catalog records
- Published install pairs → Catalog generator: catalog records
- Catalog generator → Static install portal: builds
- OTA manifest generator → Published install pairs: creates manifests
- OTA manifest generator → Published install pairs: creates manifests
- Enterprise certificates → Batch multi-cert signing: signing inputs
- Signed IPA inputs → Batch multi-cert signing: app inputs
- Batch multi-cert signing → Published install pairs: generates variants
- Batch multi-cert signing → Published install pairs: generates variants
- iOS resign workflow → Batch multi-cert signing: runs
- Feather sync workflow → Published install pairs: synchronizes
- Freesign sync workflow → Published install pairs: synchronizes
- Catalog publish workflow → Catalog generator: runs
- Static install portal → iOS enterprise OTA install: links IPA and plist
- iOS enterprise OTA install → iOS/iPadOS user: installs app on
- Certificate revocation → Published install pairs: invalidates variants
- Certificate revocation → Published install pairs: invalidates variants
