Skip to content

Set server_tokens to off in the nginx configuration#8

Merged
jaseemjaskp merged 1 commit intomainfrom
fix/disable-emitting-nginx-version-in-the-server-response-header-field
Feb 28, 2024
Merged

Set server_tokens to off in the nginx configuration#8
jaseemjaskp merged 1 commit intomainfrom
fix/disable-emitting-nginx-version-in-the-server-response-header-field

Conversation

@Deepak-Kesavan
Copy link
Copy Markdown
Contributor

What

Set server_tokens to off in the nginx configuration

Why

Disable emitting nginx version in the Server response header field

How

...

Relevant Docs

Related Issues or PRs

Dependencies Versions / Env Variables

Notes on Testing

...

Screenshots

...

Checklist

I have read and understood the Contribution Guidelines.

@jaseemjaskp jaseemjaskp merged commit 6f364a9 into main Feb 28, 2024
@jaseemjaskp jaseemjaskp deleted the fix/disable-emitting-nginx-version-in-the-server-response-header-field branch February 28, 2024 03:49
pk-zipstack pushed a commit that referenced this pull request Aug 20, 2025
…n-in-the-server-response-header-field

Set server_tokens to off in the nginx configuration
muhammad-ali-e added a commit that referenced this pull request Apr 8, 2026
The "## Known Exceptions" section was previously mandatory — the
contract said absence meant "the contract is not being followed" and
the single line `None.` was required when the file had no exceptions.

In practice this is cargo culting. The baseline for Known Exceptions
is zero: most files will never have one because exceptions are rare by
definition. Mandating a `None.` placeholder on every file:

- Adds ~4 lines of noise per per-component file (trained readers to
  skip the section)
- Gives the same failure mode as optional (`None.` written reflexively
  without the author evaluating whether exceptions exist is
  indistinguishable from a missing section)
- Defeats the purpose of the section when a real exception is added,
  because readers have learned to scroll past it

Change the contract to require the section only when at least one
intentional, accepted exception exists. Absence of the section now
means "no known exceptions today" — equivalent to `None.` but without
the placeholder noise.

Also tightened the Known Exceptions definition to be explicit that an
entry documents an *evaluated, accepted* deviation, not "drift we
haven't decided about yet." Unevaluated drift belongs in the issue
tracker, not in a Known Exceptions entry. This is the lesson from the
ExecutionViewSet finding on PR #1908 — a Known Exception added for
unexamined drift would be fraud-by-documentation.

Files changed:

* design-rules/per-component-contract.md
  - Section structure row #8 now says the section is optional and
    describes the presence-only semantics.
  - Known Exceptions format prose updated: explicit "optional", no
    `None.` placeholder, entry semantics hardened to "evaluated,
    accepted" only.

* backend/account_v2/DESIGN_RULES.md
* backend/workflow_manager/DESIGN_RULES.md
* unstract/connectors/DESIGN_RULES.md
* unstract/connectors/src/unstract/connectors/databases/DESIGN_RULES.md
* workers/shared/DESIGN_RULES.md
  - Dropped the empty `## Known Exceptions` / `None.` block from each
    prototype file. All 5 files now go straight from the last rule (or
    horizontal rule) to `## Checklist`.

validate.sh still passes — nothing in the script depends on the
Known Exceptions section being present.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

3 participants