-
Notifications
You must be signed in to change notification settings - Fork 0
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
API to update the .well-known from DIDroom #59
Comments
If I understood well, the micorservice will need the ecdsa public key of the microservice owner to decrypt the updated well-known. How should it know this? |
That's exactly the problem... it can't be done... ideas:
|
I still see two problems:
|
@jaromil comments? |
Obsolete, replaced by auto-deployment |
We need an API, on each the 3 microservices, called /DIDroom-update and one corresponding API on the DIDroom dashboard, that allows the DIDroom user to push an updated well-know file to each of is own the microservices.
Important
We need to insert a mechanism to make sure that only the owner of the microservices can update them [TBD]
The flows:
On the dashboard side:
Reads the existing .well-known of the microservice
Reads the jwks": > "keys": > "kid" of the microservice, retrieves the DID and extracts the ecdsa pubkey
Manipulates the .well-know locally to reflect the changes
Creates a dictionary containing the .well-known as well as the path/name of the file to be changed (different for every microservice type)
Encrypts the new .well-know using AES-GCM, and ecdsa pubkey from above
does a POST to the /DIDroom-update of the microservice, passing the encrypted payload
On the microservice side:
Both the scripts (send and update) should ideally be on this repo, keeping in mind that DIDroom should import the "send" script (via git submodule or similar)
The text was updated successfully, but these errors were encountered: