[syncope] branch master updated (0c64d0d259 -> ff5bb2f002)
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git from 0c64d0d259 Keeping up with latest pac4j SNAPSHOT new 63d9cbb8e5 Upgrading maven-checkstyle-plugin new ff5bb2f002 [SYNCOPE-1724] Providing SyncopeElasticsearchHealthContributor (#404) The 2 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: .../core/starter/SyncopeCoreApplication.java | 16 +++-- .../starter/actuate/DomainsHealthIndicator.java| 8 ++- .../core/starter/actuate/EntityCacheEndpoint.java | 2 +- .../actuate/ExternalResourcesHealthIndicator.java | 25 +--- ext/elasticsearch/client-elasticsearch/pom.xml | 7 +- .../client/ElasticsearchClientContext.java | 8 +++ .../SyncopeElasticsearchHealthContributor.java | 74 ++ .../java/job/ElasticsearchReindex.java | 19 +++--- pom.xml| 4 +- 9 files changed, 135 insertions(+), 28 deletions(-) create mode 100644 ext/elasticsearch/client-elasticsearch/src/main/java/org/apache/syncope/ext/elasticsearch/client/SyncopeElasticsearchHealthContributor.java
[syncope] 01/02: Upgrading maven-checkstyle-plugin
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git commit 63d9cbb8e56539f924db3f4e4565dd27a55b8480 Author: Francesco Chicchiriccò AuthorDate: Tue Jan 17 14:23:47 2023 +0100 Upgrading maven-checkstyle-plugin --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 62cea3e12c..da8f4fd5bb 100644 --- a/pom.xml +++ b/pom.xml @@ -1669,7 +1669,7 @@ under the License. org.apache.maven.plugins maven-checkstyle-plugin - 3.2.0 + 3.2.1 com.puppycrawl.tools
[syncope] 02/02: [SYNCOPE-1724] Providing SyncopeElasticsearchHealthContributor (#404)
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git commit ff5bb2f0027919a51df65ed2f288cf30a87de682 Author: Francesco Chicchiriccò AuthorDate: Thu Jan 19 09:17:38 2023 +0100 [SYNCOPE-1724] Providing SyncopeElasticsearchHealthContributor (#404) --- .../core/starter/SyncopeCoreApplication.java | 16 +++-- .../starter/actuate/DomainsHealthIndicator.java| 8 ++- .../core/starter/actuate/EntityCacheEndpoint.java | 2 +- .../actuate/ExternalResourcesHealthIndicator.java | 25 +--- ext/elasticsearch/client-elasticsearch/pom.xml | 7 +- .../client/ElasticsearchClientContext.java | 8 +++ .../SyncopeElasticsearchHealthContributor.java | 74 ++ .../java/job/ElasticsearchReindex.java | 19 +++--- pom.xml| 2 +- 9 files changed, 134 insertions(+), 27 deletions(-) diff --git a/core/starter/src/main/java/org/apache/syncope/core/starter/SyncopeCoreApplication.java b/core/starter/src/main/java/org/apache/syncope/core/starter/SyncopeCoreApplication.java index 90aaa28943..808ecb3561 100644 --- a/core/starter/src/main/java/org/apache/syncope/core/starter/SyncopeCoreApplication.java +++ b/core/starter/src/main/java/org/apache/syncope/core/starter/SyncopeCoreApplication.java @@ -21,6 +21,7 @@ package org.apache.syncope.core.starter; import java.util.Map; import org.apache.cxf.spring.boot.autoconfigure.openapi.OpenApiAutoConfiguration; import org.apache.syncope.common.keymaster.client.api.ConfParamOps; +import org.apache.syncope.common.keymaster.client.api.DomainOps; import org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStop; import org.apache.syncope.common.lib.info.SystemInfo; import org.apache.syncope.core.persistence.api.DomainHolder; @@ -39,6 +40,8 @@ import org.apache.syncope.core.persistence.api.dao.TaskDAO; import org.apache.syncope.core.persistence.api.dao.UserDAO; import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO; import org.apache.syncope.core.provisioning.api.ConnIdBundleManager; +import org.apache.syncope.core.provisioning.api.ConnectorManager; +import org.apache.syncope.core.provisioning.api.data.ConnInstanceDataBinder; import org.apache.syncope.core.starter.actuate.DefaultSyncopeCoreInfoContributor; import org.apache.syncope.core.starter.actuate.DomainsHealthIndicator; import org.apache.syncope.core.starter.actuate.EntityCacheEndpoint; @@ -152,8 +155,8 @@ public class SyncopeCoreApplication extends SpringBootServletInitializer { @ConditionalOnMissingBean @Bean -public DomainsHealthIndicator domainsHealthIndicator() { -return new DomainsHealthIndicator(); +public DomainsHealthIndicator domainsHealthIndicator(final DomainHolder domainHolder) { +return new DomainsHealthIndicator(domainHolder); } @ConditionalOnMissingBean @@ -165,8 +168,13 @@ public class SyncopeCoreApplication extends SpringBootServletInitializer { @ConditionalOnClass(name = { "org.apache.syncope.core.logic.ResourceLogic" }) @ConditionalOnMissingBean @Bean -public ExternalResourcesHealthIndicator externalResourcesHealthIndicator() { -return new ExternalResourcesHealthIndicator(); +public ExternalResourcesHealthIndicator externalResourcesHealthIndicator( +final DomainOps domainOps, +final ExternalResourceDAO resourceDAO, +final ConnInstanceDataBinder connInstanceDataBinder, +final ConnectorManager connectorManager) { + +return new ExternalResourcesHealthIndicator(domainOps, resourceDAO, connInstanceDataBinder, connectorManager); } @ConditionalOnMissingBean diff --git a/core/starter/src/main/java/org/apache/syncope/core/starter/actuate/DomainsHealthIndicator.java b/core/starter/src/main/java/org/apache/syncope/core/starter/actuate/DomainsHealthIndicator.java index 72c136c288..53e2d8d2a8 100644 --- a/core/starter/src/main/java/org/apache/syncope/core/starter/actuate/DomainsHealthIndicator.java +++ b/core/starter/src/main/java/org/apache/syncope/core/starter/actuate/DomainsHealthIndicator.java @@ -23,7 +23,6 @@ import java.util.concurrent.atomic.AtomicReference; import org.apache.syncope.core.persistence.api.DomainHolder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.boot.actuate.health.Status; @@ -33,8 +32,11 @@ public class DomainsHealthIndicator implements HealthIndicator { protected static final Logger LOG = LoggerFactory.getLogger(DomainsHealthIndicator.class); -@Autowired -protected DomainHolder domainHolder; +protected final DomainHolder domainHolder; + +
[syncope] 02/02: Upgrading Wildfly
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git commit 5378f1ffd279e366e667bd43bca6c6c6423a872f Author: Francesco Chicchiriccò AuthorDate: Thu Jan 19 08:37:41 2023 +0100 Upgrading Wildfly --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4d2e1e564b..852d0079a8 100644 --- a/pom.xml +++ b/pom.xml @@ -500,7 +500,7 @@ under the License. ${log.directory}/cargo-output.log 9.0.71 -26.1.2.Final +26.1.3.Final 5.2022.5 2.3.14
[syncope] 01/02: Upgrading maven-checkstyle-plugin
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git commit ee78aa71f5f956d777627be64b915fb1704704b3 Author: Francesco Chicchiriccò AuthorDate: Tue Jan 17 14:23:47 2023 +0100 Upgrading maven-checkstyle-plugin --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 494e6882f2..4d2e1e564b 100644 --- a/pom.xml +++ b/pom.xml @@ -1741,7 +1741,7 @@ under the License. org.apache.maven.plugins maven-checkstyle-plugin - 3.2.0 + 3.2.1 com.puppycrawl.tools
[syncope] branch 3_0_X updated (7d53189f18 -> 5378f1ffd2)
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a change to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git from 7d53189f18 [SYNCOPE-1724] Providing SyncopeElasticsearchHealthContributor (#404) new ee78aa71f5 Upgrading maven-checkstyle-plugin new 5378f1ffd2 Upgrading Wildfly The 2 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: pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
[syncope] branch 3_0_X updated (5378f1ffd2 -> f117210f65)
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a change to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git from 5378f1ffd2 Upgrading Wildfly new e9eb68ff79 Upgrading ConnId DB bundles new f117210f65 Adding doc for actuator The 2 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: .../panels/NetworkServiceDirectoryPanel.java | 25 ++- pom.xml| 2 +- .../asciidoc/reference-guide/usage/actuator.adoc | 85 ++ src/main/asciidoc/reference-guide/usage/usage.adoc | 2 + 4 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 src/main/asciidoc/reference-guide/usage/actuator.adoc
[syncope] 02/02: Adding doc for actuator
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git commit f117210f656f1669102f3e29f440a27d94739387 Author: Francesco Chicchiriccò AuthorDate: Thu Jan 19 13:28:12 2023 +0100 Adding doc for actuator --- .../panels/NetworkServiceDirectoryPanel.java | 25 ++- .../asciidoc/reference-guide/usage/actuator.adoc | 85 ++ src/main/asciidoc/reference-guide/usage/usage.adoc | 2 + 3 files changed, 111 insertions(+), 1 deletion(-) diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/NetworkServiceDirectoryPanel.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/NetworkServiceDirectoryPanel.java index 9855f30387..b8683f3032 100644 --- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/NetworkServiceDirectoryPanel.java +++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/NetworkServiceDirectoryPanel.java @@ -23,7 +23,9 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; +import org.apache.syncope.client.console.SyncopeConsoleSession; import org.apache.syncope.client.console.commons.IdRepoConstants; +import org.apache.syncope.client.console.pages.BasePage; import org.apache.syncope.client.console.panels.NetworkServiceDirectoryPanel.NetworkServiceProvider; import org.apache.syncope.client.console.rest.SyncopeRestClient; import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink; @@ -31,7 +33,9 @@ import org.apache.syncope.client.console.wicket.markup.html.form.ActionsPanel; import org.apache.syncope.client.ui.commons.DirectoryDataProvider; import org.apache.syncope.common.keymaster.client.api.ServiceOps; import org.apache.syncope.common.keymaster.client.api.model.NetworkService; +import org.apache.syncope.common.lib.types.IdRepoEntitlement; import org.apache.wicket.PageReference; +import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder; import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn; import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn; @@ -80,7 +84,26 @@ public class NetworkServiceDirectoryPanel extends DirectoryPanel< @Override protected ActionsPanel getActions(final IModel model) { -return super.getActions(model); +ActionsPanel panel = super.getActions(model); + +panel.add(new ActionLink<>() { + +private static final long serialVersionUID = -3722207913631435501L; + +@Override +public void onClick(final AjaxRequestTarget target, final NetworkService ignore) { +try { +serviceOps.unregister(model.getObject()); +target.add(container); +} catch (Exception e) { +LOG.error("While deleting {}", model.getObject().getAddress(), e); +SyncopeConsoleSession.get().onException(e); +} +((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); +} +}, ActionLink.ActionType.DELETE, IdRepoEntitlement.KEYMASTER, true); + +return panel; } @Override diff --git a/src/main/asciidoc/reference-guide/usage/actuator.adoc b/src/main/asciidoc/reference-guide/usage/actuator.adoc new file mode 100644 index 00..6c6d488cb4 --- /dev/null +++ b/src/main/asciidoc/reference-guide/usage/actuator.adoc @@ -0,0 +1,85 @@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// +=== Actuator Endpoints + +Spring Boot's actuator endpoints let you monitor and interact with Syncope components. + +Each individual endpoint can be enabled / disabled and exposed over HTTP (pre-defined, under the `/actuator` subcontext) +or JMX. + +Besides a number of https://docs.spring.io/spring-boot/docs/2.7.x/reference/htmlsingle/#actuator.endpoints[built-in endpoints^], +more are made available for each component, as reported below. + +[NOTE]
[syncope] 01/02: Upgrading ConnId DB bundles
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git commit e9eb68ff790b612bfa18b81bb0421cf97e1f56f1 Author: Francesco Chicchiriccò AuthorDate: Thu Jan 19 10:19:36 2023 +0100 Upgrading ConnId DB bundles --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 852d0079a8..0c12810bf1 100644 --- a/pom.xml +++ b/pom.xml @@ -400,7 +400,7 @@ under the License. 1.5.2.0 1.4.5 1.0.7 -2.2.9 +2.2.10 0.8.9 1.5.7 1.3.8
[syncope] branch 2_1_X updated: Upgrading ConnId DB bundles
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 2_1_X in repository https://gitbox.apache.org/repos/asf/syncope.git The following commit(s) were added to refs/heads/2_1_X by this push: new 3935c94f7f Upgrading ConnId DB bundles 3935c94f7f is described below commit 3935c94f7fed6a832c19dadb3c9239ac535adf28 Author: Francesco Chicchiriccò AuthorDate: Thu Jan 19 10:20:38 2023 +0100 Upgrading ConnId DB bundles --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 15b91dbb73..aaeb12dee2 100644 --- a/pom.xml +++ b/pom.xml @@ -393,10 +393,10 @@ under the License. 2022-12-09T08:44:43Z ${project.version} -1.5.1.0 +1.5.2.0 1.4.5 1.0.7 -2.2.9 +2.2.10 0.8.9 1.5.7 1.3.7
[syncope] branch 3_0_X updated: [SYNCOPE-1724] Providing SyncopeElasticsearchHealthContributor (#404)
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git The following commit(s) were added to refs/heads/3_0_X by this push: new 7d53189f18 [SYNCOPE-1724] Providing SyncopeElasticsearchHealthContributor (#404) 7d53189f18 is described below commit 7d53189f1810b297b7ad1afd825a40530971f535 Author: Francesco Chicchiriccò AuthorDate: Thu Jan 19 09:17:38 2023 +0100 [SYNCOPE-1724] Providing SyncopeElasticsearchHealthContributor (#404) --- .../core/starter/SyncopeCoreApplication.java | 16 +++-- .../starter/actuate/DomainsHealthIndicator.java| 8 ++- .../core/starter/actuate/EntityCacheEndpoint.java | 2 +- .../actuate/ExternalResourcesHealthIndicator.java | 25 +--- ext/elasticsearch/client-elasticsearch/pom.xml | 7 +- .../client/ElasticsearchClientContext.java | 8 +++ .../SyncopeElasticsearchHealthContributor.java | 74 ++ .../java/job/ElasticsearchReindex.java | 19 +++--- pom.xml| 2 +- 9 files changed, 134 insertions(+), 27 deletions(-) diff --git a/core/starter/src/main/java/org/apache/syncope/core/starter/SyncopeCoreApplication.java b/core/starter/src/main/java/org/apache/syncope/core/starter/SyncopeCoreApplication.java index 90aaa28943..808ecb3561 100644 --- a/core/starter/src/main/java/org/apache/syncope/core/starter/SyncopeCoreApplication.java +++ b/core/starter/src/main/java/org/apache/syncope/core/starter/SyncopeCoreApplication.java @@ -21,6 +21,7 @@ package org.apache.syncope.core.starter; import java.util.Map; import org.apache.cxf.spring.boot.autoconfigure.openapi.OpenApiAutoConfiguration; import org.apache.syncope.common.keymaster.client.api.ConfParamOps; +import org.apache.syncope.common.keymaster.client.api.DomainOps; import org.apache.syncope.common.keymaster.client.api.startstop.KeymasterStop; import org.apache.syncope.common.lib.info.SystemInfo; import org.apache.syncope.core.persistence.api.DomainHolder; @@ -39,6 +40,8 @@ import org.apache.syncope.core.persistence.api.dao.TaskDAO; import org.apache.syncope.core.persistence.api.dao.UserDAO; import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO; import org.apache.syncope.core.provisioning.api.ConnIdBundleManager; +import org.apache.syncope.core.provisioning.api.ConnectorManager; +import org.apache.syncope.core.provisioning.api.data.ConnInstanceDataBinder; import org.apache.syncope.core.starter.actuate.DefaultSyncopeCoreInfoContributor; import org.apache.syncope.core.starter.actuate.DomainsHealthIndicator; import org.apache.syncope.core.starter.actuate.EntityCacheEndpoint; @@ -152,8 +155,8 @@ public class SyncopeCoreApplication extends SpringBootServletInitializer { @ConditionalOnMissingBean @Bean -public DomainsHealthIndicator domainsHealthIndicator() { -return new DomainsHealthIndicator(); +public DomainsHealthIndicator domainsHealthIndicator(final DomainHolder domainHolder) { +return new DomainsHealthIndicator(domainHolder); } @ConditionalOnMissingBean @@ -165,8 +168,13 @@ public class SyncopeCoreApplication extends SpringBootServletInitializer { @ConditionalOnClass(name = { "org.apache.syncope.core.logic.ResourceLogic" }) @ConditionalOnMissingBean @Bean -public ExternalResourcesHealthIndicator externalResourcesHealthIndicator() { -return new ExternalResourcesHealthIndicator(); +public ExternalResourcesHealthIndicator externalResourcesHealthIndicator( +final DomainOps domainOps, +final ExternalResourceDAO resourceDAO, +final ConnInstanceDataBinder connInstanceDataBinder, +final ConnectorManager connectorManager) { + +return new ExternalResourcesHealthIndicator(domainOps, resourceDAO, connInstanceDataBinder, connectorManager); } @ConditionalOnMissingBean diff --git a/core/starter/src/main/java/org/apache/syncope/core/starter/actuate/DomainsHealthIndicator.java b/core/starter/src/main/java/org/apache/syncope/core/starter/actuate/DomainsHealthIndicator.java index 72c136c288..53e2d8d2a8 100644 --- a/core/starter/src/main/java/org/apache/syncope/core/starter/actuate/DomainsHealthIndicator.java +++ b/core/starter/src/main/java/org/apache/syncope/core/starter/actuate/DomainsHealthIndicator.java @@ -23,7 +23,6 @@ import java.util.concurrent.atomic.AtomicReference; import org.apache.syncope.core.persistence.api.DomainHolder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.boot.actuate.health.Status; @@ -33,8 +32,11 @@ public class DomainsHealthIndicator implements HealthIndicator { protected
[syncope] 02/02: Adding doc for actuator
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git commit 48d656757a55f2bc9283f1dfe7dadc1fcd2585ff Author: Francesco Chicchiriccò AuthorDate: Thu Jan 19 13:28:12 2023 +0100 Adding doc for actuator --- .../panels/NetworkServiceDirectoryPanel.java | 25 ++- .../asciidoc/reference-guide/usage/actuator.adoc | 85 ++ .../reference-guide/usage/customization.adoc | 4 +- src/main/asciidoc/reference-guide/usage/usage.adoc | 2 + 4 files changed, 113 insertions(+), 3 deletions(-) diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/NetworkServiceDirectoryPanel.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/NetworkServiceDirectoryPanel.java index 9855f30387..b8683f3032 100644 --- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/NetworkServiceDirectoryPanel.java +++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/NetworkServiceDirectoryPanel.java @@ -23,7 +23,9 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; +import org.apache.syncope.client.console.SyncopeConsoleSession; import org.apache.syncope.client.console.commons.IdRepoConstants; +import org.apache.syncope.client.console.pages.BasePage; import org.apache.syncope.client.console.panels.NetworkServiceDirectoryPanel.NetworkServiceProvider; import org.apache.syncope.client.console.rest.SyncopeRestClient; import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink; @@ -31,7 +33,9 @@ import org.apache.syncope.client.console.wicket.markup.html.form.ActionsPanel; import org.apache.syncope.client.ui.commons.DirectoryDataProvider; import org.apache.syncope.common.keymaster.client.api.ServiceOps; import org.apache.syncope.common.keymaster.client.api.model.NetworkService; +import org.apache.syncope.common.lib.types.IdRepoEntitlement; import org.apache.wicket.PageReference; +import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder; import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn; import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn; @@ -80,7 +84,26 @@ public class NetworkServiceDirectoryPanel extends DirectoryPanel< @Override protected ActionsPanel getActions(final IModel model) { -return super.getActions(model); +ActionsPanel panel = super.getActions(model); + +panel.add(new ActionLink<>() { + +private static final long serialVersionUID = -3722207913631435501L; + +@Override +public void onClick(final AjaxRequestTarget target, final NetworkService ignore) { +try { +serviceOps.unregister(model.getObject()); +target.add(container); +} catch (Exception e) { +LOG.error("While deleting {}", model.getObject().getAddress(), e); +SyncopeConsoleSession.get().onException(e); +} +((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); +} +}, ActionLink.ActionType.DELETE, IdRepoEntitlement.KEYMASTER, true); + +return panel; } @Override diff --git a/src/main/asciidoc/reference-guide/usage/actuator.adoc b/src/main/asciidoc/reference-guide/usage/actuator.adoc new file mode 100644 index 00..6c6d488cb4 --- /dev/null +++ b/src/main/asciidoc/reference-guide/usage/actuator.adoc @@ -0,0 +1,85 @@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// +=== Actuator Endpoints + +Spring Boot's actuator endpoints let you monitor and interact with Syncope components. + +Each individual endpoint can be enabled / disabled and exposed over HTTP (pre-defined, under the `/actuator` subcontext) +or JMX. + +Besides a number of https://docs.spring.io/spring-boot/docs/2.7.x/reference/htmlsingle/#actuator.endpoints[built-in endpoints^], +more are
[syncope] 01/02: Upgrading ConnId DB bundles
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git commit d24ea662a505f929719fe1204614913df7b07bcb Author: Francesco Chicchiriccò AuthorDate: Thu Jan 19 10:20:01 2023 +0100 Upgrading ConnId DB bundles --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 067716dc37..4bb984fc8c 100644 --- a/pom.xml +++ b/pom.xml @@ -400,7 +400,7 @@ under the License. 1.6.0.0-SNAPSHOT 1.5.0-SNAPSHOT 1.1.0-SNAPSHOT -2.2.9 +2.2.10 0.8.9 1.5.7 1.3.8
[syncope] branch master updated (ff5bb2f002 -> 48d656757a)
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git from ff5bb2f002 [SYNCOPE-1724] Providing SyncopeElasticsearchHealthContributor (#404) new d24ea662a5 Upgrading ConnId DB bundles new 48d656757a Adding doc for actuator The 2 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: .../panels/NetworkServiceDirectoryPanel.java | 25 ++- pom.xml| 2 +- .../asciidoc/reference-guide/usage/actuator.adoc | 85 ++ .../reference-guide/usage/customization.adoc | 4 +- src/main/asciidoc/reference-guide/usage/usage.adoc | 2 + 5 files changed, 114 insertions(+), 4 deletions(-) create mode 100644 src/main/asciidoc/reference-guide/usage/actuator.adoc
Syncope » Syncope-master-deploy - Build # 731 - Still Failing!
Syncope » Syncope-master-deploy - Build # 731 - Still Failing: Check console output at https://ci-builds.apache.org/job/Syncope/job/Syncope-master-deploy/731/ to view the results.
[syncope] branch master updated: SYNCOPE-1723 remove non-reproducible entries from git.properties, avoid absolute path in sources.jar and use reproducible builds timestamp (#402)
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git The following commit(s) were added to refs/heads/master by this push: new 78cda18dfa SYNCOPE-1723 remove non-reproducible entries from git.properties, avoid absolute path in sources.jar and use reproducible builds timestamp (#402) 78cda18dfa is described below commit 78cda18dfa1de03f1b3110b76fb819d03af709d3 Author: Hervé Boutemy AuthorDate: Thu Jan 19 15:13:32 2023 +0100 SYNCOPE-1723 remove non-reproducible entries from git.properties, avoid absolute path in sources.jar and use reproducible builds timestamp (#402) --- archetype/pom.xml | 52 - fit/build-tools/pom.xml | 3 ++- pom.xml | 9 + 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/archetype/pom.xml b/archetype/pom.xml index c0e0c7a9f7..12ffaf2882 100644 --- a/archetype/pom.xml +++ b/archetype/pom.xml @@ -131,18 +131,18 @@ under the License. core.properties - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources ../core/provisioning-java/src/main/resources - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources ../core/persistence-jpa/src/main/resources META-INF/spring-persistence.xml - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources ../core/persistence-jpa-json/src/main/resources/ @@ -150,41 +150,41 @@ under the License. META-INF/* audit/* - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources ../core/persistence-jpa/src/test/resources/domains - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources/domains + archetype-resources/core/src/test/resources/domains ../fit/core-reference/src/main/resources - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources log4j2.xml ../fit/core-reference/src/test/resources - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources +archetype-resources/core/src/test/resources keystore ../fit/core-reference/src/test/resources/scriptedsql - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources/scriptedsql + archetype-resources/core/src/test/resources/scriptedsql ../fit/core-reference/src/test/resources/rest - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources/rest + archetype-resources/core/src/test/resources/rest ../fit/core-reference/src/main/webapp/WEB-INF - ${project.build.outputDirectory}/archetype-resources/core/src/main/webapp/WEB-INF + archetype-resources/core/src/main/webapp/WEB-INF ../fit/core-reference/src/main/resources - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources +archetype-resources/core/src/test/resources core-embedded.properties core-all.properties @@ -195,25 +195,25 @@ under the License. ../client/idrepo/console/src/main/resources - ${project.build.outputDirectory}/archetype-resources/console/src/main/resources +archetype-resources/console/src/main/resources console.properties ../fit/console-reference/src/main/resources - ${project.build.outputDirectory}/archetype-resources/console/src/main/resources +archetype-resources/console/src/main/resources log4j2.xml ../fit/console-reference/src/main/webapp/WEB-INF - ${project.build.outputDirectory}/archetype-resources/console/src/main/webapp/WEB-INF + archetype-resources/console/src/main/webapp/WEB-INF ../fit/console-reference/src/main/resources - ${project.build.outputDirectory}/archetype-resources/console/src/test/resources +archetype-resources/console/src/test/resources console-embedded.properties console-https.properties @@ -222,7 +222,7 @@ under the License. ../client/idrepo/enduser/src/main/resources -
Syncope » Syncope-master-deploy - Build # 730 - Failure!
Syncope » Syncope-master-deploy - Build # 730 - Failure: Check console output at https://ci-builds.apache.org/job/Syncope/job/Syncope-master-deploy/730/ to view the results.
[syncope] branch 3_0_X updated: SYNCOPE-1723 remove non-reproducible entries from git.properties, avoid absolute path in sources.jar and use reproducible builds timestamp (#402)
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git The following commit(s) were added to refs/heads/3_0_X by this push: new 3f632b5b50 SYNCOPE-1723 remove non-reproducible entries from git.properties, avoid absolute path in sources.jar and use reproducible builds timestamp (#402) 3f632b5b50 is described below commit 3f632b5b502dafed27774aefe37ab31891c9dfa4 Author: Hervé Boutemy AuthorDate: Thu Jan 19 15:13:32 2023 +0100 SYNCOPE-1723 remove non-reproducible entries from git.properties, avoid absolute path in sources.jar and use reproducible builds timestamp (#402) --- archetype/pom.xml | 52 - fit/build-tools/pom.xml | 3 ++- pom.xml | 9 + 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/archetype/pom.xml b/archetype/pom.xml index 526888330a..3aaf85874a 100644 --- a/archetype/pom.xml +++ b/archetype/pom.xml @@ -131,18 +131,18 @@ under the License. core.properties - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources ../core/provisioning-java/src/main/resources - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources ../core/persistence-jpa/src/main/resources META-INF/spring-persistence.xml - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources ../core/persistence-jpa-json/src/main/resources/ @@ -150,41 +150,41 @@ under the License. META-INF/* audit/* - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources ../core/persistence-jpa/src/test/resources/domains - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources/domains + archetype-resources/core/src/test/resources/domains ../fit/core-reference/src/main/resources - ${project.build.outputDirectory}/archetype-resources/core/src/main/resources +archetype-resources/core/src/main/resources log4j2.xml ../fit/core-reference/src/test/resources - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources +archetype-resources/core/src/test/resources keystore ../fit/core-reference/src/test/resources/scriptedsql - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources/scriptedsql + archetype-resources/core/src/test/resources/scriptedsql ../fit/core-reference/src/test/resources/rest - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources/rest + archetype-resources/core/src/test/resources/rest ../fit/core-reference/src/main/webapp/WEB-INF - ${project.build.outputDirectory}/archetype-resources/core/src/main/webapp/WEB-INF + archetype-resources/core/src/main/webapp/WEB-INF ../fit/core-reference/src/main/resources - ${project.build.outputDirectory}/archetype-resources/core/src/test/resources +archetype-resources/core/src/test/resources core-embedded.properties core-all.properties @@ -195,25 +195,25 @@ under the License. ../client/idrepo/console/src/main/resources - ${project.build.outputDirectory}/archetype-resources/console/src/main/resources +archetype-resources/console/src/main/resources console.properties ../fit/console-reference/src/main/resources - ${project.build.outputDirectory}/archetype-resources/console/src/main/resources +archetype-resources/console/src/main/resources log4j2.xml ../fit/console-reference/src/main/webapp/WEB-INF - ${project.build.outputDirectory}/archetype-resources/console/src/main/webapp/WEB-INF + archetype-resources/console/src/main/webapp/WEB-INF ../fit/console-reference/src/main/resources - ${project.build.outputDirectory}/archetype-resources/console/src/test/resources +archetype-resources/console/src/test/resources console-embedded.properties console-https.properties @@ -222,7 +222,7 @@ under the License. ../client/idrepo/enduser/src/main/resources -
[syncope] branch master updated: Upgrading Spring Boot and Nimbus JOSE JWT
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git The following commit(s) were added to refs/heads/master by this push: new ad267b8177 Upgrading Spring Boot and Nimbus JOSE JWT ad267b8177 is described below commit ad267b817744d0f46db40a7176644f5391174e01 Author: Francesco Chicchiriccò AuthorDate: Fri Jan 20 08:13:08 2023 +0100 Upgrading Spring Boot and Nimbus JOSE JWT --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 2be5e9f101..0056338b55 100644 --- a/pom.xml +++ b/pom.xml @@ -413,9 +413,9 @@ under the License. 4.0.0 1.72 -9.26 +9.28 -3.0.1 +3.0.2 4.0.0 3.2.2
[syncope] branch 3_0_X updated: Upgrading Spring Boot and Nimbus JOSE JWT
This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git The following commit(s) were added to refs/heads/3_0_X by this push: new 4e05292b1a Upgrading Spring Boot and Nimbus JOSE JWT 4e05292b1a is described below commit 4e05292b1a65cc516d2f3cf2297f4df43f8b8c8e Author: Francesco Chicchiriccò AuthorDate: Fri Jan 20 08:10:01 2023 +0100 Upgrading Spring Boot and Nimbus JOSE JWT --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b52563175f..29016f699c 100644 --- a/pom.xml +++ b/pom.xml @@ -413,9 +413,9 @@ under the License. 3.5.5 1.70 -9.26 +9.28 -2.7.7 +2.7.8 3.1.4 3.2.2