Open PatrickMunsey opened 4 months ago
Just came accross a similar issue in the actual openfga engine repo. https://github.com/openfga/openfga/issues/1132#issuecomment-2126177701
Hi @PatrickMunsey
The fact that you can specify store-id
in fga store import
is a bug. As you've seen, we don't use that store id, because we can't set it.
We understand the value of being able to easily know the store_id / model_id for configuration management, but we haven't been able to work on this problem yet.
This is very essential when using docker compose and setting up some init scripts. There should be a way to determine the store id so that it can be passed as env variable to other services.
It would definitely be very interesting to be able to create static store ids/model ids for local development and such.
I'm unable to create a store either from a file or scratch while specifying the store-id.
I'd like to be able to specify the store id during creation so that the entire configuration and secret management for setting up openfga can be set prior to deployment.
I've seen that store-id can be specified for the openfga CLI fga store import command, however specifying the store id with
--store-id
leads to the store not being created at all.e.g.
fga store import --file test-store.yaml --store-id 01HYHGP755KA1BQMBR568RVKKV
fga store list
It would also be nice to se a
--store-id
parameter added to the fga store create command.e.g.
fga store create --name test-store --model test-model.fga --store-id 01HYHGP755KA1BQMBR568RVKKV