Platform Evolution
Assessment run-2026-07-27-1 · 213 of 213 repos assessed
Repos / tc-api-gateway

tc-api-gateway

YARP-based reverse proxy on .NET 10 that fronts Phenix APIs (currently only the Accommodation V2 API), applying CORS, cookie filtering and health checks at the edge.

100 · greenlowlooseOn-premZDD: no excuseapi

Health score

100

0 to 100 across seven weighted factors; nothing is hidden. Green is 75 and above, amber 50 to 74, red below 50. How scoring works.


Runtime currency / 25
25
Runs on supported modern .NET
Legacy transport / 15
15
No legacy WCF or SOAP surface
Test posture / 15
15
Good test coverage
Security hygiene / 15
15
No credentials found in source
Dangerous coupling / 15
15
No dangerous coupling detected
Activity / 10
10
Actively maintained
Deployment hygiene / 5
5
CI in place
Health over time
2026-07-24 (run-2026-07-24-1): 1002026-07-27 (run-2026-07-27-1): 100
No change since 2026-07-24 (100 to 100).

Facts

Languagescsharp
FrameworksASP.NET Core 10, YARP 2.3
Runtimes.NET 10
Tests / CIgood / CI in place
Last commit2026-06-24
OwnerOwner unknown (mapping to be curated)
DomainPlatform services (system generated; curate in repo-owners.json to override)
Product areaShared platform
HostedOn-prem Deployed to our own machines
  • Release "\commercial\tc-api-gateway": QA: deployment-group phase (agents on our own machines)
  • Release "\commercial\tc-api-gateway": Staging: deployment-group phase (agents on our own machines)
  • Release "\commercial\tc-api-gateway": Production: deployment-group phase (agents on our own machines)
  • Release "\commercial\tc-api-gateway": Training: deployment-group phase (agents on our own machines)
  • Release "\commercial\tc-api-gateway": DR: deployment-group phase (agents on our own machines)
Releases1 release pipeline(s): \commercial\tc-api-gateway
Integrationrest
SourceOpen in Azure DevOps

Risk flags

Each flag links to its glossary definition.

Dependencies in context

Laying out the graph…
greenamberreddata store (square, dashed link)Node size follows fan-in. Click any node to open it.

Entanglement

loose No binding mechanisms apply: this system needs no untangling work.

    Depends on / used by

    Depends on (1)
    Used by (0)
    No internal dependents.

    Migration playbooks

    Generated from this repo's assessment data: what is feasible, what blocks it, and the steps in order. Ratings: green means actionable now, amber means sequence other work first, red means blocked, grey means not applicable.

    ZDD adoption

    No excuse

    Nothing technical is holding this repo on the three-week release. It either already deploys without downtime (AWS) or is a modern, well-tested service the automated stealth path can carry today. Modern runtime, good tests, no hosted legacy transport: the automated stealth path can carry it today.

    Steps
    1. Adopt the four-stage discipline from the ZDD engineering standard: pre-deployment compatibility, deployment, feature activation behind a flag, post-release cleanup.
    2. Make every change dual-version safe: backwards-compatible APIs (new major version for breaking wire changes), expand and contract for any schema change, and consumers tolerant of unknown fields.
    3. Wrap behaviour changes in feature flags so code deploys dark and release becomes a business decision, not a deployment event.
    4. Route deployments through the Workflow Engine's automated drain, deploy, health-check, return cycle (the path proven by the first automated production run in mid-2026).
    5. Verify with area-scoped regression rather than the whole-platform cycle, and watch error rates after rollout with automated rollback on alert.

    SQL Server exit

    Not applicable

    No SQL Server dependency is recorded for this repo. Nothing to migrate.

    Containerisation

    Ready to containerise

    Modern runtime, no hosted legacy transport: this service can follow the estate's proven container path (Dockerfile, shared pipeline template, ECS via Terraform).

    Steps
    1. Add a Dockerfile and make the app read all configuration from environment variables and the secrets manager, never from machine-local files.
    2. Log to stdout and expose a health check endpoint so ECS can supervise it.
    3. Adopt the shared ci.yml pipeline template with the container parameters (awsRegion, containerAfterBuild, ecsTerraformRepo), which is exactly how the estate's existing AWS services deploy.
    4. Define the service in the Terraform repo, deploy to a non-production environment, then shift traffic and disarm the deployment-group release pipeline.

    Recommended actions

    No specific actions for this repo. It either needs only normal maintenance, or its work is covered by an estate-level action. See the full programme.

    Assessment notes

    tc-api-gateway

    Purpose

    An API gateway built on Microsoft YARP, intended as the estate's edge proxy for Phenix APIs. Today it defines a single route (/AccommodationV2API/* to the Phenix accommodation API per environment), with a request transform that strips cookies not matching an allow-list of prefixes (.tcCookie, jwtCookie).

    Tech stack

    C# on .NET 10 (single TC.Api.Gateway web project in an .slnx solution with central package management). Yarp.ReverseProxy 2.3 with config-driven routes/clusters, OpenTelemetry (OTLP exporter plus AspNetCore/Http/Runtime/StackExchangeRedis instrumentation), Scalar/OpenAPI, TC.Diagnostics health checks and TravelCounsellors.ApiTools.Cors for TC-domain CORS. Analyzers (Sonar, SecurityCodeScan, NetAnalyzers) enabled repo-wide.

    Deployment

    Included as prod_application with 1 release. YAML build.yml uses the shared InternalOSS/azure-pipelines-templates CI template (SDK 10.x); build pipeline tc-api-gateway, release pipeline \commercial\tc-api-gateway. Per-environment appsettings for Development, QA, liveproviderqa, Training, Preproduction and Live; the Live config sets a New Relic app name, implying IIS/agent-based hosting.

    Dependencies

    Internal packages: TravelCounsellors.ApiTools.Cors (tc-api-tools) and TC.Diagnostics.HealthChecks.AspNetCoreExtensions (no matching estate repo). External: New Relic APM. Downstream it proxies to the Phenix accommodation API (phenix-accomm.travelcounsellors.com in Live).

    Data stores

    None. Redis OpenTelemetry instrumentation is referenced but no Redis connection is configured.

    Integration points

    Inbound and outbound REST only — it is a pass-through HTTP reverse proxy.

    Code health

    Good for its size: an xunit.v3 integration test project spins the gateway up via WebApplicationFactory against WireMock, covering proxying, header forwarding, CORS and error handling. YAML CI, central package management, analyzers, CLAUDE.md agent notes. README is untouched boilerplate. Actively developed (last commit 2026-06-24).

    Modernisation risks

    Low — this is one of the most modern repos in the estate (.NET 10, YARP, OpenTelemetry, tested). The main observation is adoption: only one route is configured, so the gateway pattern is barely used yet; expanding it would centralise cross-cutting edge concerns for the many Phenix APIs currently exposed directly.