AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 26 Bitcoin

Remove runtime compilation

Public commit record

What the developer wrote

Authored by Nicolas Dorier

35/100 · Opaque
Remove runtime compilation
✓ Descriptive subject! No meaningful explanatory body
The short version

What changed, and why it matters

This commit removes a feature called 'Razor runtime compilation' from the main BTCPay Server application. Previously, in debug/development builds, the server could recompile web page templates (Razor views) on the fly while running. The change makes the server always use pre-compiled views instead. Runtime compilation is useful for developers but can increase attack surface, so removing it from production-like builds is a hardening move. A special test-only flag is added so developers can still enable it for testing.

Recommended action

No immediate action required. Operators building from source should verify that views are pre-compiled during build (RazorCompileOnBuild remains true by default). Reviewers may want to confirm that the test-only runtime compilation path is not reachable in production deployments and that no other code paths re-enable runtime compilation outside the test harness.

Security signals we found

01

Removal of runtime code compilation feature from default application startup

02

Reduction of dependency attack surface by dropping Razor.RuntimeCompilation package

03

Hardening against potential view compilation abuse or file-system watching side channels

04

Test-only opt-in preserves developer workflow without exposing runtime compiler in default builds

Risk score

Why this scored 26/100

Our methodology →
Potential impact 5/30
Exploitability 3/25
Stealth signal 4/15
Affected reach 5/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.