Skip to content

Report NAT'd minions in manage.present with presence_id_tracking - #70385

Merged
dwoz merged 1 commit into
saltstack:3008.xfrom
twangboy:fix/58592/3008.x
Oct 21, 2026
Merged

dwoz merged 1 commit into
saltstack:3008.xfrom
twangboy:fix/58592/3008.x

Conversation

@twangboy

@twangboy twangboy commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Presence detection matched the addresses connected to the publish port against the addresses in each minion's cached grains. Minions connecting from a different address, such as NAT'd or internet-facing minions, were never detected and were missing from manage.present, presence events and the related manage runner functions.

Add the opt-in master options presence_id_tracking (default False) and presence_id_ttl (default 600). When enabled, ReqServerChannel records a last-seen time per minion in the presence cache bank for requests that pass the protocol version 3 id binding and token checks. Writes are throttled to once per ttl / 2 per minion, run in an executor, and never fail the minion's request. CkMinions.connected_ids unions minions seen within the ttl, restricted to accepted keys, with the existing address based detection.

Idle minions only stay present if ping_interval is set on the minion.

What issues does this PR fix or reference?

Fixes #66295
Fixes #58592
Fixes #51764

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy
twangboy requested a review from a team as a code owner October 9, 2026 23:59
@twangboy twangboy self-assigned this Oct 9, 2026
@twangboy twangboy added the test:full Run the full test suite label Oct 9, 2026
@twangboy twangboy added this to the Argon v3008.5 milestone Oct 9, 2026
Presence detection matched the addresses connected to the publish port
against the addresses in each minion's cached grains. Minions connecting
from a different address, such as NAT'd or internet-facing minions, were
never detected and were missing from manage.present, presence events and
the related manage runner functions.

Add the opt-in master options presence_id_tracking (default False) and
presence_id_ttl (default 600). When enabled, ReqServerChannel records a
last-seen time per minion in the presence cache bank for requests that
pass the protocol version 3 id binding and token checks. Writes are
throttled to once per ttl / 2 per minion, run in an executor, and never
fail the minion's request. CkMinions.connected_ids unions minions seen
within the ttl, restricted to accepted keys, with the existing address
based detection.

Idle minions only stay present if ping_interval is set on the minion.

Fixes saltstack#58592
@dwoz
dwoz merged commit 761406f into saltstack:3008.x Oct 21, 2026
1427 of 1433 checks passed
@twangboy twangboy modified the milestones: Argon v3008.5, Argon v3008.7 Oct 30, 2026
@twangboy twangboy linked an issue Oct 30, 2026 that may be closed by this pull request

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows minions not showing up in manage.presence

2 participants