Skip to content

Ignore SSH keys when calculating fleet conf diff#2869

Merged
un-def merged 1 commit intomasterfrom
issue_2222_fix_fleet_conf_change_detection
Jul 3, 2025
Merged

Ignore SSH keys when calculating fleet conf diff#2869
un-def merged 1 commit intomasterfrom
issue_2222_fix_fleet_conf_change_detection

Conversation

@un-def
Copy link
Copy Markdown
Collaborator

@un-def un-def commented Jul 2, 2025

Since /api/project/{project_name}/fleets/get_plan returns the plan with sensitive info (SSH keys) removed, the configurations are never equal. To work around this issue, we ignore (strictly speaking, not ignore but reset to the default values, None in this case) fields containing SSH key content when calculating the fleet configurations diff.

Fixes: #2222

Since `/api/project/{project_name}/fleets/get_plan` returns the plan
with sensitive info (SSH keys) removed, the configurations are never
equal. To work around this issue, we exclude (strictly speaking, not
exclude but reset to the default values, `None` in this case) fields
containing SSH key content when calculating the fleet configurations
diff.

Fixes: #2222
@un-def un-def requested a review from r4victor July 2, 2025 15:28
@un-def un-def merged commit a6dbb3f into master Jul 3, 2025
25 checks passed
@un-def un-def deleted the issue_2222_fix_fleet_conf_change_detection branch July 3, 2025 07:06
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.

[Bug]: Changes always detected in SSH fleet configurations

2 participants