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

public-api

ASP.NET Web API 2 backend (TC.PublicWebsites.Service) for the public Travel Counsellors websites: recruitment applications, offers, testimonials, videos, newsletters and customer enquiries.

41 · redhighkernelOn-premZDD: needs workapisecrets in source

Health score

41

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
0
.NET Framework, out of mainstream support
Legacy transport / 15
15
No legacy WCF or SOAP surface
Test posture / 15
8
Some tests, coverage is thin
Security hygiene / 15
0
Credentials or keys committed to source
Dangerous coupling / 15
3
shares a core database (sqlserver:Phenix, sqlserver:EventLog); depends on pinning component(s): application-framework, phenix-feature-service
Activity / 10
10
Actively maintained
Deployment hygiene / 5
5
CI in place
Health over time
2026-07-24 (run-2026-07-24-1): 412026-07-27 (run-2026-07-27-1): 41
No change since 2026-07-24 (41 to 41).

Facts

Languagescsharp
FrameworksASP.NET Web API 2, Autofac 3.1
Runtimes.NET Framework 4.7.2
Tests / CIsome / CI in place
Last commit2026-01-30
OwnerOwner unknown (mapping to be curated)
DomainPublic web (system generated; curate in repo-owners.json to override)
Product areaShared platform
HostedOn-prem Deployed to our own machines
  • Release "\marketing\public-api": Production: deployment-group phase (agents on our own machines)
  • Release "\marketing\public-api": Web QA: deployment-group phase (agents on our own machines)
  • Release "\marketing\public-api": New Servers: deployment-group phase (agents on our own machines)
  • Release "\marketing\public-api - stealth": UKMANWWW4: deployment-group phase (agents on our own machines)
  • Release "\marketing\public-api - stealth": UKMANWWW5: deployment-group phase (agents on our own machines)
Releases2 release pipeline(s): \marketing\public-api; \marketing\public-api - stealth
Integrationrest, soap
SourceOpen in Azure DevOps

Dependencies in context

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

Entanglement

kernel Bound into the core by 2 mechanism(s).

Detaches when its pinning dependencies are cut or multi-targeted (application-framework, phenix-feature-service); and when the shared database group it belongs to gains an owned API or completes schema separation (sqlserver:Phenix, sqlserver:EventLog).

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

Needs work

Feasible through the Workflow Engine's rolling drain, but real preparation is needed: dual-version discipline, better tests, or schema care before at-will release is sensible. Legacy runtime: the rolling drain works (stealth releases prove it) but relies on fix-forward risk rather than dual-version safety. Shares sqlserver:Phenix, sqlserver:EventLog: schema changes move in convoy.

Blockers
Dependencies and gotchas
  • 4 system(s) depend on this repo; during a rolling deploy they will talk to old and new versions at once, so responses must stay compatible
  • Shares sqlserver:Phenix with 21 system(s): destructive schema change is prohibited in a single release; expand and contract only
  • Shares sqlserver:EventLog with 13 system(s): destructive schema change is prohibited in a single release; expand and contract only
  • Feature flags come from phenix-feature-service (WCF-only): flag reads themselves are a legacy dependency to watch
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. Raise automated test coverage first: ZDD trades the end-of-sprint manual gate for continuous automated confidence, so the tests are the entry ticket.
  3. 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.
  4. Audit serialized data: anything in Redis, queues or shared caches must deserialize cleanly across adjacent versions.
  5. Wrap behaviour changes in feature flags so code deploys dark and release becomes a business decision, not a deployment event.
  6. 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).
  7. 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

Blocked by a shared core database

sqlserver:TravelCounsellors, sqlserver:Phenix, sqlserver:EventLog are shared, so this system cannot change engine on its own: every sharer moves in convoy. The stage 4 work (named owner, declarative schema, owned API) has to land first; after that, the steps below apply to whatever slice this system ends up owning.

Blockers
Steps
  1. Inventory the schema and query surface of sqlserver:Recruitment, sqlserver:TravelCounsellors, sqlserver:Tcdb, sqlserver:Phenix, sqlserver:EventLog: tables, stored procedures, triggers, cross-database joins and anything else engine-specific.
  2. Confirm the target: PostgreSQL (relational model; keep transactions and joins, swap the engine).
  3. Replatform to modern .NET first (see the recommended actions): current PostgreSQL and MongoDB drivers and EF Core providers target modern .NET, and doing one risky change at a time is cheaper than doing two.
  4. Data access is not through an ORM, so port the SQL by hand: translate T-SQL constructs, replace stored procedures with application code or target-native equivalents, and add integration tests around the queries that matter first.
  5. Stand up the target alongside SQL Server, backfill with an ETL pass (pgloader or an export/import job), then dual-write or replicate until parity is proven.
  6. Move reads to the target, watch correctness and latency, then cut writes over and keep SQL Server read-only until confidence is earned.
  7. Decommission the SQL Server database and remove the connection strings and firewall paths that pointed at it.

Containerisation

Feasible after replatforming

Appropriate, but the .NET Framework runtime has to go first; container work rides along with the replatform rather than preceding it.

Blockers
  • .NET Framework only runs on Windows; practical (Linux) containers need modern .NET
Steps
  1. Replatform to modern .NET first (see the recommended actions). Containerising then becomes routine.
  2. Add a Dockerfile and make the app read all configuration from environment variables and the secrets manager, never from machine-local files.
  3. Log to stdout and expose a health check endpoint so ECS can supervise it.
  4. 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.
  5. 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

Rotate the credentials committed to public-api

Risk flags indicate credentials or keys in source (plaintext-credentials, secrets-in-source). Rotate now and enable secret scanning in CI; this is independent of all other work.

Impact: Closes a live security exposure at near-zero cost

proposed

Replatform public-api to modern .NET

Runs on .NET Framework 4.7.2, out of mainstream support. Blocked until stage 2 cuts: application-framework, phenix-feature-service. Shares sqlserver:Phenix, sqlserver:EventLog, so batch it with its database group (stage 4).

Impact: Unblocks 4 dependent system(s)

proposed

Assessment notes

public-api

Purpose

The service layer behind the public websites. Controllers are grouped into Generic (company info, customers, newsletters, social feeds, messaging, terms), Leisure (offers, accommodation, destinations, testimonials, videos, header images) and Recruitment (applicant capture, awareness sources, TC counts by location). Helper libraries wrap a web-details API, an asset-management/video API and email persistence.

Tech stack

C# ASP.NET Web API 2 / MVC on .NET Framework 4.7.2 across eight legacy-format projects with packages.config, Autofac 3.1 DI (2013-era), StyleCop/FxCop analyzers, and a generated SOAP service reference to the ContactCentre ASMX service. authentication mode="None" — endpoints rely on network placement rather than app-level auth.

Deployment

Included as prod_application with 2 releases from classic build pipelines public-api and public-api release (no YAML in repo), released via \marketing\public-api and \marketing\public-api - stealth. IIS-hosted; Web.production.config in the repo carries the production settings.

Dependencies

Internal packages: TC.Exceptions (tc-exceptions), TC.Phenix.ApplicationFramework (application-framework), TC.Phenix.Feature (phenix-feature-service), TC.Phenix.CompanyInfo. Outbound HTTP to the web-details and asset-management APIs and the ContactCentre ASMX service. External: Twitter and Facebook APIs for social feeds.

Data stores

Five SQL Server databases via raw connection strings: Recruitment, TravelCounsellors, Tcdb, plus the shared Phenix and EventLog databases — heavy shared-database coupling with the core estate.

Integration points

Inbound unauthenticated REST; outbound REST to sibling public-website APIs and legacy SOAP (ASMX) to the contact centre.

Code health

Three small test projects (recruitment controllers, a library test, a country-code service test) — thin coverage for the surface area. README is boilerplate. Still maintained (last commit 2026-01-30). Web.config and Web.production.config contain plaintext SQL credentials and Twitter/Facebook API secrets committed to source.

Modernisation risks

High: a public-facing .NET Framework 4.7.2 Web API with no app-level authentication, secrets and production database credentials in source control, five shared databases including Phenix, and ancient DI/tooling. Both the secrets hygiene and the framework need addressing; the coupling to shared databases makes replatforming non-trivial.