Skip to content

chore(apple): Remove managed enforcement of full-tunnel - #9230

Merged
jamilbk merged 1 commit into
mainfrom
chore/remove-internet-managed
May 26, 2025
Merged

chore(apple): Remove managed enforcement of full-tunnel#9230
jamilbk merged 1 commit into
mainfrom
chore/remove-internet-managed

Conversation

@jamilbk

@jamilbk jamilbk commented May 26, 2025

Copy link
Copy Markdown
Member

After discussing with @thomaseizinger, we realized this is better supported with Polices.

@jamilbk
jamilbk requested review from Copilot and thomaseizinger and removed request for Copilot May 26, 2025 03:34
@vercel

vercel Bot commented May 26, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2025 3:34am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes all occurrences of the managed (forced) enforcement of full-tunnel behavior in favor of policy-based management.

  • Removed the "forced" property and its related CombineLatest subscriptions from ResourceView.
  • Removed forced state handling, UI disabling, and related comparisons from MenuBar.
  • Updated default settings and conditional checks in Configuration and Store to reflect the change.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
swift/apple/FirezoneKit/Sources/FirezoneKit/Views/ResourceView.swift Removed forced state property and simplified CombineLatest to only observe enabled state.
swift/apple/FirezoneKit/Sources/FirezoneKit/Views/MenuBar.swift Removed forced state UI handling and related state comparisons.
swift/apple/FirezoneKit/Sources/FirezoneKit/Stores/Store.swift Updated boolean check for connectOnStart for stylistic consistency.
swift/apple/FirezoneKit/Sources/FirezoneKit/Models/Configuration.swift Removed forced state properties and updated default values accordingly.
Comments suppressed due to low confidence (3)

swift/apple/FirezoneKit/Sources/FirezoneKit/Views/ResourceView.swift:239

  • The removal of the 'forced' property is consistent with the change; please ensure that all UI elements previously relying on the forced state are updated and that tests cover these changes.
@Published private(set) var forced: Bool

swift/apple/FirezoneKit/Sources/FirezoneKit/Views/MenuBar.swift:277

  • [nitpick] Removing the disabling logic based on 'forced' is intentional; double-check that the new behavior aligns with design expectations without unintentionally allowing modifications where managed settings were expected.
.disabled(viewModel.forced)

swift/apple/FirezoneKit/Sources/FirezoneKit/Models/Configuration.swift:115

  • [nitpick] The removal of forced state updates in Configuration is appropriate for this change; ensure that associated documentation and tests are updated to reflect the new behavior.
self.publishedInternetResourceForced = isInternetResourceForced

static let defaultSupportURL = "https://firezone.dev/support"

// Bools are always default false
static let defaultConnectOnStart = false

Copilot AI May 26, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the defaultConnectOnStart value from true to false affects startup behavior; please document this change clearly in release notes or migration guides.

Copilot uses AI. Check for mistakes.
@jamilbk
jamilbk enabled auto-merge May 26, 2025 03:41
@jamilbk
jamilbk added this pull request to the merge queue May 26, 2025
Merged via the queue into main with commit 842fe87 May 26, 2025
@jamilbk
jamilbk deleted the chore/remove-internet-managed branch May 26, 2025 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants