Page MenuHomeDevCentral

Ensure userlist isn't world-readable
ClosedPublic

Authored by dereckson on Oct 19 2017, 22:54.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 07:54
Unknown Object (File)
Sat, Nov 9, 15:19
Unknown Object (File)
Fri, Nov 8, 05:43
Unknown Object (File)
Thu, Nov 7, 21:38
Unknown Object (File)
Thu, Nov 7, 20:44
Unknown Object (File)
Thu, Nov 7, 20:22
Unknown Object (File)
Thu, Nov 7, 20:05
Unknown Object (File)
Thu, Nov 7, 19:52
Subscribers
None

Details

Summary

Fixes T1267.

Test Plan

salt-call state.apply roles/shellserver/odderon/config

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 29 2017, 01:52
$ salt-call state.apply roles/shellserver/odderon/config
    The function "chown odderon:nasqueron-irc /opt/odderon/var/darkbot/userlist.db" in state "odderon_fix_permissions_and_ownership" in SLS "roles/shellserver/odderon/config" has whitespace, a function with whitespace is not supported, perhaps this is an argument that is missing a ":"

Fix cmd.run multi command syntax

This revision is now accepted and ready to land.Oct 29 2017, 15:22
Salt master
$ salt eglide state.apply roles/shellserver/odderon/config
eglide:                              
----------                             
          ID: odderon_fix_permissions_and_ownership                            
    Function: cmd.run                  
        Name: chmod 640 /opt/odderon/var/darkbot/userlist.db                   
      Result: True                     
     Comment: Command "chmod 640 /opt/odderon/var/darkbot/userlist.db" run     
     Started: 15:22:18.005520          
    Duration: 47.53 ms                 
     Changes:                          
              ----------               
              pid:                     
                  32647                
              retcode:                 
                  0                    
              stderr:                  
              stdout:                  
----------                             
          ID: odderon_fix_permissions_and_ownership                            
    Function: cmd.run                  
        Name: chown odderon:nasqueron-irc /opt/odderon/var/darkbot/userlist.db 
      Result: True                     
     Comment: Command "chown odderon:nasqueron-irc /opt/odderon/var/darkbot/userlist.db" run                                                                   
     Started: 15:22:18.054366          
    Duration: 40.816 ms                
     Changes:                          
              ----------               
              pid:                     
                  32649                
              retcode:                 
                  0                    
              stderr:                  
              stdout:                  

Summary for eglide                     
------------                           
Succeeded: 2 (changed=2)               
Failed:    0                           
------------                           
Total states run:     2                
Total run time:  88.346 ms

Works but the software itself rewrites periodically the file as 644.

This revision was automatically updated to reflect the committed changes.