-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into hardening/orion-mongodb-7.0
- Loading branch information
Showing
559 changed files
with
31,785 additions
and
12,920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Publish Docker image (master) | ||
|
||
# The workflow will push images for master on every merge | ||
# Ideally, this should be done at dockerhub, but it doesn't support secrets (see https://stackoverflow.com/questions/78446824/use-environment-variables-with-sensible-information-in-docker-hub-autobuild) | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_TEF_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TEF_TOKEN }} | ||
|
||
- name: Build Docker image | ||
run: | | ||
export TOKEN=${{ secrets.REPO_ACCESS_TOKEN }} | ||
docker build -t telefonicaiot/fiware-orion:latest --build-arg GIT_REV_ORION=master --secret id=repo_token,env=TOKEN --no-cache -f docker/Dockerfile . | ||
- name: Push Docker image | ||
run: docker push telefonicaiot/fiware-orion:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Publish Docker image (tag) | ||
|
||
# The workflow will push images on every tag in the format x.y.z | ||
# Ideally, this should be done at dockerhub, but it doesn't support secrets (see https://stackoverflow.com/questions/78446824/use-environment-variables-with-sensible-information-in-docker-hub-autobuild) | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_TEF_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TEF_TOKEN }} | ||
|
||
- name: Extract version from tag | ||
id: extract_version | ||
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
||
- name: Build Docker image | ||
run: | | ||
export TOKEN=${{ secrets.REPO_ACCESS_TOKEN }} | ||
docker build -t telefonicaiot/fiware-orion:${{ env.VERSION }} --build-arg GIT_REV_ORION=${{ env.VERSION }} --secret id=repo_token,env=TOKEN --no-cache -f docker/Dockerfile . | ||
- name: Push Docker image | ||
run: docker push telefonicaiot/fiware-orion:${{ env.VERSION }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
- Add: servicePath field to builtin attributes (#2877) | ||
- Add: notification.mqtt.retain and notification.mqttCustom.retain flag for MQTT retain in notifications (#4388) | ||
- Fix: correctly detect JSON attribute and metadata value changes in subscription triggering logic (#4211, #4434, #643) | ||
- Fix: DateTime and geo:json types were not supported in custom notifications using ngsi patching (#4435) | ||
- Fix: logDeprecate not working correctly (`geo:json` wrongly considered as deprecated) | ||
- Fix: improve error traces (#4387) | ||
- Add: CLI parameter -dbUri / env var ORION_MONGO_URI (#3794) | ||
- Fix: improve logs in MongoDB query logic | ||
- Upgrade Debian version from 11.6 to 12.1 in Dockerfile | ||
- Hardening: upgrade libmongoc dependency from 1.23.1 to 1.24.3 | ||
- Reference MongoDB version changed from 4.4 to 6.0 | ||
- Reference distribution changed from Debian 11 to Debian 12 | ||
- Add: custom notification ngsi patching evaluation priority based in evalPriority builtin metadata (#4556) | ||
- Add: attribute metadata to JEXL context (#4594, #4560) | ||
- Fix: $max and $min operators were not supported with DateTime attributes (#4585) | ||
- Fix: wrong date values should not allowed in subscription's expires field (#4541) | ||
- Fix: do not raise DB alarm in case of wrong GeoJSON in client request | ||
- Fix: metadata modifications are not considered as change (with regards to subscription alterationTypes) if notifyOnMetadataChange is false (#4605) | ||
- Upgrade cjexl version from 0.3.0 to 0.4.0 (new transformations: now, getTime and toIsoString) | ||
- Upgrade Debian version from 12.4 to 12.6 in Dockerfile | ||
- Fix: invalid date in expires field of subscription (#2303) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,10 @@ PROJECT(contextBroker) | |
# find_package() for mongo driver doesn't work with cmake 2 | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
# set C++14 standard | ||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# | ||
# DEBUG or RELEASE build ? | ||
# | ||
|
@@ -183,8 +187,8 @@ ENDIF() | |
|
||
SET (ORION_LIBS | ||
common | ||
serviceRoutines | ||
serviceRoutinesV2 | ||
serviceRoutines | ||
ngsiNotify | ||
rest # verbName(Verb) from [email protected]; jsonRequestTreat from [email protected]; | ||
jsonParse | ||
|
@@ -204,6 +208,7 @@ SET (ORION_LIBS | |
common | ||
alarmMgr | ||
metricsMgr | ||
expressions | ||
logSummary | ||
lm | ||
pa | ||
|
@@ -229,12 +234,28 @@ SET (BOOST_MT | |
# SET for common static libs. We use 1.24.3 as reference version. | ||
find_package (mongoc-1.0 1.24.3 EXACT) | ||
|
||
# Is cjexl lib available? | ||
find_library (HAVE_CJEXL cjexl PATHS /usr/lib /usr/lib64 /usr/local/lib64 /usr/local/lib) | ||
if (HAVE_CJEXL) | ||
message("Using cjexl") | ||
SET (COMMON_STATIC_LIBS | ||
microhttpd.a | ||
mosquitto.a | ||
${HAVE_CJEXL} | ||
mongo::mongoc_static | ||
) | ||
else (HAVE_CJEXL) | ||
message("Not using cjexl") | ||
add_definitions(-DEXPR_BASIC) | ||
SET (COMMON_STATIC_LIBS | ||
microhttpd.a | ||
mosquitto.a | ||
mongo::mongoc_static | ||
) | ||
endif (HAVE_CJEXL) | ||
|
||
# Static libs common to contextBroker and unitTest binaries | ||
SET (COMMON_STATIC_LIBS | ||
microhttpd.a | ||
mosquitto.a | ||
mongo::mongoc_static | ||
) | ||
|
||
|
||
SET (DYNAMIC_LIBS | ||
curl | ||
|
@@ -264,7 +285,6 @@ endif (UNIT_TEST) | |
# | ||
include_directories("/usr/include") | ||
|
||
|
||
# Needed for the new C driver | ||
include_directories("/usr/local/include/libmongoc-1.0") | ||
include_directories("/usr/local/include/libbson-1.0") | ||
|
@@ -285,13 +305,13 @@ link_directories("/usr/lib/x86_64-linux-gnu") | |
# | ||
# Enabling test harness | ||
# | ||
if (UNIT_TEST) | ||
if (COVERAGE AND NOT UNIT_TEST) | ||
ENABLE_TESTING() | ||
INCLUDE(Dart) | ||
SET (CMAKE_TEST_TIMEOUT 60) | ||
SET (DART_TIMEOUT 60) | ||
#ADD_SUBDIRECTORY(test/harness) | ||
endif (UNIT_TEST) | ||
ADD_SUBDIRECTORY(test/functionalTest/cases) | ||
endif (COVERAGE AND NOT UNIT_TEST) | ||
|
||
# | ||
# Continuing if OK | ||
|
@@ -319,6 +339,7 @@ if (error EQUAL 0) | |
ADD_SUBDIRECTORY(src/lib/cache) | ||
ADD_SUBDIRECTORY(src/lib/alarmMgr) | ||
ADD_SUBDIRECTORY(src/lib/metricsMgr) | ||
ADD_SUBDIRECTORY(src/lib/expressions) | ||
ADD_SUBDIRECTORY(src/lib/logSummary) | ||
ADD_SUBDIRECTORY(src/lib/mqtt) | ||
ADD_SUBDIRECTORY(src/app/contextBroker) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
After 6 years without touching this directory, we are purging it for Orion 4.0.0 release. If you want to get its content check [the previous version GitHub tree](https://github.com/telefonicaid/fiware-orion/tree/3.12.0/archive). |
Oops, something went wrong.