Repository navigation
v2.0.0: rebuild policy model, safe search, default policy, proxy enforcement - #183
Merged
Merged
Conversation
…rcement Breaking: the policy document format changes from version 1 to version 2. Existing policies upgrade automatically on first read and keep enforcing what they enforced before; the next policy write persists the new format. Policy model: - One policy per request: proxy user > device assignment > Default policy - Blocked/allowed domain lists, blocked categories, safe search, and ordered first-match rules with their own targets and schedules - DNS safe search for Google, Bing, DuckDuckGo, YouTube restricted mode - Short block TTL (60s) so schedules and pauses apply promptly - Typed proxy contract replaces reflection; URL patterns tested before upstream; CONNECT tunnels not matched by URL patterns - v1 documents upgrade on read preserving enforcement UI: policies page rebuilt with per-policy device assignment, test-a-site evaluator, and useful starter policies. Device detail shows effective policy. Co-Authored-By: Claude <noreply@anthropic.com>
…k baseline The smoke scripts posted v1 group fields (domains/action), which v2 ignores, so nothing was blocked. Blocks now serve a page naming the rule, so check for the block page instead of an empty body. Co-Authored-By: Claude <noreply@anthropic.com>
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #183 +/- ##
==========================================
+ Coverage 46.73% 48.05% +1.31%
==========================================
Files 120 123 +3
Lines 10689 10956 +267
==========================================
+ Hits 4996 5265 +269
+ Misses 5019 5009 -10
- Partials 674 682 +8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
A push to master whose main.go version has no v<version> tag yet now builds, smoke-tests, tags that commit, and publishes a GitHub release with the matching CHANGELOG section as notes. No release branch or manual tag needed. Also restores the 2.0.0 version and CHANGELOG entry lost when the branch was rebuilt onto master. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Rebuilds the policy feature from scratch so it actually works as a per-device internet safety gateway.
The old model was broken
The new model (policy document v2)
blocked_categories,blocked_domains,allowed_domains(allowed wins over everything)Tests
application,gatesentryproxy, and root modules (exceptTestAuthAndFilterswhich fails on the baseline too)Breaking changes
action,domains,categorieson a group →blocked_domains,blocked_categories,allowed_domainsmitm_actionremoved (URL/response conditions turn inspection on automatically)RuleMatchHandlerreturns*PolicyDecisioninstead ofinterface{}🤖 Generated with [CC]