# Source excerpts for the VPNL-2026-0014 retest at singlink-vpn-app 71156e1fc640102fdbced928d9993a3660f82d6c
# Each block shows the command and its output, run in the repository root of a fresh clone.
# generated: 2026-11-19T03:54:50Z
## F-01 local proxy authentication
$ grep -n 'Auth \*bool\|auth := \|StartAuth\|requested authentication' core/ffi/main.go
123: auth := cfg.Auth == nil || *cfg.Auth
124: // StartAuth returns this session's own credentials; they cannot belong
126: user, pass, err := e.StartAuth(cfg.Link, cfg.Listen, engine.Options{Auth: auth})
$ grep -n "'auth'" lib/core/singlink_service.dart
139: final cfg = jsonEncode({'link': link, 'listen': listen, 'auth': auth});
$ grep -n 'localProxyNeedsAuth' lib/core/client_controller.dart
119: bool get localProxyNeedsAuth =>
512: if (core.usesLocalProxy && _sessionAuth != localProxyNeedsAuth) {
623: final auth = localProxyNeedsAuth;
663: ? !auth && !localProxyNeedsAuth
689: if (native.usesLocalProxy && auth != localProxyNeedsAuth) {
719: if (_sessionAuth == localProxyNeedsAuth) return;
$ grep -n 'no password\|any app or user account' lib/ui/settings_page.dart
379: title: const Text('Local proxy has no password'),
382: 'any app or user account on this computer can use ${c.listen}. '
## F-03 Go version
$ grep -n '^go ' core/go.mod
3:go 1.27.4
$ grep -n 'govulncheck@' .github/workflows/*.yml
88: go install golang.org/x/vuln/cmd/govulncheck@v1.10.0
179: run: go run golang.org/x/vuln/cmd/govulncheck@v1.10.0 ./...
303: go install golang.org/x/vuln/cmd/govulncheck@v1.10.0
## F-04 wording, Android always-on, iOS option
$ grep -rn 'Protected ยท Traffic encrypted\|All traffic is going through' lib android ios || echo '(no match)'
(no match)
$ grep -n 'Device traffic goes through' lib/core/client_controller.dart android/app/src/main/kotlin/com/singlinklabs/singlinkvpn/*.kt
lib/core/client_controller.dart:153: 'Device traffic goes through SingLinkVPN while connected',
android/app/src/main/kotlin/com/singlinklabs/singlinkvpn/SingLinkVpnService.kt:287: const val CONNECTED_TEXT = "Device traffic goes through SingLinkVPN while connected"
$ grep -n 'SUPPORTS_ALWAYS_ON' android/app/src/main/AndroidManifest.xml
51: android:name="android.net.VpnService.SUPPORTS_ALWAYS_ON"
$ grep -n 'includeAllNetworks\|excludeLocalNetworks\|enforceRoutes' ios/Runner/SingLinkVpnPlugin.swift
191: /// includeAllNetworks asks iOS to send all traffic through the tunnel,
195: /// excludeLocalNetworks keeps local network devices (printers, AirPlay)
196: /// reachable. enforceRoutes stays off: with includeAllNetworks it adds
204: proto.includeAllNetworks = blockOutsideTunnel
205: proto.excludeLocalNetworks = blockOutsideTunnel
206: proto.enforceRoutes = false
$ grep -rn 'blockOutsideTunnel' lib/models/*.dart | head -5
## F-05 macOS hardened runtime and App Sandbox
$ grep -n 'ENABLE_HARDENED_RUNTIME\|CODE_SIGN_ENTITLEMENTS' macos/Runner.xcodeproj/project.pbxproj
506: CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
509: ENABLE_HARDENED_RUNTIME = YES;
641: CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
663: CODE_SIGN_ENTITLEMENTS = "Runner/Release$(SINGLINK_ADHOC_ENTITLEMENTS_$(DEVELOPMENT_TEAM)).entitlements";
666: ENABLE_HARDENED_RUNTIME = YES;
$ grep -A1 'app-sandbox\|disable-library-validation' macos/Runner/Release.entitlements macos/Runner/Release-AdHoc.entitlements
macos/Runner/Release.entitlements: com.apple.security.app-sandbox
macos/Runner/Release.entitlements-
macos/Runner/Release-AdHoc.entitlements: com.apple.security.app-sandbox
macos/Runner/Release-AdHoc.entitlements-
macos/Runner/Release-AdHoc.entitlements: com.apple.security.cs.disable-library-validation
macos/Runner/Release-AdHoc.entitlements-
## F-06 packet tunnel logging
$ grep -n 'os_log(' ios/PacketTunnel/PacketTunnelProvider.swift
56: os_log("start failed (%{public}@): %{private}@", log: log, type: .error,
113: os_log("tunnel started on fd %d", log: log, type: .info, fd)
127: os_log("stop, reason %ld", log: log, type: .info, reason.rawValue)
182: os_log("core stopped (%{public}@): %{private}@", log: log, type: .error,
## F-07 settings metadata
$ grep -n 'sensitiveKeys\|matchKeyFor\|matchSalt' lib/models/profile.dart lib/core/app_store.dart | head -20
lib/core/app_store.dart:36:/// A new random per-installation key for [matchKeyFor].
lib/core/app_store.dart:51:String matchKeyFor(String salt, String server, String subject) {
lib/core/app_store.dart:70: String? matchSalt,
lib/core/app_store.dart:72: matchSalt = _validSalt(matchSalt) ? matchSalt! : newMatchSalt();
lib/core/app_store.dart:94: /// Random per-installation key of [matchKeyFor]; not a secret by itself.
lib/core/app_store.dart:95: final String matchSalt;
lib/core/app_store.dart:107: matchSalt: matchSalt,
lib/core/app_store.dart:119: 'matchSalt': matchSalt,
lib/core/app_store.dart:151: matchSalt: json['matchSalt'] as String?,
lib/core/app_store.dart:162: (p) => Profile.sensitiveKeys.any(p.containsKey),
lib/core/app_store.dart:565: final key = matchKeyFor(
lib/core/app_store.dart:566: state.matchSalt,
lib/core/app_store.dart:605: matchSalt: state.matchSalt,
lib/models/profile.dart:42: /// (AppStore.matchKeyFor). Lets a re-import replace an entry whose
lib/models/profile.dart:159: static const sensitiveKeys = {'server', 'sni', 'subject', 'link'};
$ grep -n 'isExcludedFromBackup' ios/Runner/AppDelegate.swift macos/Runner/AppDelegate.swift
macos/Runner/AppDelegate.swift:27: values.isExcludedFromBackup = true
ios/Runner/AppDelegate.swift:39: values.isExcludedFromBackup = true
$ grep -n 'LOCALAPPDATA\|migrateWindowsRoamingData' lib/core/app_store.dart | head
179: // migrateWindowsRoamingData moves those files here at start-up.
181: Platform.environment['LOCALAPPDATA'] ?? Platform.environment['APPDATA'];
196:Future migrateWindowsRoamingData({
201: final local = env['LOCALAPPDATA'];
## F-08 build supply chain
$ grep -n 'runs-on\|persist-credentials\|choco install' .github/workflows/*.yml
44: runs-on: macos-26 # pinned image; change deliberately
48: persist-credentials: false
58: persist-credentials: false
136: runs-on: windows-2022 # windows-latest ships VS 2026, which Flutter 3.35 cannot detect
140: persist-credentials: false
150: persist-credentials: false
166: choco install mingw --version $env:MINGW_VERSION --no-progress -y --force
252: runs-on: ubuntu-26.04 # pinned image; change deliberately
256: persist-credentials: false
266: persist-credentials: false
350: runs-on: macos-26 # pinned image; change deliberately
354: persist-credentials: false
364: persist-credentials: false
423: runs-on: macos-26 # pinned image; change deliberately
427: persist-credentials: false
437: persist-credentials: false
$ grep -n 'distributionSha256Sum' android/gradle/wrapper/gradle-wrapper.properties
8:distributionSha256Sum=7ebdac923867a3cec0098302416d1e3c6c0c729fc4e2e05c10637a8af33a76c5
## New: proxy password copied to the clipboard
$ grep -n 'Clipboard.setData' lib/ui/settings_page.dart
478: await Clipboard.setData(ClipboardData(text: widget.value));
## New: iOS last error stored in app-group defaults
$ grep -n 'setLastError\|forKey: "lastError' ios/PacketTunnel/PacketTunnelProvider.swift
51: SharedState.setLastError(nil)
58: SharedState.setLastError(message)
184: SharedState.setLastError(reason)
275: static func setLastError(_ message: String?) {
278: defaults.set(message, forKey: "lastError")
279: defaults.set(Date().timeIntervalSince1970, forKey: "lastErrorAt")
281: defaults.removeObject(forKey: "lastError")
282: defaults.removeObject(forKey: "lastErrorAt")
## Defaults (F-01 system proxy, F-04 iOS option)
$ grep -n 'this.systemProxy = true\|this.blockOutsideTunnel = false' lib/core/app_store.dart
68: this.systemProxy = true,
69: this.blockOutsideTunnel = false,