Repository navigation
Report NAT'd minions in manage.present with presence_id_tracking - #70385
Merged
Merged
Conversation
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
twangboy
force-pushed
the
fix/58592/3008.x
branch
from
October 19, 2026 21:43
725dbc7 to
ef2bcef
Compare
3 of 9 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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