syncope-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò <>
Subject Re: Deploying mapping and topology changes - without MasterContent.xml
Date Tue, 19 May 2020 09:22:03 GMT
please find my replies in-line below.


On 14/05/20 15:11, syncope developer wrote:
> Good day everyone,
> Subject/Regarding - deployment instructions (to deploy in other Syncope instances) regarding
configuration and provision mapping changes.
> How can i figure out what all Rest calls need to be captured/executed - so that i can
replicate certain UI configuration (or provision mapping) related operations i do using the
syncope console? 
> Like there is a way to check the recent tasks executed (<URL>/rest/tasks/executions/recent?max=9) 
- is there way to check for configuration changes?

The simplest way to accomplish this is by first setting level to DEBUG for org.apache.cxf
under Configuration -> Logs -> Console, then watching console.log while performing the
desired operations via Console UI.

> Also - is it ok to figure out what records are added in what tables and try to insert
those during deployment in another Instances.

Looking at database changes is an option but you should take into account that it might be
not straightforward to map REST objects down to db records.

> On Fri, Mar 20, 2020 at 4:09 PM Marco Di Sabatino Di Diodoro <
<>> wrote:
>     Hi
>     Il 20/03/20 19:11, syncope developer ha scritto:
>>     Syncope support,
>>     I have a question on deploying or transferring the topology changes (either in
mapping or some configuration ) made in one environment into another. 
>>     If it is a new environment i can copy the MasterContent.xml from one environment
(export) and into another. And restart syncope (tomcat).
>>     But if there is a syncope instance that is functioning (there is already users
in the realm)- I am not able to copy the MasterContent.xml. Because, once the tasks table
has data - syncope startup is not reading the MasterContent.xml and deploying the modified/later
>>     How would you recommend deploying such topology changes to a functioning syncope
>     You can use swagger [1] / curl to export configurations and import them to another
>     For example if you need to export connector configurations:
>     Export:
>     curl -X GET ""
<> -H  "accept:
application/json" -H  "X-Syncope-Domain: Master" -H  "Authorization: Basic YWRtaW46cGFzc3dvcmQ="
>     take the json and update the connector in the other env:
>     curl -X PUT "https://newenv/syncope/rest/connectors/key" <https://newenv/syncope/rest/connectors/key>
-H  "accept: */*" -H  "X-Syncope-Domain: Master" -H  "Authorization: Basic YWRtaW46cGFzc3dvcmQ="
-H  "Content-Type: application/json" -d "{\"key\":\"string\",\"adminRealm\":\"string\",\"location\":\"string\",\"connectorName\":\"string\",\"bundleName\":\"string\",\"version\":\"string\",\"displayName\":\"string\",\"connRequestTimeout\":0,\"poolConf\":{\"maxObjects\":0,\"minIdle\":0,\"maxIdle\":0,\"maxWait\":0,\"minEvictableIdleTimeMillis\":0},\"conf\":[{\"schema\":{\"name\":\"string\",\"displayName\":\"string\",\"helpMessage\":\"string\",\"type\":\"string\",\"required\":true,\"order\":0,\"confidential\":true,\"defaultValues\":[{}]},\"overridable\":true,\"values\":[{}]}],\"capabilities\":[\"AUTHENTICATE\"]}"
>     Regards
>     M
>     [1]
>>     Thanks
>>     Really appreciate your support.
>>     Lat
Francesco Chicchiriccò

Tirasa - Open Source Excellence

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail

View raw message