Skip to content
Success

Changes

Summary

  1. Move the UserInfo into northbound security (commit: e12ff02) (details)
  2. Core API Fixes (commit: c7f9438) (details)
  3. Introduce authorization checks in the Session API (commit: dab4465) (details)
  4. Lint checking fixes (commit: a918712) (details)
Commit e12ff02a458d6d4baabc708d5ac8deb1cc0e7e11 by Tim Ward
Move the UserInfo into northbound security

The User Info class belongs with the northbound security API which is a factory for it

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: e12ff02)
The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/ResourceAccessTest.java
The file was addednorthbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/UserInfo.java
The file was modified northbound/rest/src/main/java/org/eclipse/sensinact/northbound/rest/impl/AuthenticationFilter.java
The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SensinactSessionTest.java
The file was modified southbound/virtual/virtual-temperature-sensor/integration-test.bndrun
The file was modified northbound/sensorthings/rest.gateway/integration-test.bndrun
The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/MissingEntityTest.java
The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryParallelQueries.java
The file was modified southbound/mqtt/mqtt-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/mqtt/factory/integration/MqttDeviceFactoryTest.java
The file was modified northbound/security/openid-connect/integration-test.bndrun
The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java
The file was modified northbound/sensorthings/rest.gateway/src/main/java/org/eclipse/sensinact/sensorthings/sensing/rest/impl/SensinactSessionProvider.java
The file was modified distribution/features/northbound-ogc-sensorthings-feature/src/main/resources/northbound-ogc-sensorthings-feature.json
The file was modified northbound/session/session-api/pom.xml
The file was modified northbound/session/session-api/src/main/java/org/eclipse/sensinact/northbound/session/SensiNactSession.java
The file was modified distribution/features/northbound-ogc-sensorthings-feature/pom.xml
The file was addednorthbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/package-info.java
The file was modified distribution/features/northbound-rest-feature/pom.xml
The file was modified northbound/security/openid-connect/src/main/java/org/eclipse/sensinact/gateway/northbound/security/oidc/OIDCTokenValidator.java
The file was modified northbound/websocket/pom.xml
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java
The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactorySSLTest.java
The file was modified distribution/features/northbound-ogc-sensorthings-mqtt-feature/pom.xml
The file was modified distribution/features/northbound-rest-feature/src/main/resources/northbound-rest-feature.json
The file was modified northbound/rest/src/main/java/org/eclipse/sensinact/northbound/rest/impl/SensinactSessionProvider.java
The file was modified northbound/security/openid-connect/pom.xml
The file was removednorthbound/security/authentication-api/src/main/java/org/eclipse/sensinact/northbound/security/api/package-info.java
The file was modified southbound/virtual/virtual-temperature-sensor/src/test/java/org/eclipse/sensinact/gateway/southbound/virtual/temperature/integration/TemperatureSensorTest.java
The file was removedcore/api/src/main/java/org/eclipse/sensinact/core/security/UserInfo.java
The file was modified distribution/features/northbound-oidc-authenticator-feature/pom.xml
The file was modified northbound/security/openid-connect/src/main/java/org/eclipse/sensinact/gateway/northbound/security/oidc/JwsUserInfo.java
The file was addednorthbound/security/security-api/pom.xml
The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/AbstractIntegrationTest.java
The file was modified northbound/session/session-api/src/main/java/org/eclipse/sensinact/northbound/session/SensiNactSessionManager.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/ResourceAccessTest.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SessionManager.java
The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/DescriptionsTest.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/SecureAccessTest.java
The file was modified distribution/features/northbound-oidc-authenticator-feature/src/main/resources/northbound-oidc-authenticator-feature.json
The file was modified northbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/SecureWebSocketTest.java
The file was removedcore/api/src/main/java/org/eclipse/sensinact/core/security/package-info.java
The file was removednorthbound/security/authentication-api/src/main/java/org/eclipse/sensinact/northbound/security/api/Authenticator.java
The file was modified northbound/websocket/integration-test.bndrun
The file was modified southbound/mqtt/mqtt-device-factory/integration-test.bndrun
The file was modified distribution/features/northbound-ogc-sensorthings-mqtt-feature/src/main/resources/northbound-ogc-sensorthings-mqtt-feature.json
The file was modified northbound/query-handler/integration-test.bndrun
The file was modified northbound/rest/pom.xml
The file was addednorthbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/Authenticator.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/notification/ResourceNotificationsTest.java
The file was removednorthbound/security/authentication-api/pom.xml
The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryAuthTest.java
The file was modified northbound/websocket/src/main/java/org/eclipse/sensinact/northbound/ws/impl/WebSocketCreator.java
The file was modified northbound/rest/integration-test.bndrun
The file was modified northbound/websocket/src/main/java/org/eclipse/sensinact/northbound/ws/impl/WebSocketJettyRegistrar.java
The file was modified southbound/http/http-device-factory/integration-test.bndrun
The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryTest.java
The file was modified northbound/security/pom.xml
The file was modified northbound/security/openid-connect/src/test/java/org/eclipse/sensinact/gateway/northbound/security/oidc/integration/ValidatorTest.java
Commit c7f94386cee262f70680d93d1d9707b5d314e561 by Tim Ward
Core API Fixes
* Add Model Package URI to the SensinactProvider
* Return a TimedValue for SensinactResource metadata values
* Filter provider snapshots before applying location filtering to reduce the number of heavy geofilter calculations

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: c7f9438)
The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/model/nexus/ModelNexus.java
The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/twin/impl/SensinactDigitalTwinImpl.java
The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/twin/impl/SensinactResourceImpl.java
The file was modified core/api/src/main/java/org/eclipse/sensinact/core/notification/LifecycleNotification.java
The file was modified core/api/src/main/java/org/eclipse/sensinact/core/twin/SensinactProvider.java
The file was modified core/api/src/main/java/org/eclipse/sensinact/core/twin/SensinactResource.java
The file was modified northbound/session/session-api/src/main/java/org/eclipse/sensinact/northbound/session/SensiNactSession.java
The file was modified northbound/gogo-shell/src/main/java/org/eclipse/sensinact/gateway/commands/gogo/MetaCommands.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java
The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/twin/impl/SensinactProviderImpl.java
Commit dab44654a9e8802733cd6c986080180e43732073 by Tim Ward
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 modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/DescriptionsTest.java
The file was modified northbound/rest/src/main/java/org/eclipse/sensinact/northbound/rest/impl/RestAccessApplication.java
The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryParallelQueries.java
The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactorySSLTest.java
The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/ResourceAccessTest.java
The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/ObservationHistoryTest.java
The file was modified southbound/virtual/virtual-temperature-sensor/src/test/java/org/eclipse/sensinact/gateway/southbound/virtual/temperature/integration/TemperatureSensorTest.java
The file was addednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultAuthPolicy.java
The file was modified northbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/WebSocketTest.java
The file was modified northbound/session/session-impl/pom.xml
The file was addednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DenyAllAuthorizer.java
The file was modified southbound/http/http-device-factory/integration-test.bndrun
The file was modified southbound/mqtt/mqtt-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/mqtt/factory/integration/MqttDeviceFactoryTest.java
The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/AbstractIntegrationTest.java
The file was modified distribution/features/virtual-temperature-sensor-feature/src/it/resources/config/configuration.json
The file was modified southbound/virtual/virtual-temperature-sensor/integration-test.bndrun
The file was addednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngineTests.java
The file was addednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/TestUserInfo.java
The file was modified northbound/query-handler/integration-test.bndrun
The file was modified core/impl/integration-test.bndrun
The file was modified distribution/features/northbound-oidc-authenticator-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 modified distribution/features/timescale-history-provider-feature/src/it/resources/config/configuration.json
The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/MissingEntityTest.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/MissingEntityTest.java
The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SensinactSessionTest.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/SecureAccessTest.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/notification/ResourceNotificationsTest.java
The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryTest.java
The file was addednorthbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/AllowAllAuthorizer.java
The file was modified pom.xml
The file was addednorthbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/AuthorizationEngine.java
The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/command/impl/GatewayThreadImpl.java
The file was modified northbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/SecureWebSocketTest.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/DescriptionsTest.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/ResourceAccessTest.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SessionManager.java
The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryAuthTest.java
The file was addednorthbound/session/session-impl/integration-test.bndrun
The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java
Commit a918712bbc5a330cc4b6bd4170ea0479c94087e4 by Tim Ward
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 modified core/impl/src/main/java/org/eclipse/sensinact/core/twin/impl/SensinactDigitalTwinImpl.java
The file was modified core/api/src/main/java/org/eclipse/sensinact/core/twin/SensinactProvider.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DenyAllAuthorizer.java
The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SensinactSessionTest.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/AllowAllAuthorizer.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultAuthPolicy.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/SecureAccessTest.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java
The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/ObservationHistoryTest.java
The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/AbstractIntegrationTest.java
The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/TestUserInfo.java
The file was modified northbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/AuthorizationEngine.java
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SessionManager.java
The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngineTests.java
The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java
The file was modified distribution/features/virtual-temperature-sensor-feature/src/it/resources/config/configuration.json
The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngine.java
The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/ResourceAccessTest.java
The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/model/nexus/ModelNexus.java