Skip to content

Conversation

@russellhancox
Copy link
Member

@russellhancox russellhancox commented Jan 22, 2026

This PR adds two new functions to the CELv2 environment: require_touchid_with_cooldown_minutes(int) and require_touchid_only_with_cooldown_minutes(int) - these functions return the respective return values and also cache the response for the specified number of minutes, so that the user doesn't have to keep authorizing the same application repeatedly. This cache is in-memory only and can store up to 100 records.

This is implemented by changing the return value of CELv2 expressions to be a new proto message called Result, which stores both the usual enum result and the cooldown minutes time. The usual enum constants (ALLOWLIST, BLOCKLIST, etc.) are now mapped to instances of Return with just the value field set, the new functions return the message with the extra field populated too. This is because values in a ternary expression must have matching types and we want to be able to support expressions like euid == 0 ? require_touchid_only_with_cooldown_minutes(10) : ALLOWLIST

@russellhancox russellhancox requested a review from a team as a code owner January 22, 2026 23:33
@github-actions github-actions bot added comp/santad Issues or PRs related to the daemon lang/objc++ PRs modifying files in ObjC++ comp/common size/l Size: large labels Jan 22, 2026
russellhancox and others added 5 commits January 22, 2026 18:34
…tion (#741)

This PR sets up the XPC channel with the network extension - handling
registration, protocol version matching, and settings - as well as
connecting back to the extension.

This also implements the stubs to allow non-maintainers to continue
building Santa without access to the extension repo.

Part of SNT-261
This renames `SNTNetworkExtensionSettings` to
`SNTSyncNetworkExtensionSettings`
@github-actions github-actions bot added configurator Issues or PRs related to the configurator / Santa configuration comp/gui Issues or PRs related to the Santa GUI comp/santasyncservice Issues or PRs related to the sync protocol comp/santactl Issues or PRs related to santactl size/xl Size: extra large and removed size/l Size: large labels Jan 23, 2026
@github-actions github-actions bot added size/l Size: large and removed size/xl Size: extra large labels Jan 23, 2026
@russellhancox russellhancox merged commit 689223d into main Jan 24, 2026
6 checks passed
@russellhancox russellhancox deleted the rah/ws-871 branch January 24, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/common comp/gui Issues or PRs related to the Santa GUI comp/santactl Issues or PRs related to santactl comp/santad Issues or PRs related to the daemon comp/santasyncservice Issues or PRs related to the sync protocol configurator Issues or PRs related to the configurator / Santa configuration lang/objc++ PRs modifying files in ObjC++ size/l Size: large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants