mirror of
				https://github.com/falcosecurity/falco.git
				synced 2025-10-31 00:59:34 +00:00 
			
		
		
		
	Add support bundle (#517)
* Expose required_engine_version when loading rules When loading a rules file, have alternate methods that return the required_engine_version. The existing methods remain unchanged and just call the new methods with a dummy placeholder. * Add --support argument to print support bundle Add an argument --support that can be used as a single way to collect necessary support information, including the falco version, config, commandline, and all rules files. There might be a big of extra structure to the rules files, as they actually support an array of "variants", but we're thinking ahead to cases where there might be a comprehensive library of rules files and choices, so we're adding the extra structure.
This commit is contained in:
		| @@ -41,7 +41,8 @@ class falco_rules | ||||
| 	~falco_rules(); | ||||
| 	void load_rules(const string &rules_content, bool verbose, bool all_events, | ||||
| 			std::string &extra, bool replace_container_info, | ||||
| 			falco_common::priority_type min_priority); | ||||
| 			falco_common::priority_type min_priority, | ||||
| 			uint64_t &required_engine_version); | ||||
| 	void describe_rule(string *rule); | ||||
|  | ||||
| 	static void init(lua_State *ls); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user