Skip to content

docs(1640): add issue spec for per-instance Network config - #1937

Merged
josecelano merged 3 commits into
torrust:developfrom
josecelano:1640-move-network-to-per-instance-config
Jun 24, 2026
Merged

josecelano merged 3 commits into
torrust:developfrom
josecelano:1640-move-network-to-per-instance-config

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

This PR adds issue spec files for two related enhancements:

Issue #1640 — Per-instance Network config

Full spec at docs/issues/open/1640-per-http-tracker-on-reverse-proxy-setting.md

Moves on_reverse_proxy, external_ip, and ipv6_v6only from the global [core.net] singleton into per-instance Network blocks inside HttpTracker and UdpTracker. Also makes AnnounceHandler::handle_announcement() accept external_ip as a per-call parameter.

Key decisions documented in the spec:

  • No global fallback — [core.net] is removed entirely
  • Approach B — per-instance AnnounceService/ScrapeService with ReverseProxyMode field
  • bind_address stays flat — not inside Network (it's a HashMap key)
  • public_url — a single URL string, not decomposed (decision for issue Include public service URL in configuration #1417)
  • Compatibility analysis with existing ADRs and migration note
  • Phased implementation plan (baby steps + parallel changes + draft PR)

Issue #1417 — Public Service URL (draft)

Draft spec at docs/issues/drafts/1417-add-public-service-url-to-configuration.md

Proposes adding public_url: Option<String> to all tracker and API configs for use in metrics, logging, and API discovery.

Status

- Spec for moving on_reverse_proxy, external_ip, ipv6_v6only from global
  core.net to per-instance HttpTracker/UdpTracker Network blocks
- Includes phased implementation plan (baby steps + parallel changes)
- Covers approach B for per-instance AnnounceService/ScrapeService
- Design notes on bind_address staying flat, future extensions
- Compatibility analysis with related ADRs and issues
- Also adds draft spec for issue torrust#1417 (public service URL)
@josecelano josecelano self-assigned this Jun 23, 2026
@josecelano
josecelano requested a review from da2ce7 June 23, 2026 21:13
@josecelano
josecelano marked this pull request as ready for review June 23, 2026 21:14
Copilot AI review requested due to automatic review settings June 23, 2026 21:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds/updates issue-spec documentation to plan upcoming configuration refactors: making Network settings per tracker instance (#1640) and drafting a proposal to add public_url fields to configs (#1417).

Changes:

  • Added open issue spec for #1640 describing per-instance Network config and phased implementation plan.
  • Added draft issue spec for #1417 proposing public_url fields for trackers/APIs.
  • Updated project-words.txt to include a new dictionary word.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
project-words.txt Adds “analysed” to the cspell project dictionary.
docs/issues/open/1640-per-http-tracker-on-reverse-proxy-setting.md New open spec for moving network-related config from global to per-instance.
docs/issues/drafts/1417-add-public-service-url-to-configuration.md New draft spec proposing public_url config fields for services.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

- Use stable issue references in related-artifacts (issue #NNNN) instead of non-standard 'github issues/...' paths
- Remove stale docs/issues/1417 reference that pointed to non-existent file
- Use dot notation for field paths (HttpTracker.net.on_reverse_proxy)
@josecelano

Copy link
Copy Markdown
Member Author

Addressed all Copilot review suggestions in commit 7a30b33:

  1. related-artifacts format (2 threads) — replaced github issues/... and github torrust/... entries with stable issue #NNNN and issue torrust/... references
  2. Stale docs/issues/1417 path — replaced with issue #1417 (stable issue reference)
  3. HttpTracker::net::on_reverse_proxy syntax — changed to HttpTracker.net.on_reverse_proxy using dot notation throughout

All linters pass and the branch is up to date.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

@josecelano

Copy link
Copy Markdown
Member Author

ACK fb6e356

@josecelano
josecelano merged commit 723ce89 into torrust:develop Jun 24, 2026
1 check passed
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: This pull request changed only documentation: an issue specification for per-instance network configuration, with no executable effect.

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