Project

General

Profile

Actions

Documentation #3046

open
AH AH

Document each default value from the config file

Documentation #3046: Document each default value from the config file

Added by Andreas Herz almost 7 years ago. Updated over 3 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
high
Difficulty:
low
Label:

Description

There are some parts at the config documentation (comments) which don't include the default and aren't 100% obvious.


Related issues 1 (1 open0 closed)

Related to Suricata - Task #4762: Suricon 2021 brainstormAssignedVictor JulienActions

AH Updated by Andreas Herz almost 7 years ago Actions #1

I would add those to the documentation AND the config, any objections?

VJ Updated by Victor Julien over 6 years ago Actions #2

Not sure, maybe this needs to be looked at on a case by case basis. The default yaml is a monster, so adding more things to it is something that I would like to do carefully.

I didn't find a ticket for having multiple yamls (e.g. minimal/normal/everything, or split out yamls), but maybe its time to revisit this.

AH Updated by Andreas Herz over 6 years ago Actions #3

Another approach would be to make the current config much smaller, even remove all comments and just rely on the documentation where it's also easier to keep the defaults?

If not, adding the defaults to the current config shouldn't be too much.

Jason, do you know any nice way to deal with multiple yamls?

AH Updated by Andreas Herz over 6 years ago Actions #4

  • Tracker changed from Optimization to Documentation

AH Updated by Andreas Herz over 6 years ago Actions #5

  • Target version changed from Documentation to TBD

VJ Updated by Victor Julien almost 6 years ago Actions #6

In general the question of what to have and haven't be part of the yaml shouldn't block already improving the userguide.

JI Updated by Jason Ish almost 6 years ago Actions #7

I think right now we could break it up into multiple files with include statements. It would make sense to keep commonly updated stuff in the suricata.yaml, and less commonly updated stuff in includes.

Assuming the includes are in some system directory, say /usr/share/suricata/config/app-layer.yaml, then tweaking stuff includes does become harder. You would have to make a complete copy of the top level object and modify it, as we don't have a way to override just one deeply nested configuration parameters in a file, but you can do it with the --set.

I've seen in some other projects (maybe docker-compose files? filebeat configuration maybe?) where they provide a dotted syntax to override nested settings.. For example we may have:

vars:
  address-groups:
    HOME_NET: "[192.168.0.0/16,10.0.0.0/8,172.16.0.0/12]" 
    EXTERNAL_NET: "!$HOME_NET" 

I've seen overrides provided in the format:
vars.address-groups.HOME_NET: "7.1.0.0/16" 

which could be convenient. However it gets a little tricker for the arrays we have, which will probably have settings where overrides make sense as well.

It would be nice to define what we want to break out, and maybe go from there.

PostgreSQL has a rather large configuration file when all options are present. What they do is install a smaller file with some common option, then the rest get their default. Their documentation then covers all options, and while I'm not sure if this is maintained anymore, they also had an annotated exchaustive configuration file with defaults:

http://www.varlena.com/GeneralBits/Tidbits/annotated_conf_e.html

While it does increase overhead, we could make the sample suricata.yaml in the doc exhaustive, and perhaps trim down what we have in the installed one.

AH Updated by Andreas Herz over 4 years ago Actions #8

  • Related to Task #4762: Suricon 2021 brainstorm added

AH Updated by Andreas Herz over 3 years ago Actions #9

  • Priority changed from Normal to Low

AH Updated by Andreas Herz over 3 years ago Actions #10

  • Priority changed from Low to Normal

AH Updated by Andreas Herz over 3 years ago Actions #11

  • Subject changed from Document each default value from the config to Document each default value from the config file

AH Updated by Andreas Herz over 3 years ago Actions #12

  • Subject changed from Document each default value from the config file to Document each default value from the config

AH Updated by Andreas Herz over 3 years ago Actions #13

  • Effort changed from medium to high

AH Updated by Andreas Herz over 3 years ago Actions #14

  • Subject changed from Document each default value from the config to Document each default value from the config file

AH Updated by Andreas Herz over 3 years ago Actions #15

  • Subject changed from Document each default value from the config file to Document each default value from the config

AH Updated by Andreas Herz over 3 years ago Actions #16

  • Subject changed from Document each default value from the config to Document each default value from the config file
Actions

Also available in: PDF Atom