Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Replace httpbin.org with httpbin.konghq.com #7991

Merged
merged 4 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Leave the process running.
```bash
curl http://localhost:8001/services \
--data "name=acme-test" \
--data "url=http://httpbin.org"
--data "url=https://httpbin.konghq.com"
```

1. Configure a route:
Expand Down
2 changes: 1 addition & 1 deletion app/_hub/kong-inc/exit-transformer/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ end
```bash
curl -i -X POST http://localhost:8001/services \
--data name=example.com \
--data url='http://httpbin.org'
--data url='https://httpbin.konghq.com'
```

2. Create a route in Kong:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the [Costs API reference](/hub/kong-inc/graphql-rate-limiting-advanced/api/)
```sh
curl -X POST http://localhost:8001/services \
--data "name=example" \
--data "host=httpbin.org" \
--data "host=httpbin.konghq.com" \
--data "port=443" \
--data "protocol=https"
curl -X POST http://localhost:8001/services/example/routes \
Expand Down
2 changes: 1 addition & 1 deletion app/_hub/kong-inc/jwt/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ Create a Service:
```bash
curl -i -f -X POST http://localhost:8001/services \
--data "name=example-service" \
--data "url=http://httpbin.org"
--data "url=https://httpbin.konghq.com"
```

Then create a Route:
Expand Down
2 changes: 1 addition & 1 deletion app/_hub/kong-inc/mocking/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ This example creates a service named `Stock-Service`.
```bash
curl -i -X POST http://localhost:8001/services \
--data name=Stock-Service \
--data url='http://httpbin.org/anything'
--data url='https://httpbin.konghq.com/anything'
```

Response:
Expand Down
4 changes: 2 additions & 2 deletions app/_hub/kong-inc/oauth2/how-to/_oauth2rla.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ and advanced Redis support for greater performance. Ensure that you have install
curl --request POST \
--url http://localhost:8001/teamA/services \
--data "name=httpbin" \
--data "url=http://httpbin.org/anything"
--data "url=https://httpbin.konghq.com/anything"
```
The results should look like this:
```json
Expand All @@ -103,7 +103,7 @@ and advanced Redis support for greater performance. Ensure that you have install
"protocol": "http",
"enabled": true,
"created_at": 1699525785,
"host": "httpbin.org",
"host": "httpbin.konghq.com",
"connect_timeout": 60000,
"path": "/anything",
"read_timeout": 60000,
Expand Down
2 changes: 1 addition & 1 deletion app/_hub/kong-inc/opa/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ The input to OPA has the following JSON structure:
},
"client_ip": "127.0.0.1",# client IP address as interpreted by Kong
"service": { # The Kong service resource to which this request will be forwarded to if OPA allows. Injected only if `include_service_in_opa_input` is set to `true`.
"host": "httpbin.org",
"host": "httpbin.konghq.com",
"created_at": 1612819937,
"connect_timeout": 60000,
"id": "e6fd8b19-89e5-44e6-8a2a-79e8bf3c31a5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ enabled the OpenID Connect plugin on the service. You can now test the authoriza

You can examine the query arguments passed to Keycloak with the browser's developer tools.

3. And finally you will be presented a response from `httpbin.org` that looks something like this:
3. And finally you will be presented a response from `httpbin.konghq.com` that looks something like this:

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Create a service that can be used to test the integration.
curl -i -X POST http://localhost:8001/services/ \
--data name="httpbin" \
--data protocol="http" \
--data url="http://httpbin.org"
--data url="https://httpbin.konghq.com"
```

#### Create a route
Expand Down Expand Up @@ -95,7 +95,7 @@ Kong introspects the opaque token and receives the JWT in the response. The JWT
"args": {},
"headers": {
...
"Host": "httpbin.org",
"Host": "httpbin.konghq.com",
"Phantom-Token": "eyJraWQiOiIxN...",
"X-Forwarded-Host": "localhost",
"X-Forwarded-Path": "/httpbin/get",
Expand Down
2 changes: 1 addition & 1 deletion app/_hub/kong-inc/openid-connect/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ before implementing any flows or grants.
### Authentication flows and grants

We use [HTTPie](https://httpie.org/) to execute the examples. The output is stripped
for better readability. [httpbin.org](https://httpbin.org/) is used as an upstream service.
for better readability. [httpbin.konghq.com](https://httpbin.konghq.com/) is used as an upstream service.

Using the Admin API is convenient when testing the plugin, but you can set up similar configs
in declarative format as well.
Expand Down
2 changes: 1 addition & 1 deletion app/_hub/kong-inc/post-function/how-to/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To change any header names, set up a Post-function plugin instance that runs in
```sh
curl -i -X POST http://localhost:8001/services/ \
--data "name=example-service" \
--data "url=http://httpbin.org/headers"
--data "url=https://httpbin.konghq.com/headers"
```

1. Add a route to the service:
Expand Down
4 changes: 2 additions & 2 deletions app/_hub/kong-inc/pre-function/how-to/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Let's test out the Pre-function plugin by filtering requests based on header nam
```bash
curl -i -X POST http://localhost:8001/services/ \
--data "name=example-service" \
--data "url=http://httpbin.org/headers"
--data "url=https://httpbin.konghq.com/headers"
```

1. Add a route to the service:
Expand Down Expand Up @@ -69,7 +69,7 @@ Let's test out the Pre-function plugin by filtering requests based on header nam
``` yaml
services:
- name: example-service
url: http://httpbin.org/headers
url: https://httpbin.konghq.com/headers

routes:
- service: example-service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ above).

### Examples using template as value

1. Add a service named `test` which routes requests to the httpbin.org upstream service:
1. Add a service named `test` which routes requests to the httpbin.konghq.com upstream service:

```bash
curl -X POST http://localhost:8001/services \
--data 'name=test' \
--data 'url=http://httpbin.org/anything'
--data 'url=https://httpbin.konghq.com/anything'
```

2. Create a route for the `test` service, capturing a `user_id` field from the
Expand Down
4 changes: 2 additions & 2 deletions app/_hub/kong-inc/request-transformer/how-to/_templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ above).

## Examples using template as a value

Add a Service named `test` which routes requests to the httpbin.org upstream service:
Add a Service named `test` which routes requests to the httpbin.konghq.com upstream service:

```bash
curl -X POST http://localhost:8001/services \
--data 'name=test' \
--data 'url=http://httpbin.org/anything'
--data 'url=https://httpbin.konghq.com/anything'
```

Create a route for the `test` service, capturing a `user_id` field from the third segment of the request path:
Expand Down
4 changes: 2 additions & 2 deletions app/_hub/kong-inc/request-validator/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,13 @@ In this example, use the plugin to validate a request's path parameter.
```
curl -i -X POST http://localhost:8001/services \
--data name=httpbin \
--data url=http://httpbin.org
--data url=https://httpbin.konghq.com

HTTP/1.1 201 Created
..

{
"host":"httpbin.org",
"host":"httpbin.konghq.com",
"created_at":1563479714,
"connect_timeout":60000,
"id":"0a7f3795-bc92-43b5-aada-258113b7c4ed",
Expand Down
6 changes: 3 additions & 3 deletions app/_hub/kong-inc/saml/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ curl --request PUT \
```bash
curl --request PUT \
--url http://localhost:8001/services/saml-service \
--data url=https://httpbin.org/anything
--data url=https://httpbin.konghq.com/anything
```

```json
{
"id": "5fa9e468-0007-4d7e-9aeb-49ca9edd6ccd",
"name": "saml-service",
"protocol": "https",
"host": "httpbin.org",
"host": "httpbin.konghq.com",
"port": 443,
"path": "/anything"
}
Expand Down Expand Up @@ -192,7 +192,7 @@ curl --request POST \

1. Using a browser, go to the URL (https://kong:8443/saml)
2. The browser is redirected to the AzureAD Sign in page. Enter the user credentials of a user configured in AzureAD
3. If user credentials are valid, the browser will be redirected to https://httpbin.org/anything
3. If user credentials are valid, the browser will be redirected to https://httpbin.konghq.com/anything
4. If the user credentials are invalid, a `401` unauthorized HTTP status code is returned

## Troubleshooting
Expand Down
6 changes: 3 additions & 3 deletions app/_hub/kong-inc/session/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ The following example uses the Session plugin together with the [Key Auth](/hub/
1. Create an example service and a route:

Issue the following cURL request to create `example-service` pointing to
httpbin.org, which echoes the request:
httpbin.konghq.com, which echoes the request:

```bash
curl -i -X POST \
--url http://localhost:8001/services/ \
--data 'name=example-service' \
--data 'url=http://httpbin.org/anything'
--data 'url=https://httpbin.konghq.com/anything'
```

Add a route to the service:
Expand Down Expand Up @@ -160,7 +160,7 @@ Add the following snippet to your declarative config file:
```yaml
services:
- name: example-service
url: http://httpbin.org/anything
url: https://httpbin.konghq.com/anything

routes:
- service: example-service
Expand Down
2 changes: 1 addition & 1 deletion app/_includes/md/kic/test-service-httpbin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Deploy an upstream HTTP application
{% endunless %}

Create a Kubernetes service setup a [httpbin](https://httpbin.org)
Create a Kubernetes service setup a [httpbin](https://httpbin.konghq.com)
service in the cluster and proxy it.

```bash
Expand Down
2 changes: 1 addition & 1 deletion app/_includes/md/plugins-hub/log-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Every request is logged separately in a JSON object, separated by a new line `\n
"write_timeout": 60000,
"read_timeout": 60000,
"updated_at": 1726782459,
"host": "httpbin.org",
"host": "httpbin.konghq.com",
"name": "example_service",
"id": "fb4eecf8-dec2-40ef-b779-16de7e2384c7",
"port": 80,
Expand Down
2 changes: 1 addition & 1 deletion app/_includes/md/plugins-hub/oidc-prereqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ and that can be a problem if both are started on the same host.
```bash
curl -i -X POST http://localhost:8001/services \
--data "name=openid-connect" \
--data "url=http://httpbin.org/anything"
--data "url=https://httpbin.konghq.com/anything"
```

1. Create a route:
Expand Down
2 changes: 1 addition & 1 deletion app/_includes/md/plugins-hub/oidc-prod-note.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{:.important}
> The following examples are built with simplicity in mind, and
are not meant for a production environment.
> Because `httpbin.org` is the upstream service in these examples, we highly
> Because `httpbin.konghq.com` is the upstream service in these examples, we highly
recommended that you **do not** run these examples with a production identity
provider as there is a high chance of leaking information.
> The examples also use the plain HTTP protocol, which you should
Expand Down
2 changes: 1 addition & 1 deletion app/_includes/md/plugins-hub/rate-limit-peak-non-peak.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ in the following examples are entirely up to you.
```bash
curl -i -X POST http://localhost:8001/services \
--data "name=httpbin" \
--data "url=http://httpbin.org/anything"
--data "url=https://httpbin.konghq.com/anything"
```

1. Create a route to handle peak traffic.
Expand Down
6 changes: 3 additions & 3 deletions app/_src/deck/guides/apiops.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ info:
description: Simple API for testing purposes
version: 1.0.0
servers:
- url: http://httpbin.org
- url: https://httpbin.konghq.com
paths:
/request:
get:
Expand All @@ -57,7 +57,7 @@ Which produces a complete decK configuration file:
```yaml
_format_version: "3.0"
services:
- host: httpbin.org
- host: httpbin.konghq.com
id: de7107e7-a39c-5574-9e8c-e66787ae50e7
name: httpbin-api
path: /
Expand Down Expand Up @@ -134,7 +134,7 @@ following configuration into a file named `another-httpbin.yaml`:
```yaml
_format_version: "3.0"
services:
- host: httpbin.org
- host: httpbin.konghq.com
id: 7cc31086-3837-4e7e-bbe9-271e51c1f614
name: another-httpbin-api
path: /
Expand Down
8 changes: 4 additions & 4 deletions app/_src/deck/guides/defaults-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ want to use, skip to [setting defaults](#set-defaults).
```yaml
_format_version: "3.0"
services:
- host: httpbin.org
- host: httpbin.konghq.com
name: example_service
routes:
- name: mockpath
Expand Down Expand Up @@ -133,7 +133,7 @@ deck gateway diff kong.yaml
```sh
updating service example_service {
"connect_timeout": 60000,
"host": "httpbin.org",
"host": "httpbin.konghq.com",
"id": "1c088e59-b5fb-4c14-8d3a-401c02fc50b7",
"name": "example_service",
"port": 80,
Expand Down Expand Up @@ -188,7 +188,7 @@ Summary:
_info:
defaults:
services:
- host: httpbin.org
- host: httpbin.konghq.com
name: example_service
routes:
- name: mockpath
Expand Down Expand Up @@ -232,7 +232,7 @@ Summary:
read_timeout: 60000
retries: 5
services:
- host: httpbin.org
- host: httpbin.konghq.com
name: example_service
routes:
- name: mockpath
Expand Down
10 changes: 5 additions & 5 deletions app/_src/deck/guides/defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sample service, route, and plugin:
```yaml
_format_version: "3.0"
services:
- host: httpbin.org
- host: httpbin.konghq.com
name: example_service
routes:
- name: mockpath
Expand Down Expand Up @@ -169,7 +169,7 @@ overwriting your current state file, specify a different filename:
- https
services:
- connect_timeout: 60000
host: httpbin.org
host: httpbin.konghq.com
name: example_service
port: 80
protocol: http
Expand Down Expand Up @@ -228,7 +228,7 @@ configuration would overwrite the value in your environment.
_info:
defaults:
services:
- host: httpbin.org
- host: httpbin.konghq.com
name: example_service
routes:
- name: mockpath
Expand Down Expand Up @@ -259,7 +259,7 @@ configuration would overwrite the value in your environment.
protocol: https
retries: 10
services:
- host: httpbin.org
- host: httpbin.konghq.com
name: example_service
routes:
- name: mockpath
Expand Down Expand Up @@ -292,7 +292,7 @@ configuration would overwrite the value in your environment.
read_timeout: 60000
retries: 10
services:
- host: httpbin.org
- host: httpbin.konghq.com
name: example_service
routes:
- name: mockpath
Expand Down
Loading