Https with unleash proxy #5515
-
Hi! I've seen that GitLab has the option to use Feature Flag for the development. Since I was already interested to test this way of working, I've tried to use this functionality in our new vue application. Using unleash in the background I've read the documents and I've installed the unleash proxy. After some testing I've managed to handle the features from Gitlab and use them within the vue application. But, all this actually works locally on my development machine. How can I configure the unleash proxy to run with https? Or behind a proxy that offers a https connection? Actually I've found something sparse here and there, but it's not really clear how this should be configured. Another question: should I run a proxy for every combination of application and environment? 10 applications, 2 environment each, 20 instances of the proxy? Have I understood it correctly? Any help is appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello! It sounds to me like you should look into unleash edge. The proxy was created before we added environments as a first class citizen in unleash, and as a result you'll need to run one proxy per environment. Edge can handle any combination of environments and only requires you to run a single instance. There should also be some documentation here on how to setup the TLS cert with edge. Let me know if that answers your question. All the best, |
Beta Was this translation helpful? Give feedback.
-
@FredrikOseberg
But also any application, right? I mean: I configure the Edge to interact with an Unleash server, and it is sharp enough to manage any application/environment (as long the server handles them). Is this right? Another question: is this compatible with the GitLab implementation or should I take into consideration a different service? I've read about the tokens, but I don't know what changes between them. Thank you for your answer! |
Beta Was this translation helpful? Give feedback.
-
No worries. From your answer I suppose that I can use the parameter UNLEASH_PROXY_CLIENT_KEYS (now I use UNLEASH_PROXY_SECRETS, but the other one should be used) to configure several keys, hence the proxy answers to several different applications. Thank you for the time you've invested for this. I appreciate it. |
Beta Was this translation helpful? Give feedback.
@LukMas
Apologies, I did some digging and edge unfortunately does not support gitlab currently. We'd love to support it, but it's out of our hands. We need gitlab to make some changes on their side in order to make edge compatible.
Gitlab is currently on an old version of unleash that does not support environments in the way that Unleash currently deals with environments. In v4 of unleash we built environments into unleash and built them into our API keys so that the API key could be used to resolve which feature toggle configuration to retrieve from the API. Before we added this capability directly in unleash, this was solved by passing in the environment as part of the context and build…