-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(docs): added falco.yaml section about config keys maturity. #3206
Conversation
Also, rename `Experimental` -> `Incubating` and move `prometheus_metrics_enabled` to `Incubating`. Signed-off-by: Federico Di Pierro <[email protected]>
/milestone 0.38.0 |
@@ -749,6 +762,8 @@ webserver: | |||
# Can be an IPV4 or IPV6 address, defaults to IPV4 | |||
listen_address: 0.0.0.0 | |||
k8s_healthz_endpoint: /healthz | |||
# [Incubating] `prometheus_metrics_enabled` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am not sure about how to integrate the feature level label here, for a sub-option of a Stable
config key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way works for me 👍
@@ -525,7 +538,7 @@ json_include_tags_property: true | |||
# output mechanism. By default, buffering is disabled (false). | |||
buffered_outputs: false | |||
|
|||
# [Experimental] `rule_matching` | |||
# [Incubating] `rule_matching` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Experimental -> Incubating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urgh ok here we should maybe also introduce a synonym rules_matching
@leogr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think singular is ok, in this case; it is rule-matching algorithm
, feels ok rule_matching: foo
to me.
I was also wondering whether we could improve somehow the way maturity labels are attached, ie: perhaps moving them to the index at the top? Or moving them just the line before the configuration key, like:
|
falco.yaml
Outdated
@@ -25,7 +25,7 @@ | |||
# | |||
# (Falco command-line arguments) | |||
# (Falco environment variables) | |||
# Falco config files | |||
# Falco configs files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok we may need to change the sha256 metrics name then as well. @FedeDP would you mind adding a commit for that real quick here? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am not sure though, since we have watch_config_files
too, and indeed we have multiple configuration (singular) files (plural), so config_files
is not that bad after all, even if it somehow clashes with rules_files
(but in this case, we have multiple files with multiple rules inside).
WDYT? Ie i am proposing to rename configs_files
to config_files
(not a breaking change since we introduced the new key during this release cycle, so we never went out with that).
cc @leogr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess config_files
would be more appropriate since it uses the singular form config as an adjective to describe the type of files (each file represents a configuration composed of a set of options). N.B. rules_files
is different because a rulesfiles describes a single file containing many rules (each file represents a set of rules).
That said, I can't recall why we called it configs
vs. config
. Did we have a compelling reason to call it so? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we keep config
(singular form)? Works for me. Could we re-audit if we are consistent everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok Leo is on board with changing configs_files
to config_files
. I will add a new commit for that.
@@ -749,6 +762,8 @@ webserver: | |||
# Can be an IPV4 or IPV6 address, defaults to IPV4 | |||
listen_address: 0.0.0.0 | |||
k8s_healthz_endpoint: /healthz | |||
# [Incubating] `prometheus_metrics_enabled` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me like this.
/hold |
@@ -749,6 +762,8 @@ webserver: | |||
# Can be an IPV4 or IPV6 address, defaults to IPV4 | |||
listen_address: 0.0.0.0 | |||
k8s_healthz_endpoint: /healthz | |||
# [Incubating] `prometheus_metrics_enabled` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way works for me 👍
falco.yaml
Outdated
@@ -1170,7 +1185,7 @@ base_syscalls: | |||
# Falco libs # | |||
############## | |||
|
|||
# [Experimental] `falco_libs` - Potentially subject to more frequent changes | |||
# [Incubating] `falco_libs` - Potentially subject to more frequent changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# [Incubating] `falco_libs` - Potentially subject to more frequent changes | |
# [Incubating] `falco_libs` |
IMO, it would be appropriate to remove (or at least clarify what we mean by):
Potentially subject to more frequent changes
For incubating features, long-term support is not guaranteed, and before 1.0, the deprecation period length is 0. This basically means, the feature can be changed or removed at any time. This is the same for all incubating features, so I don't see any compelling reason to make any particular treatment for this specific one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, remove it.
falco.yaml
Outdated
@@ -25,7 +25,7 @@ | |||
# | |||
# (Falco command-line arguments) | |||
# (Falco environment variables) | |||
# Falco config files | |||
# Falco configs files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess config_files
would be more appropriate since it uses the singular form config as an adjective to describe the type of files (each file represents a configuration composed of a set of options). N.B. rules_files
is different because a rulesfiles describes a single file containing many rules (each file represents a set of rules).
That said, I can't recall why we called it configs
vs. config
. Did we have a compelling reason to call it so? 🤔
@leogr we haven't responded to this yet.
|
Signed-off-by: Federico Di Pierro <[email protected]>
…les`. Signed-off-by: Federico Di Pierro <[email protected]>
Signed-off-by: Federico Di Pierro <[email protected]>
Should've done everything:
|
Signed-off-by: Federico Di Pierro <[email protected]>
# Falco config files | ||
# watch_config_files | ||
# load_plugins [Stable] | ||
# plugins [Stable] | ||
# Falco outputs settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for eg: 1.0.0: we might add an outputs.
namespace for these settings.
Similarly, for all the others, eg:
services.{grpc,webserver}
- log.{stderr,syslog,level,libs}`
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @LucaGuerra pls keep track of this, it may be useful in release comms.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, incertum, leogr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
What this PR does / why we need it:
Also, rename
Experimental
->Incubating
and moveprometheus_metrics_enabled
toIncubating
.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
See the proposal: https://github.com/falcosecurity/falco/blob/master/proposals/20231220-features-adoption-and-deprecation.md
Does this PR introduce a user-facing change?: