forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient_env_policy.yaml
More file actions
169 lines (169 loc) · 5.98 KB
/
Copy pathclient_env_policy.yaml
File metadata and controls
169 lines (169 loc) · 5.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"public_client_env": {
"allowed": [
"PUBLIC_API_BASE_URL",
"PUBLIC_USE_WEB_AUTH",
"PUBLIC_USE_AUTH_CUSTOM_TOKEN",
"PUBLIC_GOOGLE_MAPS_API_KEY",
"PUBLIC_GOOGLE_CLIENT_ID",
"PUBLIC_POSTHOG_API_KEY",
"PUBLIC_INTERCOM_APP_ID",
"PUBLIC_INTERCOM_IOS_API_KEY",
"PUBLIC_INTERCOM_ANDROID_API_KEY"
]
},
"legacy_public_client_env": {
"allowed": [
"FIREBASE_API_KEY",
"MIXPANEL_PROJECT_TOKEN",
"OMI_DESKTOP_API_URL",
"OMI_PYTHON_API_URL"
]
},
"public_web_build_args": {
"allowed": [
"API_URL",
"NEXT_PUBLIC_API_BASE_URL",
"NEXT_PUBLIC_FIREBASE_API_KEY",
"NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN",
"NEXT_PUBLIC_FIREBASE_PROJECT_ID",
"NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET",
"NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID",
"NEXT_PUBLIC_FIREBASE_APP_ID",
"NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID",
"NEXT_PUBLIC_FIREBASE_VAPID_KEY",
"NEXT_PUBLIC_MIXPANEL_TOKEN",
"NEXT_PUBLIC_EXTRA_PROMPT_RULES",
"NEXT_PUBLIC_PLUGINS_APP_ID",
"NEXT_PUBLIC_OMI_API_URL"
]
},
"public_client_env_sources": {
"allowed": [
]
},
"restricted_public_client_keys": {
"PUBLIC_GOOGLE_MAPS_API_KEY": {
"owner": "mobile-platform",
"purpose": "Google Maps rendering in the public mobile client",
"restriction": "Must be restricted in Google Cloud by the released iOS bundle id, Android package/certificate, and Maps APIs only.",
"revocation": "Rotate in Google Cloud, update the mobile_public_config CI group, and rebuild affected releases."
},
"PUBLIC_POSTHOG_API_KEY": {
"owner": "growth",
"purpose": "Public PostHog event ingestion from the mobile client",
"restriction": "Project ingestion token only; no admin/read capability.",
"revocation": "Rotate in PostHog, update the mobile_public_config CI group, and rebuild affected releases."
},
"PUBLIC_INTERCOM_IOS_API_KEY": {
"owner": "support",
"purpose": "Public Intercom iOS SDK key",
"restriction": "Client SDK key only; no admin/read capability.",
"revocation": "Rotate in Intercom, update the mobile_public_config CI group, and rebuild affected releases."
},
"PUBLIC_INTERCOM_ANDROID_API_KEY": {
"owner": "support",
"purpose": "Public Intercom Android SDK key",
"restriction": "Client SDK key only; no admin/read capability.",
"revocation": "Rotate in Intercom, update the mobile_public_config CI group, and rebuild affected releases."
},
"PUBLIC_USE_AUTH_CUSTOM_TOKEN": {
"owner": "mobile-platform",
"purpose": "Public boolean feature flag selecting custom-token auth flow.",
"restriction": "Boolean config only; never a credential value.",
"revocation": "Set false in public client config and rebuild affected releases."
}
},
"server_secret_env": {
"denied_exact": [
"OPENAI_API_KEY",
"OPENROUTER_API_KEY",
"CLAUDE_API_KEY",
"SLIDESGPT_API_KEY",
"GOOGLE_CLIENT_SECRET",
"GEMINI_API_KEY",
"ANTHROPIC_API_KEY",
"DEEPGRAM_API_KEY",
"PINECONE_API_KEY",
"SUPABASE_KEY",
"UPSTASH_REDIS_PASSWORD",
"GOOGLE_CALENDAR_API_KEY",
"JWT_SECRET",
"OMI_APP_SECRET",
"DECK_APP_SECRET",
"RESEND_API_KEY",
"SENTRY_AUTH_TOKEN",
"REDIS_DB_PASSWORD",
"DESKTOP_DEEPGRAM_API_KEY",
"DESKTOP_ANTHROPIC_API_KEY",
"DESKTOP_GOOGLE_CALENDAR_API_KEY",
"SPARKLE_PRIVATE_KEY",
"APP_STORE_CONNECT_PRIVATE_KEY",
"FIREBASE_SERVICE_ACCOUNT_KEY",
"FIREBASE_SERVICE_ACCOUNT_DEV_KEY",
"GOOGLE_APPLICATION_CREDENTIALS",
"SERVICE_ACCOUNT_JSON",
"ADMIN_KEY",
"ENCRYPTION_SECRET"
],
"denied_name_patterns": [
"(^|_)SECRET($|_)",
"(^|_)PRIVATE_KEY($|_)",
"(^|_)SERVICE_ACCOUNT($|_)",
"(^|_)ADMIN_KEY($|_)",
"(^|_)WEBHOOK_SECRET($|_)",
"(^|_)API_KEY($|_)",
"(^|_)TOKEN($|_)",
"(^|_)PASSWORD($|_)",
"(^|_)CREDENTIALS?($|_)",
"(^|_)KEYSTORE($|_)",
"(^|_)P12($|_)"
]
},
"allowed_build_secret_source_references": [
"CM_KEYSTORE_PATH",
"CM_KEYSTORE_PASSWORD",
"CM_KEY_PASSWORD",
"MATCH_PASSWORD"
],
"allowed_public_client_tokens": [
"INTERCOM_APP_ID",
"INTERCOM_ANDROID_API_KEY"
],
"direct_provider_domains_denied_in_app": [
"api.openai.com",
"api.anthropic.com",
"generativelanguage.googleapis.com",
"api.deepgram.com"
],
"legacy_direct_provider_domain_exceptions": {
"app/lib/models/stt_provider.dart": {
"owner": "mobile-platform",
"reason": "Legacy user-supplied custom STT templates. New provider integrations must go through backend-owned secret storage and a provider proxy.",
"migration": "Replace direct BYOK STT calls with backend BYOK references before adding new provider domains.",
"allowed_occurrences": {
"api.openai.com": 2,
"api.deepgram.com": 2,
"generativelanguage.googleapis.com": 2
}
},
"app/lib/services/sockets/transcription_polling_service.dart": {
"owner": "mobile-platform",
"reason": "Legacy user-supplied custom STT polling implementation. New provider integrations must go through backend-owned secret storage and a provider proxy.",
"migration": "Replace direct BYOK STT calls with backend BYOK references before adding new provider domains.",
"allowed_occurrences": {
"api.openai.com": 2,
"api.deepgram.com": 1,
"generativelanguage.googleapis.com": 1
}
},
"app/lib/services/sockets/pure_streaming_stt.dart": {
"owner": "mobile-platform",
"reason": "Legacy user-supplied Gemini streaming STT implementation. New provider integrations must go through backend-owned secret storage and a provider proxy.",
"migration": "Replace direct BYOK STT calls with backend BYOK references before adding new provider domains.",
"allowed_occurrences": {
"generativelanguage.googleapis.com": 1
}
}
}
}