diff --git a/cmake/modules/plugins.cmake b/cmake/modules/plugins.cmake index 9d215e72dbc..d60ef31f29c 100644 --- a/cmake/modules/plugins.cmake +++ b/cmake/modules/plugins.cmake @@ -13,22 +13,26 @@ include(ExternalProject) +# 'stable' or 'dev' +set(PLUGINS_DOWNLOAD_BUCKET "dev") + string(TOLOWER ${CMAKE_HOST_SYSTEM_NAME} PLUGINS_SYSTEM_NAME) if(NOT DEFINED PLUGINS_COMPONENT_NAME) set(PLUGINS_COMPONENT_NAME "${CMAKE_PROJECT_NAME}-plugins") endif() -set(PLUGIN_K8S_AUDIT_VERSION "0.5.0") +# k8saudit +set(PLUGIN_K8S_AUDIT_VERSION "0.5.3-0.5.3-24%2Bbec2147") if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") - set(PLUGIN_K8S_AUDIT_HASH "c4abb288df018940be8e548340a74d39623b69142304e01523ea189bc698bc80") + set(PLUGIN_K8S_AUDIT_HASH "b564b844e8e7caa89ceb1c75a6d6f1eda60e1d8ed3e14d8277101a883cc37b29") else() # aarch64 - set(PLUGIN_K8S_AUDIT_HASH "3bcc849d9f95a3fa519b4592d0947149e492b530fb935a3f98f098e234b7baa7") + set(PLUGIN_K8S_AUDIT_HASH "c8b02dfb5166e7305fa259701cdd72c13b8e2060d4233a2e2c5ff819347b5b79") endif() ExternalProject_Add( k8saudit-plugin - URL "https://download.falco.org/plugins/stable/k8saudit-${PLUGIN_K8S_AUDIT_VERSION}-${PLUGINS_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz" + URL "https://download.falco.org/plugins/${PLUGINS_DOWNLOAD_BUCKET}/k8saudit-${PLUGIN_K8S_AUDIT_VERSION}-${PLUGINS_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz" URL_HASH "SHA256=${PLUGIN_K8S_AUDIT_HASH}" CONFIGURE_COMMAND "" BUILD_COMMAND "" @@ -38,24 +42,25 @@ install(FILES "${PROJECT_BINARY_DIR}/k8saudit-plugin-prefix/src/k8saudit-plugin/ ExternalProject_Add( k8saudit-rules - URL "https://download.falco.org/plugins/stable/k8saudit-rules-${PLUGIN_K8S_AUDIT_VERSION}.tar.gz" - URL_HASH "SHA256=4383c69ba0ad63a127667c05618c37effc5297e6a7e68a1492acb0e48386540e" + URL "https://download.falco.org/plugins/${PLUGINS_DOWNLOAD_BUCKET}/k8saudit-rules-${PLUGIN_K8S_AUDIT_VERSION}.tar.gz" + URL_HASH "SHA256=73bcd40198b0b2fa4206b0a10d96528df8277935af99044fabf5f6cf31a978d7" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "") install(FILES "${PROJECT_BINARY_DIR}/k8saudit-rules-prefix/src/k8saudit-rules/k8s_audit_rules.yaml" DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${PLUGINS_COMPONENT_NAME}") -set(PLUGIN_CLOUDTRAIL_VERSION "0.7.0") +# cloudtrail +set(PLUGIN_CLOUDTRAIL_VERSION "0.7.3-0.7.3-24%2Bbec2147") if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") - set(PLUGIN_CLOUDTRAIL_HASH "85d94d8f5915804d5a30ff2f056e51de27d537f1fd1115050b4f4be6d32588cf") + set(PLUGIN_CLOUDTRAIL_HASH "579e02bb036a738577de6512b7fe94f98cfa2cd13eaa5e66a6edf33c122c6ea8") else() # aarch64 - set(PLUGIN_CLOUDTRAIL_HASH "61ae471ee41e76680da9ab66f583d1ec43a2e48fbad8c157caecef56e4aa5fb7") + set(PLUGIN_CLOUDTRAIL_HASH "a98f893adf4159e0b202040744ed6225a71ace962c30aaebe4d6a8f4705ae9d7") endif() ExternalProject_Add( cloudtrail-plugin - URL "https://download.falco.org/plugins/stable/cloudtrail-${PLUGIN_CLOUDTRAIL_VERSION}-${PLUGINS_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz" + URL "https://download.falco.org/plugins/${PLUGINS_DOWNLOAD_BUCKET}/cloudtrail-${PLUGIN_CLOUDTRAIL_VERSION}-${PLUGINS_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz" URL_HASH "SHA256=${PLUGIN_CLOUDTRAIL_HASH}" CONFIGURE_COMMAND "" BUILD_COMMAND "" @@ -65,24 +70,25 @@ install(FILES "${PROJECT_BINARY_DIR}/cloudtrail-plugin-prefix/src/cloudtrail-plu ExternalProject_Add( cloudtrail-rules - URL "https://download.falco.org/plugins/stable/cloudtrail-rules-${PLUGIN_CLOUDTRAIL_VERSION}.tar.gz" - URL_HASH "SHA256=c805be29ddc14fbffa29f7d6ee4f7e968a3bdb42da5f5483e5e6de273e8850c8" + URL "https://download.falco.org/plugins/${PLUGINS_DOWNLOAD_BUCKET}/cloudtrail-rules-${PLUGIN_CLOUDTRAIL_VERSION}.tar.gz" + URL_HASH "SHA256=9fef964afe2e1f10989d5656eb485990ad93d618d60aad5ba6ecd820fb647c5f" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "") - install(FILES "${PROJECT_BINARY_DIR}/cloudtrail-rules-prefix/src/cloudtrail-rules/aws_cloudtrail_rules.yaml" DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${PLUGINS_COMPONENT_NAME}") +install(FILES "${PROJECT_BINARY_DIR}/cloudtrail-rules-prefix/src/cloudtrail-rules/aws_cloudtrail_rules.yaml" DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${PLUGINS_COMPONENT_NAME}") -set(PLUGIN_JSON_VERSION "0.6.0") +# json +set(PLUGIN_JSON_VERSION "0.6.2-0.6.2-27%2Bbec2147") if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") - set(PLUGIN_JSON_HASH "15fb7eddd978e8bb03f05412e9446e264e4548d7423b3d724b99d6d87a8c1b27") + set(PLUGIN_JSON_HASH "f2833c139fa348b971cdd34e58b8570a8bac71b213613d7993951de3ead96f4d") else() # aarch64 - set(PLUGIN_JSON_HASH "4db23f35a750e10a5b7b54c9aa469a7587705e7faa22927e941b41f3c5533e9f") + set(PLUGIN_JSON_HASH "a1ff1c445be063c795fe127ca36be4553fad8954c71d94cbd879aa043eb4c549") endif() ExternalProject_Add( json-plugin - URL "https://download.falco.org/plugins/stable/json-${PLUGIN_JSON_VERSION}-${PLUGINS_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz" + URL "https://download.falco.org/plugins/${PLUGINS_DOWNLOAD_BUCKET}/json-${PLUGIN_JSON_VERSION}-${PLUGINS_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz" URL_HASH "SHA256=${PLUGIN_JSON_HASH}" CONFIGURE_COMMAND "" BUILD_COMMAND ""