Skip to content

Manage mixage of CRD and locally pushed tracing policies (tetra) #4808

@FedeDP

Description

@FedeDP

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

Today, you can use tetra tracingpolicy to load a policy; but you can also install new policies through CRD.
The problem is: given a policy has been installed via k8s, do we allow tetra tracingpolicy ... to modify it?

Also, this is a future-proofing request, since new tracingpolicy sources can be added later on and amplify the issue.

Describe the feature you would like

My proposal is for tetragon Sensors Manager to track the "source" of a tracingpolicy.

Describe your proposed solution

Let's add a new source (or domain) string to the Sensors Manager collectionKey structure.

My proposal is to update the code to:

  • set the source to tetra-cli for policies registered via tetra / initial command line argument (--tracing-policy)
  • set the source to k8s for both TracingPolicyNamespaced and normal (ie: non-Namespaced) TracingPolicy pushed via CRD
  • add a cli switch to tetra tracingpolicy like: --force to enforce the override for any source (ie: if you always invoke tetra tracingpolicy --force ... , the behavior will be exactly the current one)

At that point, Sensors Manager will differentiate between all of these policies that will be effectively managed specifically for each source, and each source can only operate on its policies, unless the user knowingly enforces the old behavior via tetra tracingpolict --force cli flag.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions