mesg-foundation / engine

Build apps or autonomous workflows with reusable, shareable integrations connecting any service, app, blockchain or decentralized network.
https://mesg.com/
Apache License 2.0
130 stars 13 forks source link

Improve env MESG_TOKEN injected in instance #1445

Closed NicolasMahe closed 4 years ago

NicolasMahe commented 4 years ago

The engine inject the env MESG_TOKEN that is currently simply the instance's hash but should be updated to a real auth system. The problem is the instance need to know its hash to use the API execution and event. My suggestion is to introduce a new env MESG_INSTANCE_HASH that contains the instance hash for ever and use it instead of MESG_TOKEN. We can keep MESG_TOKEN as it currently is to not break current service and update its functionality when we implement the auth system.

NicolasMahe commented 4 years ago

Related to https://github.com/mesg-foundation/engine/issues/1139