Skip to content

Conversation

@tkan145
Copy link
Contributor

@tkan145 tkan145 commented Oct 9, 2025

What

Fix https://issues.redhat.com/browse/THREESCALE-11957

Verification steps:

  • Create an apicast-config.json file with the following content
cat <<EOF >apicast-config.json
{
  "services": [
    {
      "backend_version": "1",
      "id": "1",
      "proxy": {
        "hosts": [
          "one"
        ],
        "api_backend": "https://echo-api.3scale.net:443",
        "authentication_method": "2",
        "backend": {
          "endpoint": "http://127.0.0.1:8081",
          "host": "backend"
        },
        "policy_chain": [
          {
            "name": "apicast.policy.fapi",
            "configuration": {}
          },
          {
            "name": "apicast.policy.apicast"
          }
        ],
        "proxy_rules": [
          {
            "http_method": "GET",
            "pattern": "/",
            "metric_system_name": "hits",
            "delta": 1,
            "parameters": [],
            "querystring_parameters": {}
          }
        ]
      }
    }
  ]
}
EOF
  • Checkout this branch and start dev environment
make development
make dependencies
  • Run apicast locally
THREESCALE_DEPLOYMENT_ENV=staging APICAST_LOG_LEVEL=warn APICAST_WORKER=1 APICAST_CONFIGURATION_LOADER=lazy APICAST_CONFIGURATION_CACHE=0 THREESCALE_CONFIG_FILE=apicast-config.json ./bin/apicast
  • Capture apicast IP
APICAST_IP=$(docker inspect apicast_build_0-development-1 | yq e -P '.[0].NetworkSettings.Networks.apicast_build_0_default.IPAddress' -)
  • Send a request
curl -i -k -H "Host: one" "http://${APICAST_IP}:8080/test?user_key="
  • Response should be 200 and contains x-fapi-interaction-id header instead of x-fapi-transaction-id

@tkan145 tkan145 requested a review from a team as a code owner October 9, 2025 03:23
@tkan145 tkan145 changed the title THREESCALE-11957 Use the correct x-fapi-interaction-id header THREESCALE-11957 FAPI policy uses wrong header Oct 9, 2025
@tkan145
Copy link
Contributor Author

tkan145 commented Oct 9, 2025

oh you are fast 🚀 , thanks @mayorova

@tkan145 tkan145 merged commit 4185e3e into 3scale:master Oct 9, 2025
13 of 14 checks passed
@tkan145 tkan145 deleted the THREESCALE-11957 branch October 9, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants