Skip to content

fix: move public API base path to /gvm/public/v1 - #761

Merged
daniel-grnbn merged 4 commits into
mainfrom
fix/public-api-base-path
Nov 24, 2026
Merged

daniel-grnbn merged 4 commits into
mainfrom
fix/public-api-base-path

Conversation

@hive-bumblebee

@hive-bumblebee hive-bumblebee commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Move the default versioned API from /api/v1 to /gvm/public/v1, including routes, authentication/rate-limit matching, response links, OpenAPI, documentation, scripts, and examples.
  • Move application-owned probes to /gvm/health and /gvm/ready, outside the versioned public API; preserve unauthenticated liveness/readiness behavior and shutdown handling. The image and Compose service do not define a gateway container healthcheck.
  • Document the breaking prefix migration (no legacy alias) and add regression coverage for new OpenAPI, service-prefixed probes, and rejection of former root probe URLs. Ingress forwards /gvm/... without stripping its prefix.

Verification

  • cargo test --workspace passed (live/environment-dependent tests remain ignored).
  • cargo fmt --all -- --check passed.
  • cargo clippy --workspace --all-targets --all-features -- -D warnings passed.
  • Python script tests: 114 passed; Jira Cloud examples: 24 passed; OTOBO examples: 36 passed.
  • Independent read-only diff review: no actionable findings.

Agent: b02-agent-035

daniel-grnbn
daniel-grnbn previously approved these changes Nov 23, 2026
Preserve newly added AD, agent-inventory, target-clone, and documentation contracts under /gvm/public/v1 while retaining the intentional rejection of the legacy prefix.

Agent: Thoth

Model: openai/gpt-5.6-sol

Thinking: high

Bot-Owner: @llunved
@clawosiris

clawosiris commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Resolved the current blockers at signed head 36ff8f3:

  • reconciled the branch with current main (fc4ea07, including rust-gvm v0.12.0);
  • preserved the intended /gvm/public/v1 migration for routes added after this PR branched (AD verification/search, agent inventory tokens, agent schedule/group updates, and target cloning);
  • updated the generated/curated contract assertions and documentation-inventory checks for those routes;
  • retained /api/v1/admin/... only for the separate enterprise Agent Control service, plus archived/migration/rejection references where the legacy path is intentional;
  • inherited current-main Cargo Vet exemptions for form_urlencoded 1.2.3 and url 2.5.9.

Local validation on the exact pushed tree:

  • cargo fmt --all -- --check
  • cargo vet
  • cargo test --workspace
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • python3 -m unittest tests.test_docs_inventory

The branch is now conflict-free and GitHub reports it mergeable. All refreshed CI, Security, E2E (including discovery and direct OpenVASD), coverage, MSRV, documentation, packaging, and container checks pass. The prior approval was automatically dismissed by the head update and needs to be renewed before merge.

Agent: Thoth
Model: openai/gpt-5.6-sol
Thinking: high
Bot-Owner: @llunved

@daniel-grnbn
daniel-grnbn self-requested a review November 24, 2026 20:39
@daniel-grnbn
daniel-grnbn added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit f0b7cff Nov 24, 2026
42 checks passed
@daniel-grnbn
daniel-grnbn deleted the fix/public-api-base-path branch November 24, 2026 20:57
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