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

wip: update(internal/follower): handle required engine version mismatch wi… #329

Conversation

loresuso
Copy link
Member

@loresuso loresuso commented Sep 28, 2023

…th integers and semvers

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind flaky-test

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area library

/area cli

/area tests

/area examples

What this PR does / why we need it:
This PR tries to add some resilience when handling the requirement for engine_version. As it can be seen from PR falcosecurity/falco#2838, the engine_version is converted from an integer number to a server string. Falcoctl already has the capability to verify both integers and semver requirements, but can't handle the mismatch that this PR is creating. We will have a case in which we stored an integer number in the config layer of a rule artifact as engine version, but the new Falco will return a semver string, that certainly cannot be casted to an int. This PR treats this mismatch as a special one, making falcoctl more resilient in this situation, converting the int to an implicit semver string.
This allows us to not republish old artifacts with a semver string in the config, without disruption for users.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

…th integers and semvers

Signed-off-by: Lorenzo Susini <[email protected]>
@poiana
Copy link
Contributor

poiana commented Sep 28, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: loresuso
Once this PR has been reviewed and has the lgtm label, please assign maxgio92 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@loresuso
Copy link
Member Author

/hold until we have the changes in Falco

@loresuso loresuso changed the title update(internal/follower): handle required engine version mismatch wi… wip: update(internal/follower): handle required engine version mismatch wi… Oct 2, 2023
@loresuso
Copy link
Member Author

loresuso commented Oct 2, 2023

Putting this on wip, cause the problem could be more complicated then expected. I'll post details on a separate issue

@loresuso loresuso closed this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants