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

validate policy against nodes, error if not valid #2089

Merged
merged 5 commits into from
Aug 30, 2024

Commits on Aug 30, 2024

  1. validate policy against nodes, error if not valid

    this commit aims to improve the feedback of "runtime" policy
    errors which would only manifest when the rules are compiled to
    filter rules with nodes.
    
    this change will in;
    
    file-based mode load the nodes from the db and try to compile the rules on
    start up and return an error if they would not work as intended.
    
    database-based mode prevent a new ACL being written to the database if
    it does not compile with the current set of node.
    
    Fixes juanfont#2073
    Fixes juanfont#2044
    
    Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
    kradalby committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    4bd6936 View commit details
    Browse the repository at this point in the history
  2. ensure stderr can be used in err checks

    Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
    kradalby committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    cb12055 View commit details
    Browse the repository at this point in the history
  3. test policy set validation

    Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
    kradalby committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    7860d37 View commit details
    Browse the repository at this point in the history
  4. add new integration test to ghaction

    Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
    kradalby committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    be6acdd View commit details
    Browse the repository at this point in the history
  5. add back defer for cli tst

    Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
    kradalby committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    d5a3253 View commit details
    Browse the repository at this point in the history