decentralized-identity / universal-resolver

Universal Resolver implementation and drivers.
https://uniresolver.io/
Apache License 2.0
529 stars 233 forks source link

DID Driver URL parameterization #410

Closed jcourt562 closed 3 months ago

jcourt562 commented 4 months ago

Issue Description :

Currently the uni-resolver-web container application pulls the DID Driver locations and pattern matching expressions from the uni-resolver-web/src/main/resources/application.yml. The driver URL fields are hardcoded strings in this file tailored to a docker-compose deployment/host naming, environment. It would be preferable to inject the driver URLs into the deployment so that the uni-resolver-web image can be used in a wider range of underlying cloud deployment infrastructure. One example is AWS fargate where load balancers can use port addresses to direct traffic to different DID Driver containers. Another example is where a developer may wish to switch between instances of the same DID Method driver for testing/comparison.

Proposed Solution

In this pull request there are two fairly simple file changes:

peacekeeper commented 4 months ago

Seems like a good idea.. @ankurdotb @BernhardFuchs what do you think?

@jcourt562 Could you also update https://github.com/decentralized-identity/universal-resolver/blob/main/docs/driver-development.md#how-to accordingly, to reflect this change in the instructions for new driver contributors?

BernhardFuchs commented 4 months ago

Yes, that is a great idea. Thx for the contribution.

jcourt562 commented 4 months ago

Seems like a good idea.. @ankurdotb @BernhardFuchs what do you think?

@jcourt562 Could you also update https://github.com/decentralized-identity/universal-resolver/blob/main/docs/driver-development.md#how-to accordingly, to reflect this change in the instructions for new driver contributors?

I have had a go at updating the steps required, feel free to adjust the wording :-)