File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2525splunk_hec_token = os .environ .get ("SPLUNK_HEC_TOKEN" , None )
2626splunk_password = os .environ .get ("SPLUNK_PASSWORD" , None )
2727splunk_idxc_secret = os .environ .get ("SPLUNK_IDXC_SECRET" , None )
28+ splunk_idxc_pass4SymmKey = os .environ .get ("SPLUNK_SHC_PASS4SYMMKEY" , None )
2829splunk_shc_secret = os .environ .get ("SPLUNK_SHC_SECRET" , None )
30+ splunk_shc_pass4SymmKey = os .environ .get ("SPLUNK_SHC_PASS4SYMMKEY" , None )
2931
3032def random_generator (size = 24 ):
3133 # Use System Random for
@@ -43,8 +45,13 @@ def random_generator(size=24):
4345 os .environ ["SPLUNK_PASSWORD" ] = random_generator ()
4446if not splunk_idxc_secret :
4547 os .environ ["SPLUNK_IDXC_SECRET" ] = random_generator ()
48+ if not splunk_idxc_pass4SymmKey :
49+ os .environ ["SPLUNK_IDXC_SECRET" ] = os .environ ["SPLUNK_IDXC_SECRET" ]
4650if not splunk_shc_secret :
4751 os .environ ["SPLUNK_SHC_SECRET" ] = random_generator ()
52+ if not splunk_shc_pass4SymmKey :
53+ os .environ ["SPLUNK_SHC_PASS4SYMMKEY" ] = os .environ ["SPLUNK_SHC_SECRET" ]
54+
4855sys .argv .append ("--write-to-stdout" )
4956import environ
5057environ .main ()
You can’t perform that action at this time.
0 commit comments