Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt the docker-compose setup for coprocessor to rc35+ #57

Open
manoranjith opened this issue Nov 28, 2024 · 1 comment
Open

Adapt the docker-compose setup for coprocessor to rc35+ #57

manoranjith opened this issue Nov 28, 2024 · 1 comment

Comments

@manoranjith
Copy link
Collaborator

manoranjith commented Nov 28, 2024

In the release v0.9.0-rc35 and the following ones for kms images, a change that is not compatible with current setup of docker compose was introduced.

Previously, the gateway need not be aware of the crs_id or key_id. It had a way to query the kms-blockchain for all the existing key's and crs's.

In v0.9.0-rc35 and further release, these two values should be specified by the gateway when querying the kms blockchain. These values are obtained as a result of running the simulator to generate the key and crs. The docker compose setup should be modified in the following way:

  1. After the simulator generates the key and crs, it should stored the value of key_id and crs_id in a .env file in a volume shared by: simulator and gateway containers.
  2. The gateway container, before running the gateway should source this .env file. The environment variables take priority over values in config files (see this test).
@manoranjith
Copy link
Collaborator Author

cc: @leventdem @RomanBredehoft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant