mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
sync code
This commit is contained in:
@@ -58,6 +58,7 @@ send_notification_to_the_fog()
|
||||
"$var_fog/api/v1/agents/events/bulk" -H "X-Trace-Id:${correlation_id}" \
|
||||
--header "Authorization: Bearer ${ra_token}" --header "user-agent: Infinity Next (a7030abf93a4c13)" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "x-rate-limit-product-type: openappsec" \
|
||||
--data "{\"logs\": [{\"log\": {\"eventTime\": \
|
||||
\"$DATE\",\"eventName\": \"Agent started onboarding process to cloud management\",\"eventSeverity\": \
|
||||
\"Info\",\"eventPriority\": \"Urgent\",\"eventLogLevel\": \"info\",\"eventType\": \"Event Driven\",
|
||||
@@ -73,7 +74,9 @@ send_notification_to_the_fog()
|
||||
upload_res=$(curl -s -o /dev/null -s -w "%{http_code}\n" \
|
||||
--request POST "$var_fog/api/v1/agents/events/bulk" -H "X-Trace-Id:${correlation_id}" \
|
||||
--header "Authorization: Bearer ${ra_token}" --header "user-agent: Infinity Next (a7030abf93a4c13)" \
|
||||
--header "Content-Type: application/json" --data "{\"logs\": \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "x-rate-limit-product-type: openappsec" \
|
||||
--data "{\"logs\": \
|
||||
[{\"log\": {\"eventTime\": \"$DATE\",\"eventName\": \"Agent started onboarding process to cloud management\",
|
||||
\"eventSeverity\": \"Info\",\"eventPriority\": \"Urgent\",\"eventLogLevel\": \"info\",\"eventType\": \"Event Driven\",
|
||||
\"eventLevel\": \"Log\",\"eventAudience\": \"Internal\",\"eventAudienceTeam\": \"Agent Core\",\"eventFrequency\": 0,
|
||||
|
@@ -157,7 +157,9 @@ send_notification_to_the_fog()
|
||||
DATE=$(date "+%FT%T.000")
|
||||
upload_res=$(curl -o /dev/null -s -w "%{http_code}\n" --request POST "$var_fog/api/v1/agents/events/bulk" \
|
||||
-H "X-Trace-Id:${correlation_id}" --header "Authorization: Bearer ${ra_token}" \
|
||||
--header "user-agent: Infinity Next (a7030abf93a4c13)" --header "Content-Type: application/json" \
|
||||
--header "user-agent: Infinity Next (a7030abf93a4c13)" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "x-rate-limit-product-type: openappsec" \
|
||||
--data "{\"logs\": [{\"log\": {\"eventTime\": \"$DATE\",\"eventName\": \
|
||||
\"Agent started onboarding process to cloud management\",\"eventSeverity\": \"Info\",\"eventPriority\": \
|
||||
\"Urgent\",\"eventLogLevel\": \"info\",\"eventType\": \"Event Driven\",\"eventLevel\": \"Log\",\"eventAudience\": \
|
||||
@@ -171,7 +173,9 @@ send_notification_to_the_fog()
|
||||
sleep 5
|
||||
upload_res=$(curl -o /dev/null -s -w "%{http_code}\n" --request POST "$var_fog/api/v1/agents/events/bulk" \
|
||||
-H "X-Trace-Id:${correlation_id}" --header "Authorization: Bearer ${ra_token}" \
|
||||
--header "user-agent: Infinity Next (a7030abf93a4c13)" --header "Content-Type: application/json" \
|
||||
--header "user-agent: Infinity Next (a7030abf93a4c13)" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "x-rate-limit-product-type: openappsec" \
|
||||
--data "{\"logs\": [{\"log\": {\"eventTime\": \"$DATE\",\"eventName\": \
|
||||
\"Agent started onboarding process to cloud management\",\"eventSeverity\": \"Info\",\"eventPriority\": \
|
||||
\"Urgent\",\"eventLogLevel\": \"info\",\"eventType\": \"Event Driven\",\"eventLevel\": \"Log\",\
|
||||
|
@@ -924,6 +924,8 @@ install_orchestration()
|
||||
cp_exec "ln -sf /storage/nano_agent${USR_LIB_PATH}/cpnano ${USR_LIB_PATH}/cpnano"
|
||||
cp_exec "mkdir -p /storage/nano_agent/${FILESYSTEM_PATH}"
|
||||
cp_exec "ln -sf /storage/nano_agent/${FILESYSTEM_PATH} ${FILESYSTEM_PATH}"
|
||||
cp_copy smb_egg/nano-egg-internal /opt/fw1/bin/nano-egg-internal
|
||||
chmod +x /opt/fw1/bin/nano-egg-internal
|
||||
fi
|
||||
${INSTALL_COMMAND} lib/*.so* ${USR_LIB_PATH}/cpnano${VS_LIB_SUB_FOLDER}/
|
||||
${INSTALL_COMMAND} lib/boost/*.so* ${USR_LIB_PATH}/cpnano${VS_LIB_SUB_FOLDER}/
|
||||
|
Reference in New Issue
Block a user