security: remove internal Tailscale IP from APK binary (v1.0.34)

secrets.dart: change AI_PROXY_URL defaultValue from 'http://100.76.7.3:8080'
to empty string. Consumer APKs use useProxy=false and never reach this code
path, so there is zero functional impact. Internal network topology is no
longer embedded in distributed binaries.

Made-with: Cursor
This commit is contained in:
Ponshu Developer 2026-04-12 11:47:35 +09:00
parent 7a20f161dd
commit 0caf370302
2 changed files with 9 additions and 8 deletions

View File

@ -14,20 +14,21 @@ import 'secrets.local.dart' as local;
class Secrets {
/// AI Proxy URL
///
/// : Synology NAS上のAI Proxyサーバー (Tailscale IP)
/// : --dart-define=AI_PROXY_URL=...
/// useProxy=true 使consumer APK useProxy=false
/// --dart-define=AI_PROXY_URL=...
static const String aiProxyBaseUrl = String.fromEnvironment(
'AI_PROXY_URL',
defaultValue: 'http://100.76.7.3:8080',
defaultValue: '', //
);
/// AI Mode: Proxy(Home) vs Direct(Cloud)
/// If false, connects directly to Google Gemini API (Works anywhere).
/// Development (with Tailscale): --dart-define=USE_PROXY=true
/// General distribution: false (each user provides their own Gemini API key)
///
/// false: Gemini API consumer APK
/// API --dart-define=GEMINI_API_KEY=...
/// true: --dart-define=USE_PROXY=true
static const bool useProxy = bool.fromEnvironment(
'USE_PROXY',
defaultValue: false, // : Direct APIAPIキー設定
defaultValue: false,
);

View File

@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.33+40
version: 1.0.34+41
environment:
sdk: ^3.10.1