- 
                Notifications
    You must be signed in to change notification settings 
- Fork 338
roles yml changes for security-analytics plugin #2192
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
          
     Merged
      
      
            peternied
  merged 5 commits into
  opensearch-project:main
from
raj-chak:roles_yml_for_detectors
  
      
      
   
  Nov 2, 2022 
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            5 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      fc6fe76
              
                roles yml changes for security-analytics plugin
              
              
                raj-chak e83abab
              
                changed to opensearch, added index permission and also in alphabetica…
              
              
                raj-chak 82e2716
              
                added new line
              
              
                raj-chak 4bbece6
              
                changed role names to use prefix security_analytics and added one mor…
              
              
                raj-chak 399269e
              
                added entry for security_analytics_ack_alerts
              
              
                raj-chak File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -255,3 +255,38 @@ point_in_time_full_access: | |
| - '*' | ||
| allowed_actions: | ||
| - 'manage_point_in_time' | ||
|  | ||
| # Allows users to see security analytics detectors and others | ||
| security_analytics_read_access: | ||
| reserved: true | ||
| cluster_permissions: | ||
| - 'cluster:admin/opensearch/securityanalytics/alerts/get' | ||
| - 'cluster:admin/opensearch/securityanalytics/detector/get' | ||
| - 'cluster:admin/opensearch/securityanalytics/detector/search' | ||
| - 'cluster:admin/opensearch/securityanalytics/findings/get' | ||
| - 'cluster:admin/opensearch/securityanalytics/mapping/get' | ||
| - 'cluster:admin/opensearch/securityanalytics/mapping/view/get' | ||
| - 'cluster:admin/opensearch/securityanalytics/rule/get' | ||
| - 'cluster:admin/opensearch/securityanalytics/rule/search' | ||
|  | ||
| # Allows users to use all security analytics functionality | ||
| security_analytics_full_access: | ||
| reserved: true | ||
| cluster_permissions: | ||
| - 'cluster:admin/opensearch/securityanalytics/alerts/*' | ||
| - 'cluster:admin/opensearch/securityanalytics/detector/*' | ||
| - 'cluster:admin/opensearch/securityanalytics/findings/*' | ||
| - 'cluster:admin/opensearch/securityanalytics/mapping/*' | ||
| - 'cluster:admin/opensearch/securityanalytics/rule/*' | ||
| index_permissions: | ||
| - index_patterns: | ||
| - '*' | ||
| allowed_actions: | ||
| - 'indices:admin/mapping/put' | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about   There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done and tested. | ||
| - 'indices:admin/mappings/get' | ||
|  | ||
| # Allows users to view and acknowledge alerts | ||
| security_analytics_ack_alerts: | ||
| reserved: true | ||
| cluster_permissions: | ||
| - 'cluster:admin/opensearch/securityanalytics/alerts/*' | ||
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
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.
Lets also add
security_analytics_ack_alertsfor the security operators to be able to acknowledge alerts with cluster permission as:Uh oh!
There was an error while loading. Please reload this page.
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 as opensearch not opendistro to be consistent with the rest