#978·openship

[Feature]: allow masking/removing the edge's own `Server` header (nginx/OpenResty version disclosure) - the existing per-project Headers feature can't do this today

Author: LiamRRCreated Sep 28, 2026Updated Sep 28, 2026
Labelsenhancement

Existing issue

  • I have searched the existing issues and found no duplicate.

Problem or use case

Security scanners (we use Aikido) commonly flag the Server response header when it discloses the reverse proxy's software and version. Every site behind a self-hosted Openship instance currently sends:

Server: openresty/1.27.1.1

with no way to change or remove it.

What we tried, and why it doesn't work

The per-project Domains & Routes → Routing → Headers panel lets you add response headers per path. We tried adding a header literally named Server to override it. Confirmed live via curl:

Server: openresty/1.27.1.1
Server: off

Two separate Server lines, not a replacement. The header gets added, not overridden. This is because Server is generated by nginx/OpenResty's core module, not the headers-filter path that add_header (what this feature is presumably using) hooks into. add_header can add new headers or override ones set upstream, but it can't touch headers nginx's own core sets directly.

We also checked for any other route to this:

  • No CLI option - openship server rate-limit is the only per-server OpenResty tuning command that exists; nothing broader.
  • No dashboard mechanism - checked the server's Security tab via the API directly, nothing there for this either (404).
  • The main nginx.conf on the box doesn't set server_tokens at all, defaults to on.

So there's currently no supported way, CLI or dashboard, to suppress this at any level: per-project, per-server, or instance-wide.

Proposed solution

OpenResty bundles headers-more-nginx-module as standard. Its more_set_headers directive, unlike stock add_header, can genuinely replace or remove any header, including core-generated ones like Server. If the existing per-project Headers feature switched its underlying implementation from add_header to more_set_headers, users could mask Server themselves using the UI that already exists today, no new surface needed, e.g. setting it to a blank or generic value would have the same practical effect as server_tokens off.

Alternatively/additionally: a first-class instance or per-server toggle for server_tokens off directly (similar in spirit to the existing rate-limit CLI command) would be the more literal fix, and wouldn't depend on switching header implementations.

Alternatives considered

This is one of the most routine security-hardening asks for anything running nginx publicly, disclosed server software/version is a standard, low-severity-but-always-flagged finding in every scanner we've used (Aikido specifically, in our case). Right now there's no way to clear this finding on a self-hosted Openship instance at all, regardless of project configuration.

Additional context

No response