https://www.growthbook.io/ logo
#announcements
Title
# announcements
m

magnificent-postman-46110

02/22/2023, 1:19 PM
Hi, how do I put an auth behind :3100 port which serves the api information? as in our production deployment we don’t want it to be open publically, now say we are able to put auth, then how will growthbook dashboard still work with this?
@fresh-football-47124 can you please help? also I can see that under sdk endpoints section, encrypted field is NO. I am trying to productionize growthbook in my company so this would help.
f

fresh-football-47124

02/23/2023, 7:20 AM
ok
how are you access the feature flag endpoint?
from client side?
m

magnificent-postman-46110

02/23/2023, 7:44 AM
I am accessing it using an endpoint like
<http://localhost:3100/api/features/prod_>......
from SDKs section which is publically open
f

fresh-football-47124

02/23/2023, 7:55 AM
is the SDK running on the browser, like with JS?
or only server side?
if it’s client side, you can’t put authentication
m

magnificent-postman-46110

02/23/2023, 8:00 AM
sdk is running on client side, like any service which’s using growthbook for feature flags
but just doing a get request on the endpoint mentioned above, which is public, how should I add auth to that?
f

fresh-football-47124

02/23/2023, 8:01 AM
do you want your site usable by the general public?
m

magnificent-postman-46110

02/23/2023, 8:02 AM
yes I want product managers to be able to use growthbook that’s why but also want some security behind the api endpoint so that not everyone can see it publically, say outside company
f

fresh-football-47124

02/23/2023, 8:03 AM
all they get is a list of features - unfortunately as the flags and experiments must be evaluated in the SDK, there is no way to hide them completely - you can use the encrypted endpoint to obscure what flags are there.
m

magnificent-postman-46110

02/23/2023, 8:04 AM
I see.. how to encrypt an endpoint? like is this feature only available using a license key?
f

fresh-football-47124

02/23/2023, 8:46 AM
yes
usually just seeing a list of features isn’t such a big deal
m

magnificent-postman-46110

02/23/2023, 9:40 AM
I see, cool then! thanks for the help 🙏
9 Views