OPToggles should be run as a docker container.
Port 8080 is used for listening to both OPAL trigger callbacks and http health checks. A configuration yaml file could be supplied through a volume mount, for example:
docker run -n optoggles -p 8080:8080 -v $PWD/config.yaml:/optoggles/config.yaml --rm -it permitio/optoggles:latest
- id: myopal
# Replace with your LaunchDarkly API token
- key: "somefeature"
name: "Some Feature Toggle"
environments: [ "production", "staging" ]
- Optoggles would register to receive callbacks on policy/data changes from
OPAL Clientinstance running at
- Then, query
OPAinstance for the new value of
somefeature_userson every change (
somefeature_usersis a set of all usernames allowed for some feature).
- Next, OPToggle will create the toggle if it doesn't already exists
- Lastly, OPToggle would sync the toggle
LaunchDarklyaccount to target the current set of usernames allowed by the policy.
- Health checks are available under
Building your own version of
OPToggles is as simple as:
docker build . -t optoggles:$IMAGE_TAG