Authorize backend service with function
sabatale
PROOP

a year ago

Assuming there is a backend service running directly from a docker hub public image, is it possible to setup an authorization path to protect the backend with a bun function?

For example, checking if there is the appropriate API token with the request before sending it to the backend?

Cheers!

Solved

1 Replies

Hello sabatale,

Yes, it's possible to set up an authorization path to protect a backend running from a Docker Hub public image. You can implement a middleware in your backend service that checks for the presence of an API token in the request headers. If the token is valid, the request can proceed; otherwise, it can be rejected. This way, you can ensure that only authorized requests are processed by your backend.

Best regards,

The Railway Team


Status changed to Awaiting User Response Railway 11 months ago


Railway
BOT

6 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 6 months ago


Loading...