Skip to content

Conf sys update - #16374

Open
regit wants to merge 2 commits into
OISF:mainfrom
regit:conf-sys-update
Open

regit wants to merge 2 commits into
OISF:mainfrom
regit:conf-sys-update

Conversation

@regit

@regit regit commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Small update of conf system spotted during the making of #16005

Contribution style:

Our Contribution agreements:

Changes (if applicable):

Link to ticket: https://redmine.openinfosecfoundation.org/issues/8606

Describe changes:

  • better handling of set (in --set for example)
  • add util to iterate on sequence

regit added 2 commits October 5, 2026 06:28
A YAML sequence of single key maps, such as `outputs`, stores its
entries at outputs.<n>.<name> so a direct lookup of outputs.<name>
never matches. Add SCConfNodeLookupInSequence() to walk such a
sequence and return the entries matching a given name.

Ticket: 8606
In the case of --set=foo.0=bar, the 0 was not creating a sequence
if ever the sequence is not existing.

Ticket: 8606
Comment thread src/conf.c
node->final = final;
TAILQ_INSERT_TAIL(&parent->head, node, next);

/* Numeric-only key implies the parent is a sequence (yaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI tells me numeric keys are allowed in yaml, so this would break that.

@suricata-review-bot suricata-review-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

AI-generated review.

Verdict: approve

No high- or medium-severity findings.

Automated at commit 460a7f9615eb using Codex with gpt-6-astra/xhigh. Run: 2bf8301e00ba308b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants