Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ Anything that changes what the dashboard, the admin or a widget can do gets a li
(`package.json`, `server/package.json`, `ui/package.json`, `server/src/version.ts`) and is
tagged `vX.Y.Z`.

## Unreleased

### Added
- **Messages verification-code provider.** Adds the local, default-off provider for the companion
[Sietch Messages widget PR #16](https://github.com/fdussert/fremkit-sietch/pull/16); the widget
is not bundled here, and its trusted integration remains separate. When integrated, codes are
written as concealed, temporary, current-Mac-only pasteboard content. The provider schedules a
conditional clear after 60 seconds; if cleanup startup or execution fails, it attempts an
immediate conditional clear. If macOS refuses both cleanup attempts, the code may remain on the
pasteboard. A cleanup startup failure is returned as a generic copy failure; a later cleaner
failure is logged without exposing the code.

### Fixed

- **Messages 2FA now names a missing Full Disk Access grant.** A macOS denial used to surface as
a generic "could not be read"; the command now asks to enable Full Disk Access for Fremkit.

## 0.5.0 — 2026-10-19

### Added
Expand Down
12 changes: 8 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,11 @@ the Dock badges, and supervises the server process.
and the programs it runs (such as `fremkit-scan`) to the helper as their responsible app, so a
file-access grant made to "Fremkit Helper" — Files and Folders, or Full Disk Access — is also
the server's.
- **Full Disk Access is optional.** Only the disk map benefits from it: without it, the folders
macOS protects are shown as unreadable. With it, the helper, the server and every provider can
read every file of the account. Grant it only if you want those folders measured.
- **Full Disk Access is optional.** The disk map and the Messages 2FA provider can benefit from
it: without it, protected folders are shown as unreadable and Messages lookup fails. With it,
the helper, the server and every provider can read every file of the account. Grant it only if
you want those features, and leave the separate Messages 2FA privacy setting off unless you
want a built-in widget to read recent incoming messages after an explicit copy request.
- **It is signed with a self-signed identity** created by
`scripts/create-signing-identity.sh` ("Fremkit Helper Dev"), because macOS ties TCC grants to
the signature: without a stable one you would re-approve the permissions after every build.
Expand All @@ -465,7 +467,9 @@ These are real and not fixed. They are here so you can decide whether they matte
[docs/connections.md](docs/connections.md#what-the-tls-does-and-does-not-prove).
- **A same-user process is out of scope.** It can read your keychain, your config and your
clipboard without going through Fremkit at all — and the access secret's token file, which is
readable by your account by design so the scripts can use it.
readable by your account by design so the scripts can use it. If macOS grants Full Disk Access
and you enable the separate Messages 2FA privacy setting, it can also ask Fremkit's local
command to copy a recent incoming verification code; that setting is off by default.
- **The widgets' own files are served without the secret** (see above), so a page you visit can
find out which widgets are installed, though not how they are set up or what they show.
- **The registry is trusted to be curated, not to be safe.** An installed widget can do
Expand Down
2 changes: 2 additions & 0 deletions server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import { isSafeBackgroundName } from './config/schema.js'
import { backupRoutes } from './backup/routes.js'
import { bambuRoutes } from './bambu/routes.js'
import { createShortcutsProvider } from './providers/shortcuts.js'
import { createMessages2FAProvider } from './providers/messages-2fa.js'
import { createServiceStatusProvider } from './providers/service-status.js'
import { createSystemProvider } from './providers/system.js'
import { createDiskMapProvider } from './providers/disk-map.js'
Expand Down Expand Up @@ -308,6 +309,7 @@ export async function buildApp(opts: AppOptions): Promise<FastifyInstance> {
registry.register(createDiskMapProvider({ dataDir: opts.dataDir }))
// Registered here, not in providers/index.ts, because that is where the config store lives.
registry.register(createShortcutsProvider(undefined, instances))
registry.register(createMessages2FAProvider({ enabled: () => store.get().privacy.messages2FA }))
registry.register(createServiceStatusProvider({}, instances))
// A paired device may set only its own screen's brightness: see mayCommandBrightness. Read
// at command time, so a device moved to another screen (or unpaired) is judged as it is now.
Expand Down
2 changes: 1 addition & 1 deletion server/src/config/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function readV3(raw: unknown, version: unknown): V3Config {
connections: [],
secrets: { backend: defaultSecretsBackend() },
locale: defaultLocale(),
privacy: { claudeAccountUsage: false, showAccountEmail: false, codexAccount: false, codexHistorySources: [], macmonTemperature: false },
privacy: { claudeAccountUsage: false, showAccountEmail: false, codexAccount: false, codexHistorySources: [], macmonTemperature: false, messages2FA: false },
// A v1 config predates the marketplace by a long way; nothing can have been installed.
marketplace: { installed: {} },
pages: v1.pages.map((p) => ({
Expand Down
4 changes: 3 additions & 1 deletion server/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ export const PrivacySchema = z.object({
codexHistorySources: z.array(HistorySourceSchema).max(10).default([]),
/** Read CPU temperature from the optional local macmon executable. */
macmonTemperature: z.boolean().default(false),
/** Read recent Messages for a verification code only after a separate, explicit opt-in. */
messages2FA: z.boolean().default(false),
}).prefault({})

/**
Expand Down Expand Up @@ -481,7 +483,7 @@ export const DEFAULT_CONFIG: Config = {
connections: [],
secrets: { backend: defaultSecretsBackend() },
locale: defaultLocale(),
privacy: { claudeAccountUsage: false, showAccountEmail: false, codexAccount: false, codexHistorySources: [], macmonTemperature: false },
privacy: { claudeAccountUsage: false, showAccountEmail: false, codexAccount: false, codexHistorySources: [], macmonTemperature: false, messages2FA: false },
labs: { devices: false, companion: false },
marketplace: { installed: {} },
widgets: {
Expand Down
2 changes: 2 additions & 0 deletions server/src/demo/providers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { z } from 'zod'
import type { Provider } from '../providers/types.js'
import { tr } from '../i18n.js'
import type { Config } from '../config/schema.js'
import { findInstance, type InstanceLookup } from '../config/instances.js'
import { resolveServices, type ServiceResult } from '../providers/service-status.js'
Expand Down Expand Up @@ -62,6 +63,7 @@ export function createDemoProviders(opts: DemoProviderOptions): Provider[] {
{ channel: 'cleanshot', commands: { run: ACTED } },
rtkProvider(now),
{ channel: 'shortcuts', commands: { open: ACTED } },
{ channel: 'messages-2fa', commands: { copyLatest: async () => ({ ok: false, error: tr(undefined, 'messages2fa.noneFound') }) } },
serviceStatusProvider(now, opts.instances ?? ((id) => findInstance(opts.config(), id))),
]
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/demo/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function demoConfig(locale: 'fr' | 'en' = 'en'): Config {
// A file next to the config, never the keychain: a demo has nothing to keep secret.
secrets: { backend: 'file' },
locale,
privacy: { claudeAccountUsage: true, showAccountEmail: false, codexAccount: true, codexHistorySources: ['cli', 'vscode', 'appServer'], macmonTemperature: false },
privacy: { claudeAccountUsage: true, showAccountEmail: false, codexAccount: true, codexHistorySources: ['cli', 'vscode', 'appServer'], macmonTemperature: false, messages2FA: false },
marketplace: { installed: {} },
// As on a fresh install: the iPad screens stay an experimental feature until it is ticked.
labs: { devices: false, companion: false },
Expand Down
16 changes: 16 additions & 0 deletions server/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ const fr = {

// app.ts — the global request gate
'provider.invalidPayload': 'charge utile invalide',
'messages2fa.disabled': 'activez la recherche de codes Messages dans les réglages de confidentialité',
'messages2fa.localOnly': 'disponible uniquement depuis ce Mac',
'messages2fa.invalidRequest': 'requête invalide',
'messages2fa.rateLimited': 'attendez quelques secondes avant de rechercher un autre code',
'messages2fa.readFailed': 'impossible de lire Messages',
'messages2fa.permission': 'autorisez l’accès complet au disque pour Fremkit dans Réglages Système',
'messages2fa.noneFound': 'aucun code de vérification récent trouvé',
'messages2fa.copyFailed': 'impossible de copier le code',
'clipboard.unknownEntry': 'entrée inconnue',
'serviceStatus.invalidHost': 'hôte invalide',
'serviceStatus.invalidHostPort': 'hôte:port invalide',
Expand Down Expand Up @@ -333,6 +341,14 @@ const en: Record<MessageKey, string> = {
'config.degraded': 'configuration on disk is unreadable: fix data/fremkit.json then restart the server',

'provider.invalidPayload': 'invalid payload',
'messages2fa.disabled': 'enable Messages code lookup in Privacy settings',
'messages2fa.localOnly': 'available only from this Mac',
'messages2fa.invalidRequest': 'invalid request',
'messages2fa.rateLimited': 'wait a few seconds before looking up another code',
'messages2fa.readFailed': 'Messages could not be read',
'messages2fa.permission': 'grant Fremkit Full Disk Access in System Settings',
'messages2fa.noneFound': 'no recent verification code found',
'messages2fa.copyFailed': 'the code could not be copied',
'clipboard.unknownEntry': 'unknown entry',
'serviceStatus.invalidHost': 'invalid host',
'serviceStatus.invalidHostPort': 'invalid host:port',
Expand Down
Loading