Skip to content

Conversation

@douzzer
Copy link
Collaborator

@douzzer douzzer commented Jul 17, 2023

From ChangeLog.md:

Routes can now be configured to match traffic with designated action_results
bit constraints, and can be configured to update action_results bits, by
inserting the route with a parent event that has the desired configuration.
Parent events can now also be configured to add or clear route flags for all
routes inserted with that parent event.

Added new aux_event mechanism to facilitate distinct configurations for a
static generator route and the narrower ephemeral routes dynamically created
when it is matched.

Added a new built-in action, "%track-peer-v1", that can be used in combination
with the above new facilities to dynamically spawn ephemeral routes, allowing
for automatic pinhole routes, automatic adversary tracking, and easy
implementation of dynamic blocks for port scanning adversaries.

For details, see rest of entry in ChangeLog.md for release 1.4.0.

…totype arguments (typically void * versus some struct pointer).
@douzzer douzzer requested a review from JacobBarthelmeh July 17, 2023 21:38
@douzzer douzzer self-assigned this Jul 17, 2023
…l of action_results and route flag bits, and add a first built-in action. for details, see ChangeLog.md entry for version 1.4.0.
@douzzer douzzer force-pushed the 20230617-builtin-actions branch from fcdd908 to af9ee0c Compare July 17, 2023 21:40
@JacobBarthelmeh JacobBarthelmeh assigned douzzer and unassigned douzzer Jul 17, 2023
douzzer added 6 commits July 17, 2023 17:57
wolfsentry_action_insert() and wolfsentry_event_insert(): fix WOLFSENTRY_SUCCESS_CODE_IS() uses to use intermediate variable to avoid multiple-evaluation;

WOLFSENTRY_ERROR_DECODE_ERROR_CODE() and friends: add gnuish variants that evaluate first arg only once, to fix unittest.c calls that depend on them.
…rors if WOLFSENTRY_ACTION_RES_DELETE is set.
…ry_event_get_aux_event(), wolfsentry_event_get_label(), wolfsentry_addr_family_max_addr_bits();

fix bugprone-switch-missing-default-case warnings from clang-tidy pre20230717 (refactored wolfsentry_rwlock.state back to an enum; refactored JSON_PARSER.automaton to an enum; added default cases elsewhere).
…N_RES_INSERTED, and fix setting of WOLFSENTRY_ACTION_RES_FALLTHROUGH;

add unit tests for wolfsentry_event_set_aux_event(), wolfsentry_event_get_aux_event(), wolfsentry_event_get_label(), wolfsentry_addr_family_max_addr_bits();

final fixes and unit test coverage for wolfsentry_builtin_action_track_peer();

restore WOLFSENTRY_ACTION_RES_DEROGATORY bit to _UNREACHABLE cases in lwip/packet_filter_glue.c;

make wolfsentry_table_ent_get_by_id() a public API;

add wolfsentry_static_assert2() taking 2 args like old wolfsentry_static_assert(), and change the latter to build the message string using cpp stringification;

remove frivolous WOLFSENTRY_ACTION_RES_STOP from assignments in load_config.c:convert_default_policy().
…UDP_JSON(): update call to wolfsentry_action_res_decode() to call by new name wolfsentry_action_res_assoc_by_flag().
@douzzer douzzer requested a review from JacobBarthelmeh July 19, 2023 19:05
@douzzer douzzer assigned JacobBarthelmeh and unassigned douzzer Jul 19, 2023
@JacobBarthelmeh JacobBarthelmeh merged commit 2816378 into wolfSSL:master Jul 19, 2023
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.

2 participants