Project

General

Profile

Actions

Feature #4783

closed

Task #4780: tracking config: configuration usability improvements

config/yaml: Allow fully qualified configuration keys (top.sub.sub: value)

Added by Jason Ish about 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

Includes in our configuration file completely override the keys they override, in some cases it might be nice to just do the following in an include:

vars.address-groups.HOME_NET: "7.1.2.3/32" 

Note, in some cases this might already work as its available with the --set command line option, however, working like this in a configuration file is not official.

This is also very convenient in configuration files that are included.

This also seems to be common in YAML configurations in tools created in Go (filebeat, I think some docker tools). I'm not sure if this is an aspect the YAML parsers in Go, or just a common conventions in "cloud" apps. But still useful.

Actions #1

Updated by Jason Ish about 3 years ago

  • Tracker changed from Task to Feature
Actions #2

Updated by Victor Julien almost 3 years ago

  • Subject changed from Allow fully qualified configuration keys (top.sub.sub: value) to config/yaml: Allow fully qualified configuration keys (top.sub.sub: value)
Actions #3

Updated by Jason Ish almost 2 years ago

  • Status changed from New to Assigned
  • Assignee set to Jason Ish
Actions #4

Updated by Jason Ish almost 2 years ago

  • Status changed from Assigned to In Review

After a quick look this looked rather easy to do as we had most of the support code already.

PR for review: https://github.com/OISF/suricata/pull/8439

Actions #5

Updated by Jason Ish almost 2 years ago

  • Status changed from In Review to Closed
  • Target version set to 7.0.0-rc1
Actions

Also available in: Atom PDF