This is an automated email from the ASF dual-hosted git repository.
sergehuber pushed a change to branch
hardening/credentials-profile-binding-privileged-rest
in repository https://gitbox.apache.org/repos/asf/unomi.git
omit 7883f98b8 Require authentication for GraphQL WebSocket upgrade
new bb2bffe92 Hardening: require explicit passwords and tighten public
profile binding
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (7883f98b8)
\
N -- N -- N
refs/heads/hardening/credentials-profile-binding-privileged-rest (bb2bffe92)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
SECURITY.md | 22 +-
THREAT_MODEL.md | 152 +++++-----
docker/README.md | 18 +-
docker/src/main/docker/docker-compose-build-es.yml | 2 +
docker/src/main/docker/docker-compose-build-os.yml | 2 +
docker/src/main/docker/docker-compose-cluster.yml | 4 +
docker/src/main/docker/docker-compose-es.yml | 3 +
docker/src/main/docker/docker-compose-os.yml | 3 +
docker/src/main/docker/entrypoint.sh | 30 ++
.../karaf-kar/src/main/feature/feature.xml | 2 +
extensions/groovy-actions/rest/pom.xml | 10 +
.../groovy/actions/rest/GroovyActionsEndPoint.java | 5 +
.../rest/GroovyActionsEndPointRoleTest.java} | 28 +-
.../src/main/feature/feature.xml | 2 +
extensions/router/router-rest/pom.xml | 10 +
.../rest/ExportConfigurationServiceEndPoint.java | 3 +
.../rest/ImportConfigurationServiceEndPoint.java | 3 +
.../rest/RouterConfigurationEndPointRoleTest.java | 44 +++
.../unomi/graphql/servlet/GraphQLServlet.java | 9 +-
.../auth/GraphQLServletSecurityValidator.java | 19 --
.../servlet/websocket/SubscriptionWebSocket.java | 96 ++-----
.../websocket/SubscriptionWebSocketFactory.java | 24 +-
.../auth/GraphQLServletSecurityValidatorTest.java | 34 ---
.../test/java/org/apache/unomi/itests/AllITs.java | 2 +
.../test/java/org/apache/unomi/itests/BaseIT.java | 6 +
.../test/java/org/apache/unomi/itests/BasicIT.java | 29 +-
.../org/apache/unomi/itests/ContextServletIT.java | 317 +++++++++++++++++++--
.../apache/unomi/itests/CorePersistenceITs.java | 2 +
.../org/apache/unomi/itests/HealthCheckIT.java | 11 +-
.../org/apache/unomi/itests/ProfileMergeIT.java | 65 +++++
.../unomi/itests/PropertiesUpdateActionIT.java | 76 +++++
.../unomi/itests/RestEndpointRoleSecurityIT.java | 177 ++++++++++++
.../java/org/apache/unomi/itests/TenantIT.java | 8 +-
.../apache/unomi/itests/V2CompatibilityModeIT.java | 4 +-
.../apache/unomi/itests/graphql/BaseGraphQLIT.java | 2 +-
.../unomi/itests/graphql/GraphQLWebSocketIT.java | 75 +----
itests/src/test/resources/etc/users.properties | 4 +-
manual/src/main/asciidoc/configuration.adoc | 38 ++-
manual/src/main/asciidoc/getting-started.adoc | 25 +-
package/src/main/resources/bin/setenv | 44 +++
package/src/main/resources/bin/setenv.bat | 43 +++
.../main/resources/etc/custom.system.properties | 8 +-
package/src/main/resources/etc/users.properties | 6 +-
.../actions/MergeProfilesOnPropertyAction.java | 29 ++
.../baseplugin/actions/UpdatePropertiesAction.java | 27 ++
.../resources/OSGI-INF/blueprint/blueprint.xml | 1 +
.../actions/MergeProfilesOnPropertyActionTest.java | 137 +++++++++
.../actions/UpdatePropertiesActionTest.java | 123 ++++++++
.../rest/service/impl/RestServiceUtilsImpl.java | 130 ++++++---
.../config/ShippedAdminPasswordConfigTest.java | 124 ++++++++
.../RestServiceUtilsImplProfileBindingTest.java | 213 ++++++++++++++
.../org/apache/unomi/web/servlets/WebConfig.java | 2 +-
.../src/main/resources/org.apache.unomi.web.cfg | 2 +-
53 files changed, 1855 insertions(+), 400 deletions(-)
copy
extensions/{json-schema/services/src/main/java/org/apache/unomi/schema/api/ValidationException.java
=>
groovy-actions/rest/src/test/java/org/apache/unomi/groovy/actions/rest/GroovyActionsEndPointRoleTest.java}
(51%)
create mode 100644
extensions/router/router-rest/src/test/java/org/apache/unomi/router/rest/RouterConfigurationEndPointRoleTest.java
create mode 100644
itests/src/test/java/org/apache/unomi/itests/RestEndpointRoleSecurityIT.java
create mode 100644
plugins/baseplugin/src/test/java/org/apache/unomi/plugins/baseplugin/actions/MergeProfilesOnPropertyActionTest.java
create mode 100644
plugins/baseplugin/src/test/java/org/apache/unomi/plugins/baseplugin/actions/UpdatePropertiesActionTest.java
create mode 100644
rest/src/test/java/org/apache/unomi/rest/config/ShippedAdminPasswordConfigTest.java
create mode 100644
rest/src/test/java/org/apache/unomi/rest/service/impl/RestServiceUtilsImplProfileBindingTest.java