purple  
                
               
                 
              
                  
                    April 25, 2019,  7:06pm
                   
                   
              1 
               
             
            
              I understand this has been asked before but all responses are 1-2 years old.
I want to pass credentials in kibana.yml through a .env file.
 
// .env
USER=johndoe
PASS=secret
 
// kibana.yml
...
elasticsearch.username=%{USER}
elasticsearch.password=%{PASS}
...
 
Is the above method possible?
             
            
               
               
               
            
            
           
          
            
            
              Yes, you can currently do this. The format is ${MY_ENV_VAR}
             
            
               
               
              1 Like 
            
            
           
          
            
              
                purple  
                
               
              
                  
                    April 25, 2019,  8:01pm
                   
                   
              3 
               
             
            
              Is it possible in Kibana v6.2.5, ES v6.2.4 on centOS 7.4 ?
             
            
               
               
               
            
            
           
          
            
            
              No, sorry this was introduced in 6.3.0.
Alternatively, the Kibana configuration options can be passed to bin/kibana.
For example: 
bin/kibana --elasticsearch.password=foo
             
            
               
               
               
            
            
           
          
            
              
                system  
                (system)
                  Closed 
               
              
                  
                    May 23, 2019,  8:34pm
                   
                   
              5 
               
             
            
              This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.