superfly / fly

Deploy app servers close to your users. Package your app as a Docker image, and launch it in 17 cities with one simple CLI.

Home Page:https://fly.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Secured API Key generation on the edge with Fly

karllhughes opened this issue · comments

This wasn't on your target list, but it's a problem I came across recently that would make a good Fly use case.

Algolia is a managed search service. They host your index on a globally distributed network (so it's fast), but if you want to authenticate users, you have to generate a temporary key for them (https://www.algolia.com/doc/guides/security/api-keys/#secured-api-keys).

This means your first call will require a full trip to your backend authentication server, but you can speed that up using edge computing.

Any interest in this becoming an article for Fly?

Yep! This would be a good one. They even say this in the docs:

Secured API keys are virtual, which means they aren’t stored anywhere, and you can’t find them on the Algolia dashboard. You generate them on the fly

Building little gateways to other services is a good use of Fly.