RTradeLtd / Temporal

☄️ Temporal is an easy-to-use, enterprise-grade interface into distributed and decentralized storage
https://temporal.cloud
MIT License
227 stars 40 forks source link

In Dev Mode Key Export Fail #446

Closed bonedaddy closed 4 years ago

bonedaddy commented 4 years ago

Describe the bug When running the API in dev mode, key export will fail. This is because the API expects to delete the keys from two krab keystore backends, and when in dev mode there is only 1 keystore backend. Therefore we need to have a check similar to the queue process where if in dev mode we only delete from the primary krab keystore and when in prod we delete from both.

This bug allows removal of the key from the keystore, but not the database.

To Reproduce 1) Run API in dev 2) Create key 3) Delete key (you will get an error)

Expected behavior Delete key with no error