Skip to content

Commit

Permalink
Merge pull request #1266 from fermyon/tpmccallum-patch-2
Browse files Browse the repository at this point in the history
Private endpoints in Spin 2.5
  • Loading branch information
Timothy McCallum authored May 8, 2024
2 parents a57d6a3 + 0f4b4ff commit da2317f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/spin/v2/http-outbound.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ Both of these work only from HTTP components. That is, if you want to make an in

To make an HTTP request to another component in your application, use the special `<component-id>.spin.internal` host name. For example, an outbound HTTP request to `authz.spin.internal` will be handled by the `authz` component.

In this way of doing self-requests, the request is passed in memory without ever leaving the Spin host process. This is extremely fast, as the two components are wired almost directly together, but may reduce deployment flexibility depending on the nature of the microservices. Also, components that are the target of service chaining requests may see URLs in both routed and chained forms: therefore, if they parse the URL (for example, extracting a resource identifier from the path), they must ensure both forms are correctly handled.
In this way of doing self-requests, the request is passed in memory without ever leaving the Spin host process. This is extremely fast, as the two components are wired almost directly together, but may reduce deployment flexibility depending on the nature of the microservices. Also, public components that are the target of service chaining requests may see URLs in both routed and chained forms: therefore, if they parse the URL (for example, extracting a resource identifier from the path), they must ensure both forms are correctly handled.

> Service chaining is the only way to call [private endpoints](./http-trigger#private-endpoints).
You must still grant permission by including the relevant `spin.internal` hosts in `allowed_outbound_hosts`:

Expand Down

0 comments on commit da2317f

Please sign in to comment.