Skip to content
Success

Changes

Summary

  1. Introduce authorization checks in the Session API (commit: dab4465) (details)
  2. Lint checking fixes (commit: a918712) (details)
  3. Make the sensiNact build more CI friendly (commit: 75ebfda) (details)
Commit dab44654a9e8802733cd6c986080180e43732073 by timothyjward
Introduce authorization checks in the Session API

* Include a configurable default fallback to allow all, allow authenticated only, or forbid all
* Apply as many checks as possible prior to accessing the gateway thread

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: dab4465)
The file was modifiednorthbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/DescriptionsTest.java
The file was addednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngineTests.java
The file was modifieddistribution/features/timescale-history-provider-feature/src/it/resources/config/configuration.json
The file was modifiednorthbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/notification/ResourceNotificationsTest.java
The file was addednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultAuthPolicy.java
The file was modifiednorthbound/session/session-impl/pom.xml
The file was addednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/AllowAllAuthorizer.java
The file was addednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DenyAllAuthorizer.java
The file was modifiedsouthbound/mqtt/mqtt-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/mqtt/factory/integration/MqttDeviceFactoryTest.java
The file was modifiedsouthbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryParallelQueries.java
The file was modifiednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SessionManager.java
The file was modifiednorthbound/query-handler/integration-test.bndrun
The file was modifieddistribution/features/northbound-oidc-authenticator-feature/src/it/resources/config/configuration.json
The file was modifiednorthbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/ResourceAccessTest.java
The file was modifiedsouthbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryTest.java
The file was modifiednorthbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/WebSocketTest.java
The file was modifiednorthbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/AbstractIntegrationTest.java
The file was modifiedcore/impl/integration-test.bndrun
The file was modifiednorthbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/ObservationHistoryTest.java
The file was modifiednorthbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/SecureWebSocketTest.java
The file was modifiedsouthbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryAuthTest.java
The file was modifiedsouthbound/virtual/virtual-temperature-sensor/integration-test.bndrun
The file was modifiednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SensinactSessionTest.java
The file was addednorthbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/AuthorizationEngine.java
The file was modifieddistribution/features/virtual-temperature-sensor-feature/src/it/resources/config/configuration.json
The file was addednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngine.java
The file was modifiedsouthbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactorySSLTest.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/command/impl/GatewayThreadImpl.java
The file was modifiednorthbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/MissingEntityTest.java
The file was modifiednorthbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/MissingEntityTest.java
The file was modifiednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java
The file was modifiednorthbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/DescriptionsTest.java
The file was modifiedpom.xml
The file was addednorthbound/session/session-impl/integration-test.bndrun
The file was modifiedsouthbound/http/http-device-factory/integration-test.bndrun
The file was modifiednorthbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/ResourceAccessTest.java
The file was modifiednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java
The file was modifiedsouthbound/virtual/virtual-temperature-sensor/src/test/java/org/eclipse/sensinact/gateway/southbound/virtual/temperature/integration/TemperatureSensorTest.java
The file was modifiednorthbound/rest/src/main/java/org/eclipse/sensinact/northbound/rest/impl/RestAccessApplication.java
The file was addednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/TestUserInfo.java
The file was modifiednorthbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/SecureAccessTest.java
Commit a918712bbc5a330cc4b6bd4170ea0479c94087e4 by timothyjward
Lint checking fixes

Spacing tidy up and adding a missing license header

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: a918712)
The file was modifiednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngineTests.java
The file was modifiednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SensinactSessionTest.java
The file was modifiednorthbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/AuthorizationEngine.java
The file was modifiednorthbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/ObservationHistoryTest.java
The file was modifiednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java
The file was modifiednorthbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/SecureAccessTest.java
The file was modifiednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngine.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/twin/SensinactProvider.java
The file was modifiednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java
The file was modifiednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultAuthPolicy.java
The file was modifiednorthbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/ResourceAccessTest.java
The file was modifiednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SessionManager.java
The file was modifiednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/AllowAllAuthorizer.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/nexus/ModelNexus.java
The file was modifiednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/TestUserInfo.java
The file was modifiednorthbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/AbstractIntegrationTest.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/twin/impl/SensinactDigitalTwinImpl.java
The file was modifiednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DenyAllAuthorizer.java
The file was modifieddistribution/features/virtual-temperature-sensor-feature/src/it/resources/config/configuration.json
Commit 75ebfda3a5ea0244bc69ec2309a7c7015144a84c by timothyjward
Make the sensiNact build more CI friendly

Since Maven 3.5.0 poms have had the ability to be [CI-friendly](https://maven.apache.org/maven-ci-friendly.html) allowing a more flexible approach to releasing without the need to edit POM files. This also impacts the creation of our feature files, which can now flexibly alter the versions of the bundles they deploy to match what's being built in by CI. The end result should be a much simpler time when we want to tag or release any particular commit.

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: 75ebfda)
The file was modifiednorthbound/sensorthings/mqtt/pom.xml
The file was modifieddistribution/features/jakarta-rest-whiteboard-feature/pom.xml
The file was modifiednorthbound/filters/ldap/pom.xml
The file was modifiedsouthbound/virtual/pom.xml
The file was modifiedcore/api/pom.xml
The file was modifiednorthbound/rest/pom.xml
The file was modifiednorthbound/security/openid-connect/pom.xml
The file was modifiedcore/models/provider/pom.xml
The file was modifieddistribution/features/core-feature/src/main/resources/core-feature.json
The file was modifieddistribution/features/jakarta-rest-whiteboard-feature/src/main/resources/jakarta-rest-whiteboard-feature.json
The file was modifieddistribution/features/jakarta-servlet-whiteboard-feature/src/main/resources/jakarta-servlet-whiteboard-feature.json
The file was modifiedsensinact-bom/pom.xml
The file was modifiedsouthbound/history/timescale-provider/pom.xml
The file was modifieddistribution/features/northbound-websocket-feature/src/main/resources/northbound-websocket-feature.json
The file was modifiednorthbound/session/session-api/pom.xml
The file was modifieddistribution/features/core-feature/pom.xml
The file was modifiednorthbound/sensorthings/rest.gateway/pom.xml
The file was modifiednorthbound/session/session-impl/pom.xml
The file was modifiedsouthbound/device-factory/pom.xml
The file was modifiednorthbound/filters/filters.core/pom.xml
The file was modifieddistribution/features/northbound-rest-feature/pom.xml
The file was modifiedexamples/writable/pom.xml
The file was modifiednorthbound/filters/pom.xml
The file was modifieddistribution/features/timescale-history-provider-feature/pom.xml
The file was modifiedexamples/notification/pom.xml
The file was modifiednorthbound/query-handler/pom.xml
The file was modifiedcore/models/metadata/pom.xml
The file was modifiedexamples/pom.xml
The file was modifiednorthbound/websocket/pom.xml
The file was modifiedsouthbound/http/pom.xml
The file was modifiedsouthbound/history/history-api/pom.xml
The file was modifiednorthbound/session/pom.xml
The file was modifieddistribution/features/gogo-shell-feature/pom.xml
The file was modifieddistribution/features/northbound-rest-feature/src/main/resources/northbound-rest-feature.json
The file was modifiedsouthbound/device-factory/device-factory-core/pom.xml
The file was modifieddistribution/features/gogo-shell-feature/src/main/resources/gogo-shell-feature.json
The file was modifiedcore/annotation/pom.xml
The file was modifieddistribution/pom.xml
The file was modifieddistribution/features/northbound-ogc-sensorthings-mqtt-feature/pom.xml
The file was modifiedsouthbound/device-factory/parser-csv/pom.xml
The file was modifiedsouthbound/http/http-device-factory/pom.xml
The file was modifiednorthbound/sensorthings/pom.xml
The file was modifiedsouthbound/mqtt/pom.xml
The file was modifiedsouthbound/mqtt/mqtt-client/pom.xml
The file was modifiedexamples/generic/pom.xml
The file was modifieddistribution/features/northbound-ogc-sensorthings-feature/src/main/resources/northbound-ogc-sensorthings-feature.json
The file was modifiedsouthbound/mqtt/mqtt-device-factory/pom.xml
The file was modifiednorthbound/sensorthings/dto/pom.xml
The file was modifieddistribution/features/jakarta-servlet-whiteboard-feature/pom.xml
The file was modifiednorthbound/sensorthings/filter/pom.xml
The file was modifieddistribution/test-utils/pom.xml
The file was modifiedexamples/model-based/pom.xml
The file was modifiednorthbound/gogo-shell/pom.xml
The file was modifiedsouthbound/http/http-callback-whiteboard/pom.xml
The file was modifieddistribution/launcher/pom.xml
The file was modifiednorthbound/pom.xml
The file was modifieddistribution/features/timescale-history-provider-feature/src/main/resources/timescale-history-provider-feature.json
The file was modifieddistribution/features/pom.xml
The file was modifiednorthbound/security/security-api/pom.xml
The file was modifiednorthbound/sensorthings/rest.api/pom.xml
The file was modifieddistribution/features/virtual-temperature-sensor-feature/pom.xml
The file was modifiedexamples/pull-based/pom.xml
The file was modifieddistribution/features/northbound-websocket-feature/pom.xml
The file was modifiedpom.xml
The file was modifieddistribution/features/northbound-oidc-authenticator-feature/src/main/resources/northbound-oidc-authenticator-feature.json
The file was modifiedexamples/reflective/pom.xml
The file was modifieddistribution/features/northbound-ogc-sensorthings-feature/pom.xml
The file was modifieddistribution/assembly/pom.xml
The file was modifiedcore/emf-api/pom.xml
The file was modifiedcore/models/pom.xml
The file was modifieddistribution/features/northbound-oidc-authenticator-feature/pom.xml
The file was modifiedexamples/push-based/pom.xml
The file was modifiedcore/impl/pom.xml
The file was modifiedcore/pom.xml
The file was modifiedexamples/action/pom.xml
The file was modifiedsouthbound/device-factory/parser-json/pom.xml
The file was modifiedsouthbound/history/pom.xml
The file was modifiedsouthbound/pom.xml
The file was modifieddistribution/features/virtual-temperature-sensor-feature/src/main/resources/virtual-temperature-sensor-feature.json
The file was modifiedsouthbound/virtual/virtual-temperature-sensor/pom.xml
The file was modifiedcore/geo-json/pom.xml
The file was modifiednorthbound/security/pom.xml
The file was modifieddistribution/features/northbound-ogc-sensorthings-mqtt-feature/src/main/resources/northbound-ogc-sensorthings-mqtt-feature.json