Replies: 1 comment 1 reply
-
@tsickert I really like this idea. It should be relatively easy, we'd have to break up the GRPC service into 2 services in the proto definitions. Then we'd just start up each service on its own ports on both the GRPC and REST APIs, so potentially 4 different ports/goroutines. A couple questions/concerns though:
What do you think? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
Flipt fundamentally has two different ways of interacting with it.
Manging the configuration would obviously be done by the owners of the project. Checking if the feature flag is true is something a client used by customers could be doing directly (from a website, for example). Adding a reverse proxy with authentication is a good solution, but involves external tools. In some cases (like QA environments) I just want to spin up an instance of Flipt in ECS and then hit it directly from my QA environment.
Proposal
What do you think about allowing for a management port override like
MANAGEMENT_PORT
to be provided in the environment that would set the API to serve the management endpoints on a different port? That way, users could spin up the instance and then use AWS security groups (or the analogous alternative in other providers) to expose only the endpoint to get the configuration to the internet, while the management endpoints could only be accessible from some VPC subnet or even an individual IP.Note: I'm thinking of the REST API for this, I'd have to go take a look at how gRPC servers requests, but I imagine it would be possible.
Beta Was this translation helpful? Give feedback.
All reactions