Files
zeekayandGitHub 96d53c8f28 chore(rebrand): v2.13.0 — de-kraken gateway (strip KrakenD branding) (#10)
* chore(rebrand): strip KrakenD-branded HTTP response headers

Adds a BrandingMiddleware that rewrites every X-KRAKEND*/X-Krakend-Completed
header emitted by the upstream lura SDK into Hanzo-branded equivalents
(X-Powered-By, X-Gateway-Completed). Also reassigns the lura package-level
vars (KrakendUserAgent, KrakendHeaderValue, CompleteResponseHeaderName) in
init() so outbound backend User-Agent carries the Hanzo brand instead of
"KrakenD Version x.y".

* chore(rebrand): rename CLI strings from KrakenD to hanzoai/gateway

Adds a rebrandCLI() pass that mutates the krakend-cobra command tree after
build: renames root command to "gateway", swaps short/long/example strings
to Hanzo equivalents, replaces the version subcommand output, strips the
KrakenD ASCII logo from the help template, rewrites the lint schema URL
to gateway.hanzo.ai, and recursively rewrites kraken references in every
subcommand's help text and flag usage strings.

* chore(rebrand): migrate test spec expectations from X-Krakend-Completed to X-Gateway-Completed

Updates all 59 integration-test fixture specs to assert on the new
X-Gateway-Completed response header and the hanzoai/gateway User-Agent
emitted by the rebranded server/backend pipeline. Also regenerates the
jwt_4 fixture's expected signed JWT to carry the gateway.hanzo.ai issuer.

* chore(rebrand): swap krakend.io schema URL and JWT issuer to gateway.hanzo.ai in configs

Updates tests/fixtures/gateway.json and all three deployed configs
(configs/hanzo, configs/liquidity, configs/lux) to reference the
gateway.hanzo.ai schema endpoint and emit gateway.hanzo.ai as the JWT
issuer for signed access tokens.

* chore(rebrand): vendor deps and rewrite kraken literals at build time

Switches the build target to go build -mod=vendor and adds a
vendor-rebrand step that rewrites every user-visible kraken string
literal in telemetry, metrics, CLI, and helper modules (krakend-otel,
krakend-opencensus, krakend-metrics, krakend-influx, krakend-cobra,
krakend-flexibleconfig, krakend-koanf, etc.). The embedded JSON Schema
is also rebranded in-place so gateway check --lint no longer exposes
krakend.io documentation URLs to users.

Third-party package paths under github.com/krakend/* and
github.com/devopsfaith/* remain intact — those are plugin registry
internals, never emitted at runtime.

* chore(rebrand): clean up KrakenD comment in executor

Minor doc-comment update so the RunServer comment no longer refers
to the upstream SDK by its legacy name.

* chore(rebrand): bump gateway to v2.13.0

Minor bump marking the first release that ships without any user-visible
KrakenD branding. Binary, HTTP headers, CLI output, config schema, and
test fixtures all carry the hanzoai/gateway brand.
2026-04-21 13:07:55 -07:00

16 lines
295 B
JSON

{
"in": {
"method": "GET",
"url": "http://localhost:8080/cel/req-resp/30"
},
"out": {
"status_code": 500,
"body": "request aborted by evaluator #0",
"header": {
"content-type": ["text/plain; charset=utf-8"],
"Cache-Control": [""],
"X-Gateway-Completed": ["false"]
}
}
}