OpenFGA
Follow the OpenFGA installation guide.
helm repo add openfga https://openfga.github.io/helm-charts
helm repo update
- Plane
- Helm
plane up datalayer-openfga
cat << 'EOF' > /tmp/values.yaml
nodeSelector:
role.datalayer.io/system: "true"
experimentals:
- enable-list-users
EOF
export RELEASE=datalayer-openfga
export NAMESPACE=datalayer-openfga
helm upgrade \
--install $RELEASE \
openfga/openfga \
--create-namespace \
--values /tmp/values.yaml \
--namespace $NAMESPACE \
--timeout 5m
Connect to the API.
- Plane
- Helm
echo open http://localhost:8098/stores
plane pf-openfga
export POD_NAME=$(kubectl get pods --namespace datalayer-openfga -l "app.kubernetes.io/name=openfga,app.kubernetes.io/instance=datalayer-openfga" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace datalayer-openfga $POD_NAME -o jsonpath="{.spec.containers[0].ports[1].containerPort}")
echo open http://localhost:8098/stores
kubectl --namespace datalayer-openfga port-forward $POD_NAME 8098:$CONTAINER_PORT
Tear down OpenFGA if needed.
- Plane
- Helm
plane down datalayer-openfga
export RELEASE=datalayer-openfga
export NAMESPACE=datalayer-openfga
helm delete $RELEASE --namespace $NAMESPACE