Skip to content

feat: add Falco runtime security rules JSON schema#5861

Open
Goutham-Annem wants to merge 2 commits into
SchemaStore:masterfrom
Goutham-Annem:feat/falco-rules-schema
Open

feat: add Falco runtime security rules JSON schema#5861
Goutham-Annem wants to merge 2 commits into
SchemaStore:masterfrom
Goutham-Annem:feat/falco-rules-schema

Conversation

@Goutham-Annem

Copy link
Copy Markdown

Summary

Adds a JSON Schema for Falco runtime security rules files, enabling IDE autocompletion and validation.

Schema file: src/schemas/json/falco-rules.json
Catalog entry added with fileMatch for falco_rules.yaml and falco_rules.local.yaml

What is Falco?

Falco is a CNCF Incubating cloud-native runtime security tool. Users write rules in YAML files that are loaded by Falco to detect suspicious behavior at runtime.

Schema Coverage

The schema covers all Falco rule file constructs:

  • Rulesrule, desc, condition, output, priority, tags, source, enabled, exceptions
  • Macrosmacro, condition, append
  • Listslist, items, append
  • Metadatarequired_engine_version, required_plugin_versions (with alternatives)
  • Override syntaxoverride field with append/replace semantics for extending built-in rules

The schema was derived from the official Falco engine schema (accessible via falco --rule-schema) with added descriptions for each property.

Related

Add a JSON Schema for Falco security rules files, enabling IDE
autocompletion and validation for falco_rules.yaml and
falco_rules.local.yaml files.

The schema covers all Falco rule constructs including rules, macros,
lists, required_engine_version, required_plugin_versions, exceptions,
and the override syntax for extending existing rules.

Relates to: falcosecurity/falco#3432
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

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.

1 participant