Hi, is there a way to run GrowthBook Proxy, but on...
# ask-questions
f
Hi, is there a way to run GrowthBook Proxy, but only proxy a subset of projects? From what I've checked, API key can only be created as read-only or admin, so the proxy will have access to all features.
r
Bumping this question today in case it got lost! thank you 🙏
f
the SDKs can be set to return payloads per project
but I dont think there is a way to tell the proxy to only work for one endpoint
r
Can we use SDK API keys for Proxy, instead of a global key?
f
@happy-autumn-40938 ^?
h
@fierce-tent-11841 There is no filtering of SDK keys in place at this time; all SDK connections in GrowthBook are proxied. @rhythmic-agency-4145 SDK keys are not a substitute for the API key / access token, as the latter is an auth mechanism used to sync SDK connections. If there is enough general interest we can explore adding SDK connection level filtering to the proxy. If you do need something a bit more immediately, you can explore a hidden feature called
CREATE_CONNECTIONS_FROM_ENV
which lets you manually define the SDK connections via environment variables (you'd also want to turn off
POLL_FOR_CONNECTIONS
), Undocumented, but see
getConnectionsFromEnv()
here https://github.com/growthbook/growthbook-proxy/blob/main/packages/apps/proxy/src/services/registrar/helper.ts#L16
r
Oh that might work! Thank you