Skip to content

Conversation

@huntergregory
Copy link
Contributor

Changes:

  • disable the CLI for v2
  • update some comments
  • polish linux policy manager
    • increase the max try count to 2 for iptables-restore
    • fix the exit code that we ignore when deleting jumps to policy chains (now we ignore when the rule doesn't exist

@huntergregory huntergregory added the npm Related to NPM. label Feb 15, 2022
// ACN CLI debug handlerss
// TODO support the debug CLI for v2
// the nil check is for fan-out npm
if config.Toggles.EnableHTTPDebugAPI && npmEncoder != nil && !config.Toggles.EnableV2NPM {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to disable GetCache for V2, this is useful irrespective of debug CLI.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently the cache is buggy for v2. Let's fix this in another PR

/*
Error handling for iptables-restore:
Currently we retry on any error and will make two tries max.
The section IDs and line error patterns are pointless currently. Although we can eventually use them to skip a section with an error and salvage the rest of the file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can you reduce this oneline into two, its too long.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressing in followup PR

@huntergregory huntergregory merged commit f685e62 into master Feb 16, 2022
@huntergregory huntergregory deleted the npm-iptables-try-count branch February 16, 2022 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

npm Related to NPM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants