Skip to content

A package to handle the reading and processing of baseline rules

License

Notifications You must be signed in to change notification settings

np-guard/baseline-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

baseline-rules

A package to handle the reading and processing of baseline rules (corporate policies). A baseline-rule file is a YAML file containing a list of Rule objects, and each object has the following (optional) properties.

Property Description Type Default
name Rule name. Must match the requirements of K8s DNS Subdomain Names string no-name
description Rule description string ''
action Whether to allow or deny the specified connections. Either allow or deny string allow
from Connections source. Either a K8s set-based requirement or a CIDR string null (all sources)
to Connections destination. Either a K8s set-based requirement or a CIDR string null (all destinations)
from_ns Source Namespaces. a K8s set-based requirement string null (all source namespaces)
to_ns Destination Namespaces. a K8s set-based requirement string null (all destination namespaces)
protocol Connections protocol. Must be supported by K8s. string null (all protocols)
port_min Minimal connections port. Must be in range [1, 65535] int null (no minimal port)
port_max Maximal connections port. Must be in range [1, 65535] int null (no maximal port)

Examples are available in the examples directory.

About

A package to handle the reading and processing of baseline rules

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages