-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add warning when script checks enabled without ACLs #22877
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
Conversation
srahul3
left a comment
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.
Added few comments
| return fmt.Errorf("Scripts are disabled on this agent from remote calls; to enable, configure 'enable_script_checks' to true") | ||
| } | ||
|
|
||
| if !a.config.ACLsEnabled && a.config.EnableLocalScriptChecks { |
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.
Add the changelog for this.
agent/agent.go
Outdated
| a.logger.Warn("Scripts are enabled on this agent without ACLs; this is not recommended for security reasons") | ||
| } | ||
|
|
||
| if !a.config.ACLsEnabled && a.config.EnableLocalScriptChecks { |
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.
Can you elaborate why we have this check twice? The message looks redundant
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.
My bad mistakenly added same check , added correct check and pushed
srahul3
left a comment
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.
✅ LGTM
| a.logger.Warn("Scripts are enabled on this agent without ACLs; this is not recommended for security reasons") | ||
| } | ||
|
|
||
| if !a.config.ACLsEnabled && a.config.EnableRemoteScriptChecks { |
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.
Can you also explain the need for the redundant checks?
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20,1.21] please perform the backport manually and add the following snippet to your backport PR description: |
4 similar comments
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20,1.21] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20,1.21] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20,1.21] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20,1.21] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
10 similar comments
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
1 similar comment
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description: |
This reverts commit 11434f7.
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
19 similar comments
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
|
📣 Hi @bharath-k1999! a backport is missing for this PR [22877] for versions [1.18] please perform the backport manually and add the following snippet to your backport PR description: |
Description
Testing & Reproduction steps
Links
PR Checklist
PCI review checklist
I have documented a clear reason for, and description of, the change I am making.
If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
If applicable, I've documented the impact of any changes to security controls.
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.