engine

package
v0.0.0-...-a02776c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 45 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package engine contains the scan orchestrator and finding correlator. The orchestrator coordinates black-box scanning and Python engine spawning. The correlator cross-references findings from both engines.

Index

Constants

View Source
const (
	AnalyzerDAST            = "dast"
	AnalyzerSpec            = "spec"
	AnalyzerActiveProbes    = "active-probes"
	AnalyzerSecrets         = "secrets"
	AnalyzerTextscan        = "textscan"
	AnalyzerSemgrep         = "semgrep"
	AnalyzerGovulncheck     = "govulncheck"
	AnalyzerPip             = "pip"
	AnalyzerNpm             = "npm"
	AnalyzerPythonEngine    = "python-engine"
	AnalyzerPythonAuth      = "python-engine/auth"
	AnalyzerPythonInjection = "python-engine/injection"
	AnalyzerPythonDeps      = "python-engine/deps"
	AnalyzerPlugins         = "plugins"
)

Analyzer names are the coverage contract's stable identities (spec §4.1). Registry order is the emission order of scanner_status; a consumer may rely on it being byte-identical across runs of the same input.

View Source
const VersionFile = ".fendix-version"

VersionFile is written to the engine directory after extraction. On upgrade, if the binary version differs, re-extract.

Variables

BaseAnalyzers are the entries that must appear exactly once on every non-import scan (the registry minus the protocol-dependent children).

Registry is the ordered list of every analyzer a scan records. The first ten and "plugins" are emitted on every non-import scan; the three python-engine children only when the Python protocol reports them.

Functions

func ApplyBaselineDiff

func ApplyBaselineDiff(current []models.Finding, baselinePath string) []models.Finding

ApplyBaselineDiff filters out findings that were already present in a previous scan. It compares by the stable fingerprint (not ID, since IDs are reassigned each run). Returns only new findings not present in the baseline. On any load error it logs and returns all findings (fail-open) — callers that need fail-closed semantics for a CORRUPT baseline should use ApplyBaselineDiffStrict.

func ApplyBaselineDiffStrict

func ApplyBaselineDiffStrict(current []models.Finding, baselinePath string) ([]models.Finding, error)

ApplyBaselineDiffStrict is ApplyBaselineDiff that distinguishes a MISSING baseline (legitimate first run — fail-open, returns all findings, nil error) from a CORRUPT/unparseable one (a real misconfiguration — returns the original findings and a non-nil error so the caller can fail closed, exit 2). This mirrors the fail-closed posture --ignore now has: a broken security control input must not silently disable the gate.

Occurrence semantics

The orchestrator passes ungrouped OCCURRENCES, and each is kept or dropped on its own: an occurrence is "known" only when the baseline proves that this occurrence was present when the baseline was taken. Grouping never carries knowledge from one occurrence to another, so a new occurrence that would be presented in the same finding as a baselined one is still new.

What counts as proof depends on what the baseline recorded:

  • A finding that lists `occurrences` (every baseline written by this build, and every JSON report from it) proves exactly those occurrence fingerprints.
  • In a versioned (v2) baseline, a finding without `occurrences` proves its own fingerprint.
  • A LEGACY entry (a bare-array baseline or older report, no `occurrences`) may be a whole group whose single fingerprint names only its primary occurrence. It proves that fingerprint, plus — for each location it recorded (`endpoint` and `affected_endpoints`) — that a finding of the same category and the same title or rule existed at that exact location. A current occurrence at any other location is new. The group's fingerprint is never extended to occurrences it did not name.

func ApplyIgnoreRules

func ApplyIgnoreRules(findings []models.Finding, rules []IgnoreRule) []models.Finding

ApplyIgnoreRules filters out findings that match any ignore rule. Expired rules (past their "until" date) are not applied.

The orchestrator calls this with ungrouped occurrences (each carrying its own fingerprint and endpoint, and the positional ID of its presentation group), which is what makes every selector except `id` occurrence-scoped.

func CollapseDuplicateLocations

func CollapseDuplicateLocations(findings []models.Finding) []models.Finding

CollapseDuplicateLocations merges static findings that describe the SAME issue at the SAME source location but were produced by different analyzers.

Why this exists. Fendix runs several static engines over one tree — the native secrets scanner, textscan, the shelled-out semgrep pack, and the Python AST taint analyzer. When two of them recognise the same construct they each emit a finding, and because Deduplicate groups on (Title, Category, Severity), differing titles keep them apart forever. The user sees one vulnerability reported N times.

Measured on fastapi 0.110.0, a single `SECRET_KEY = "..."` line produced THREE findings — "Hardcoded API key or token" (native), "Hardcoded secret found in assignment to 'SECRET_KEY'" (semgrep, CRITICAL) and "Hardcoded secret value in config-style assignment" (native) — at different severities. On the accuracy corpus the same double-report cascaded into a phantom false positive and held the synthetic F1 at 0.987, below its 0.990 CI floor.

The rule: within one (Category, Endpoint), keep the finding from the most-trusted analyzer tier. Severity is NOT raised to the group maximum — that would let the lowest-trust engine (semgrep) escalate a finding through the back door, which is exactly what the SourceTier gate in mergeFindings exists to prevent. References are unioned so no CWE mapping is lost.

Scope is deliberately narrow:

  • blackbox findings are untouched (one endpoint legitimately carries many distinct HTTP observations);
  • correlated findings are untouched (they already represent a merge, and collapsing them could drop the half that carries the taint chain);
  • a group with a single member is returned verbatim.

Runs BEFORE Deduplicate, while each finding is still one (endpoint, title) pair — afterwards the endpoint sets have already been merged and the per-location identity needed here is gone.

Determinism: the representative is chosen by a total order (trust rank, then severity, then findingLess), so the result is a pure function of the input SET, not its order (F-L6). Output keeps first-occurrence order.

func ConfigPath

func ConfigPath() string

ConfigPath returns the path to the persistent fendix config file (~/.fendix/config). `fendix engine sync` writes the resolved engine location here as FENDIX_ENGINE=<path>; EnsureEngine reads it back so a one-time sync pins the engine for every future invocation. Returns "" if the home directory can't be determined (config is then simply skipped — never fatal).

func Correlate

func Correlate(findings []models.Finding) []models.Finding

Correlate cross-references blackbox and whitebox findings.

Rules:

  • If both engines agree on a vulnerability (same normalized endpoint + related category): merge into a single correlated finding with source=correlated, confidence=HIGH, and severity escalated by one level.
  • If whitebox finds an issue at a URL endpoint but blackbox does NOT confirm: keep whitebox finding, confidence=MEDIUM, add "Unconfirmed by live scan" note. The note is only added when the whitebox endpoint normalises to a URL path (`/...`) — file:line findings such as a hardcoded secret in `src/config.py:14` cannot be confirmed by a live HTTP scan, so the suffix is misleading there and is skipped (TASK-092).
  • If blackbox finds an issue but no whitebox counterpart: keep as-is.

Match strategy (per whitebox finding, in order):

  1. Exact normalized endpoint + related category (fast path via index).
  2. Path-suffix match: one normalized path is a suffix of the other on a `/` boundary. Handles base-path skew (whitebox `/pet/findByStatus` matches blackbox `/api/v3/pet/findByStatus`).
  3. Fuzzy segment match: at least one non-noise path segment of length > 2 is shared. Handles file-path-vs-URL-path matches like `routes/users.py` vs `/api/v1/users`.

Each blackbox finding can correlate with at most one whitebox finding.

Correlate is a thin wrapper over correlateWithMarks so the exported signature and the rendered output stay exactly as they were; the Evidence pipeline uses the marked form.

func CorrelateCrossTool

func CorrelateCrossTool(evs []evidence.Evidence) ([]evidence.Evidence, map[string]int)

CorrelateCrossTool stamps strong cross-tool corroboration onto evs and collapses each imported finding that strongly matches a NATIVE finding into that native representative (references and tool provenance folded in), so the report shows one finding confirmed by two engines instead of duplicate rows. Imported↔imported strong pairs (different tools) are both kept and both stamped. Pure and deterministic; returns evs unchanged when no imported evidence is present.

The second return counts, per normalized ToolID, how many imported findings were collapsed into a native representative. Keyed by tool rather than totalled because report metadata carries one accounting block per tool: a scalar could not be attributed when two tools each collapse findings.

func CorrelateEvidence

func CorrelateEvidence(evs []evidence.Evidence) []evidence.Evidence

CorrelateEvidence is the v0.22 Correlation Service V2: it correlates black-box and white-box Evidence and returns correlated Evidence.

SAFETY INVARIANT: the rendered projection of the result (evidence.ToFindings(CorrelateEvidence(evs))) is byte-identical to the legacy Correlate(evidence.ToFindings(evs)) — guaranteed because the merge logic IS the proven Correlate(), run on the projected findings, with the result lifted back through the lossless adapter. The correlator_v2 test locks this equality.

On top of identical render output, it does what a Finding pipeline can't:

  • preserves the per-evidence provenance (RuleID/Payload/Response/ DetectedAt/Metadata/Lineage) that models.Finding has no field for, for findings that pass through correlation unchanged; and
  • records Lineage on merged (correlated) results, so the BB+WB inputs are no longer lost after mergeFindings.

Because the provenance/lineage live only on the returned Evidence (the orchestrator immediately projects back to Finding for the rest of the pipeline in v0.22), they cannot affect the public output — they are groundwork for the v0.23 confidence engine.

func Deduplicate

func Deduplicate(findings []models.Finding) []models.Finding

Deduplicate collapses findings with the same (Title, Category, Severity) into a single finding whose AffectedEndpoints lists every distinct endpoint.

This addresses the "missing CSP header × 21 endpoints" problem from the 2026-04-28 real-world test pass: a passive header check fired once per scanned endpoint, producing 21 nearly-identical entries that all reported the same fix. Post-dedup, the user sees one finding with 21 affected endpoints — same actionable information, far less noise.

Dedup runs AFTER correlation so correlated findings (which already merged black-box + white-box pairs) are deduped against each other too.

Merge rules:

  • Primary kept = the total-order-minimum finding in the group (F-L6). Picking by a deterministic tiebreaker — not "first seen" — means the merged Evidence/Fix/Endpoint/Line are identical no matter what order the findings arrived in (worker-pool result interleaving is non-deterministic). The tiebreaker is endpoint, then evidence, then fix, then line (see findingLess).
  • AffectedEndpoints = sorted, deduped list of all endpoints in the group (includes the primary so consumers can iterate one field)
  • References = union of all groups' References, deduped, sorted
  • Confidence = highest in the group (HIGH > MEDIUM > LOW)
  • Reachable / ProvenPath / RouteConfirmed = PROOF UNION (OR) across the group; SourceTier = the most-trusted tier; TaintChain / Route = taken from the member that proved one (ties on the same total order). RC-3: these are render-block fields, so ProvenanceIndex cannot carry them, and before this they were taken from the findingLess winner — which erased a confirmed occurrence's proof whenever an unconfirmed duplicate sorted earlier. The fold preserves evidence and can never manufacture it.
  • Source = SourceCorrelated if any member is correlated, else most-trusted (correlated > blackbox > whitebox); a mix of black + white without an existing correlated entry would have been merged by Correlate already, so this fallback only matters for same-source groups.

Findings are returned in first-occurrence order of each group's key, with the dedupKey itself as a total-order tiebreaker so the output sequence is fully determined by the input SET (F-L6) rather than the input permutation.

func EnsureEngine

func EnsureEngine(engineDir, version string) (string, error)

EnsureEngine returns a path to a usable Python engine directory. Resolution order:

  1. If engineDir is set (dev mode / explicit config), use it directly.
  2. If FENDIX_ENGINE env var is set, use that (matches the --help and package doc promise; lets CI / E2E tests point at the repo's python/ tree without changing CWD). 2b. If FENDIX_ENGINE is pinned in ~/.fendix/config (by `fendix engine sync`), use that — the once-per-environment pin.
  3. If embedded FS has engine files, extract to ~/.fendix/engine/ and return that.
  4. Fall back to "python" relative to CWD (source tree development).

On total failure it returns *EngineNotFoundError, whose message names every location probed and the fix-it steps. Callers that requested SAST treat that as fatal (see orchestrator.Run); non-SAST callers never invoke EnsureEngine.

The version parameter is the Go binary version (e.g. "1.0.0" or "dev"). If the extracted engine has a different version stamp, it is re-extracted.

func IsRegisteredAnalyzer

func IsRegisteredAnalyzer(name string) bool

IsRegisteredAnalyzer reports whether name is one of the registry names. Used to validate --require-analyzers before a scan starts.

func PinnedEngineDir

func PinnedEngineDir() string

PinnedEngineDir returns the FENDIX_ENGINE value pinned in ~/.fendix/config (by `fendix engine sync`), or "" if nothing is pinned. Exported for the `fendix engine info` command so operators can see the pin without scanning.

func PythonRequiredMessage

func PythonRequiredMessage() string

PythonRequiredMessage returns a user-friendly message explaining that Python is needed for whitebox scanning.

Post-TASK-118 the secrets and semgrep checks run natively in Go, so they are NOT listed here — only the still-Python auth/injection/deps AST checks require the interpreter. Listing secrets/semgrep would wrongly imply they get skipped without Python.

func SaveBaseline

func SaveBaseline(findings []models.Finding, path string) error

SaveBaseline writes the current findings to a JSON file for use as a future baseline, in baseline format v2 (reporters.BaselineDocument): the grouped findings, each listing the occurrence identities it contains. The file stays a valid input to `fendix verify --baseline`.

func WriteConfigEngineDir

func WriteConfigEngineDir(engineDir string) error

WriteConfigEngineDir persists engineDir as FENDIX_ENGINE in ~/.fendix/config so future invocations resolve it automatically (the `fendix engine sync` pin). It rewrites the file preserving any unrelated KEY=VALUE lines and replacing/appending the FENDIX_ENGINE line. Creates the ~/.fendix directory if needed.

Types

type CheckStatus

type CheckStatus struct {
	Check  string `json:"check"`
	State  string `json:"state"`
	Reason string `json:"reason,omitempty"`
	Detail string `json:"detail,omitempty"`
}

CheckStatus is one `{"status": {...}}` protocol line (protocol v2): the Python engine's own report of one check's outcome. State and Reason use the coverage contract's vocabulary and are validated by the caller.

type DoneMessage

type DoneMessage struct {
	Done     bool   `json:"done"`
	Total    int    `json:"total"`
	Error    string `json:"error,omitempty"`
	Protocol int    `json:"protocol,omitempty"`
}

DoneMessage is the terminal JSON line from the Python engine. Protocol is the version the Python side declares; absent (0) or 1 means a legacy tree whose status lines, if any, are ignored. 2 means one status line per expected check is mandatory and verified.

type EngineNotFoundError

type EngineNotFoundError struct {
	Searched []string
}

EngineNotFoundError is returned by EnsureEngine when no usable Python taint engine could be resolved from any source. It carries the list of locations that were searched so the message is actionable (and so callers can decide whether a missing engine is fatal — it is when --code/--python-engine asked for SAST, harmless otherwise). Its Error() text is a hard contract consumed by tests and the CLI's exit message; do not reword without updating both.

func (*EngineNotFoundError) Error

func (e *EngineNotFoundError) Error() string

type IgnoreFile

type IgnoreFile struct {
	Ignore []IgnoreRule `yaml:"ignore"`
}

IgnoreFile represents the parsed .fendix-ignore YAML file.

func ParseIgnoreFile

func ParseIgnoreFile(path string) (*IgnoreFile, error)

ParseIgnoreFile reads and parses a .fendix-ignore YAML file.

type IgnoreRule

type IgnoreRule struct {
	Fingerprint string `yaml:"fingerprint,omitempty"`
	ID          string `yaml:"id,omitempty"`
	Endpoint    string `yaml:"endpoint,omitempty"`
	Category    string `yaml:"category,omitempty"`
	Reason      string `yaml:"reason,omitempty"`
	Until       string `yaml:"until,omitempty"` // optional expiry date YYYY-MM-DD
}

IgnoreRule defines a single suppression rule.

Rules are applied to security OCCURRENCES before they are grouped into findings for presentation, so a rule suppresses exactly the occurrences it matches and nothing that merely shares their group. One selector decides, checked in this precedence:

  • Fingerprint: the occurrence's fendix/v2 fingerprint (the `fingerprint` of a single-location finding, or an `occurrences[].fingerprint` of a grouped one). Exact, durable, occurrence-scoped. Preferred.
  • ID: the positional SEC-NNN ID of the finding the occurrence is presented in. GROUP-scoped and positional: it suppresses every occurrence of that group, including ones added later, and it can name a different finding after any change to the scan. Not for durable suppression.
  • Endpoint, optionally narrowed by Category: the occurrence's own path, matched as described at endpointMatchesPattern / globMatch.
  • Category alone: every occurrence in that category.

When Fingerprint or ID is set, Endpoint and Category on the same rule are ignored (a warning is logged); write a separate rule instead.

type MatchLevel

type MatchLevel int

MatchLevel classifies how closely two findings agree. Only MatchStrong may ever feed the corroboration/escalation path; MatchMedium and MatchWeak exist so tests (and future UI grouping) can name the non-qualifying levels explicitly.

const (
	// MatchNone — nothing meaningful in common.
	MatchNone MatchLevel = iota
	// MatchWeak — same category, similar titles, or same file only. MUST
	// NOT affect blocking confidence.
	MatchWeak
	// MatchMedium — same weakness in the same file/endpoint but outside the
	// strong location threshold. MUST NOT satisfy the escalation gate.
	MatchMedium
	// MatchStrong — independent tools, same normalized weakness, same
	// normalized location within the strong threshold. The only level that
	// counts as cross-engine confirmation.
	MatchStrong
)

func ClassifyCrossTool

func ClassifyCrossTool(a, b evidence.Evidence) MatchLevel

ClassifyCrossTool classifies one pair of Evidence. Exported for tests: the security invariant lives in this predicate, and tests assert it directly.

type Orchestrator

type Orchestrator struct {
	// contains filtered or unexported fields
}

Orchestrator coordinates the full scan lifecycle: crawl endpoints → run checks → spawn Python → correlate → assign IDs → render report.

func NewOrchestrator

func NewOrchestrator(cfg *models.ScanConfig, version string) *Orchestrator

NewOrchestrator creates an orchestrator from scan config.

The Python engine directory is resolved lazily: only when cfg.PythonEngine is true do we call EnsureEngine. The CLI sets it for --python-engine and auto-enables it for --code unless --python-engine=false is explicit. Pre-TASK-118 we resolved eagerly and logged a WARN if no engine was found, but with the embedded distribution dropped that WARN now fires on every scan for the default path — exactly the "Python interpreter not required" promise broken at the log level. Skip the resolution entirely when the flag is off; runWhiteboxScan never gets called in that case so the spawner's empty engineDir is harmless.

func NewOrchestratorWithSpawner

func NewOrchestratorWithSpawner(cfg *models.ScanConfig, spawner *PythonSpawner) *Orchestrator

NewOrchestratorWithSpawner creates an orchestrator with a custom Python spawner.

func (*Orchestrator) Run

func (o *Orchestrator) Run(ctx context.Context) int

Run executes the full scan pipeline and returns an exit code. 0 = no findings above threshold, 1 = findings found, 2 = error.

func (*Orchestrator) RunImport

func (o *Orchestrator) RunImport(ctx context.Context) int

RunImport is the standalone `fendix import` entry point: normalize the configured SARIF files into imported evidence and run the STANDARD finalization chain — cross-tool correlation, dedup, ignore/baseline, confidence-gated --fail-on decisions, reporters — with no scanning. The exit contract matches Run: 0 clean, 1 when a decision BLOCKs, 2 on error.

type PythonSpawner

type PythonSpawner struct {
	// contains filtered or unexported fields
}

PythonSpawner manages the lifecycle of the Python engine subprocess.

func NewPythonSpawner

func NewPythonSpawner(pythonBin, engineDir string) *PythonSpawner

NewPythonSpawner creates a spawner that will invoke the Python engine. pythonBin defaults to "python3" if empty. engineDir defaults to "python" relative to CWD if empty.

func (*PythonSpawner) Run

Run spawns the Python engine, sends the ScanRequest, and collects findings. It respects context cancellation and kills the subprocess if cancelled.

type PythonStatus

type PythonStatus struct {
	Available bool
	Binary    string // resolved path to python3
	Version   string // e.g. "3.11.5"
}

PythonStatus describes the availability and version of the Python runtime.

func CheckPython

func CheckPython(pythonBin string) PythonStatus

CheckPython verifies that a Python 3 interpreter is available on the system. It tries the given binary name (default "python3"), checks it runs, and captures the version string.

type ScanRequest

type ScanRequest struct {
	Mode     string   `json:"mode"`
	Spec     string   `json:"spec,omitempty"`
	CodePath string   `json:"code_path,omitempty"`
	Checks   []string `json:"checks"`
	Verbose  bool     `json:"verbose"`
}

ScanRequest is the JSON payload sent to the Python engine via stdin.

A `language` field used to sit here. Nothing in production ever set it, so the key was never emitted and the Python side always fell through to its default; the AST analyzer routes by file extension during the walk anyway, which is strictly more accurate than one whole-scan language hint. It was removed rather than left as an unset field pretending to be a knob. Omitting the key is wire-compatible: engine.py reads it with `request.get("language")` and defaults to "python".

type SpawnOutcome

type SpawnOutcome int

SpawnOutcome classifies how the Python engine run ended, in the order the coverage contract ranks them: an exit error outranks malformed output, which outranks a truncated stream.

const (
	SpawnOK         SpawnOutcome = iota
	SpawnStartError              // process could not be started
	SpawnExitError               // non-zero exit, or a done line carrying error
	SpawnMalformed               // at least one unparseable or shape-invalid line
	SpawnTruncated               // no done line, or done.total != findings received
	SpawnCancelled               // context cancelled
)

type SpawnResult

type SpawnResult struct {
	Findings  []models.Finding
	Total     int
	Protocol  int
	Err       error
	Outcome   SpawnOutcome
	Checks    []CheckStatus
	Malformed int
	SawDone   bool
}

SpawnResult is what the caller learns about one engine run. Findings are always returned, whatever the outcome (Rule 3).

type WorkerPool

type WorkerPool struct {
	// contains filtered or unexported fields
}

WorkerPool runs scanner checks concurrently across endpoints using a bounded goroutine pool.

func NewWorkerPool

func NewWorkerPool(workers int, delayMs int, checks []scanner.CheckFn) *WorkerPool

NewWorkerPool creates a pool from a legacy []scanner.CheckFn slice. Each fn is wrapped via scanner.AsCheck so the pool runs the new Check interface internally while the engine worker-pool tests (which pass []scanner.CheckFn) keep compiling. cc is left nil; runCheck builds an ephemeral CheckContext per job.

func NewWorkerPoolChecks

func NewWorkerPoolChecks(workers int, delayMs int, checks []scanner.Check, cc *scanner.CheckContext) *WorkerPool

NewWorkerPoolChecks creates a pool from the new Check registry plus a shared per-scan CheckContext. The orchestrator uses this after filtering scanner.DefaultChecks() by Enabled(cfg).

func (*WorkerPool) Run

func (wp *WorkerPool) Run(ctx context.Context, cfg *models.ScanConfig, endpoints []scanner.Endpoint) []models.Finding

Run executes all checks against all endpoints using the worker pool. Returns all collected findings.

Channel sizing: a bounded buffer keeps memory linear in pool size, not in the N×M job matrix. Before: `make(chan ..., len(endpoints)*len(wp.checks))` — on a 10k-endpoint × 8-check scan that's 80k slots queued ahead of any worker draining. After: `wp.workers*4` is enough to keep all workers fed during a tail-end drain without amplifying memory under `--max-endpoints 0`.

Context cancellation: the producer also selects on ctx.Done() so a long-running scan can be cancelled mid-flight; previously the producer relied on the over-sized buffer never blocking, masking the lack of a cancel path. Workers continue to honour ctx on each loop iteration. Run executes the pool and returns findings projected to models.Finding (back-compat for callers/tests on the Finding shape). New code that wants the richer Evidence should call RunEvidence.

func (*WorkerPool) RunEvidence

func (wp *WorkerPool) RunEvidence(ctx context.Context, cfg *models.ScanConfig, endpoints []scanner.Endpoint) []evidence.Evidence

RunEvidence executes the pool and returns the raw []evidence.Evidence so the orchestrator can keep provenance flowing through correlation (v0.22).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL