- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25.6k
[DOCS] Add deprecation notice for system indices #80028
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
          
     Closed
      
      
            lockewritesdocs
  wants to merge
  4
  commits into
  elastic:master
from
lockewritesdocs:docs__sys-indices-deprecation
  
      
      
   
      
    
  
     Closed
                    Changes from 2 commits
      Commits
    
    
            Show all changes
          
          
            4 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      
    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
    
  
  
    
              
              
  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.
Is this true? I'm not sure what I can even say publicly about this?
In another way, access is already prevented by default in 8.0, unless you have the right bits on your index privileges (specifically
allow_restricted_indices).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 was going based on the warnings from #79633:
If 8.0 is the major version, then I think that we need two deprecation messages; one for 7.16 and one for 8.0.
7.16
Directly accessing system indices is deprecated, and will be prevented by default in Elasticsearch 8.0.
8.0
You cannot directly access system indices starting in Elasticsearch 8.0.
I'm unsure whether we want to mention
allow_restricted_indicesfor accessing system indices, which is why I indicated that "you should only do so with the guidance of Elastic Support." cc: @bytebilly for input.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'm not sure that the above sentence for 7.16 is correct. You could argue that, by default, users will not get the
allow_restricted_indicesflag set, but I would counter-argue thatelastic, the default user account everybody knows and uses, has it set and so it can access by default 🙂If we want to help users to migrate correctly, we should call out the solution explicitly.
Something along those lines:
"Directly accessing system indices is deprecated, and it will require the
allow_restricted_indicespermission flag in Elasticsearch 8.0."What do you think?
Here we probably want to mention something related to possible future changes, but we still don't know details.
So, something generic, to keep the deprecation flag but without assuming what the final conclusion will be.
"Directly accessing system indices is deprecated, and may be prevented in a future version."
(I'm not sure we can talk about "next major versions" anymore, given Make it Minor — keeping it generic would let us tune as required)
Emitted deprecation messages and what's in the docs should be consistent where possible.