Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #14135: Abort when running 5.1 policies on old agent #1401

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions techniques/system/common/1.0/promises.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ bundle common va
"update_reports",
"configuration",
"initialize_ncf",
# We need ncf to be loaded and initialized
"rudder_check_agent_version",
"internal_security",
"check_uuid",
"garbage_collection",
Expand Down Expand Up @@ -656,6 +658,15 @@ bundle agent update_reports
}


#######################################################

bundle agent rudder_check_agent_version
{
methods:
cfengine_3_1|cfengine_3_2|cfengine_3_3|cfengine_3_4|cfengine_3_5|cfengine_3_6|cfengine_3_7|cfengine_3_8|cfengine_3_9::
"any" usebundle => _abort("unsupported_agent", "This agent is not compatible with its Rudder server, please upgrade");
Copy link
Member

Choose a reason for hiding this comment

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

what does it look like in a rudder agent run ?
can the user know it from the server ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll add a specific handling in the webapp like we hve for repaired while in audit

Copy link
Member Author

Choose a reason for hiding this comment

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

unsupported

}

#######################################################

body agent control
Expand Down