-
Notifications
You must be signed in to change notification settings - Fork 75
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
security implementation #78
Conversation
Codecov Report
@@ Coverage Diff @@
## main #78 +/- ##
============================================
- Coverage 40.71% 39.97% -0.74%
Complexity 882 882
============================================
Files 174 175 +1
Lines 6317 6436 +119
Branches 772 786 +14
============================================
+ Hits 2572 2573 +1
- Misses 3508 3626 +118
Partials 237 237
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -12,4 +12,7 @@ public class SecurityAnalyticsSettings { | |||
public static Setting<TimeValue> INDEX_TIMEOUT = Setting.positiveTimeSetting("plugins.security_analytics.index_timeout", | |||
TimeValue.timeValueSeconds(60), | |||
Setting.Property.NodeScope, Setting.Property.Dynamic); | |||
|
|||
public static Setting<Boolean> FILTER_BY_BACKEND_ROLES = Setting.boolSetting("plugins.security_analytics.filter_by_backend_roles", false, Setting.Property.NodeScope, Setting.Property.Dynamic); |
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.
We will need to register this setting in main Plugin file, to supply to the core.
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.
It is already part of SecurityAnalyticsPlugin.java, security tests will not pass otherwise
if ( | ||
resourceBackendRoles == null ||requesterBackendRoles == null || | ||
isIntersectListsEmpty(resourceBackendRoles, requesterBackendRoles) | ||
) { |
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.
nit: Indentation
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.
done
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
public interface SecureTransportAction { |
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 we please add java doc here, to document the behavior
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.
done
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.
done
@raj-chak Are we still working on the multi-node build failure? |
aa98f79
to
131b359
Compare
Signed-off-by: Raj Chakravarthi <raj@icedome.ca> Signed-off-by: Subhobrata Dey <sbcd90@gmail.com>
Signed-off-by: Raj Chakravarthi <raj@icedome.ca> Signed-off-by: Subhobrata Dey <sbcd90@gmail.com> (cherry picked from commit db97ea9)
Signed-off-by: Raj Chakravarthi <raj@icedome.ca> Signed-off-by: Subhobrata Dey <sbcd90@gmail.com> (cherry picked from commit db97ea9)
Signed-off-by: Raj Chakravarthi raj@icedome.ca
Description
backend security implementation for GetDetector, Create/Update Detector and Search Detector
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.