You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "mmoayyed (via GitHub)" <gi...@apache.org> on 2023/06/13 13:40:03 UTC

[GitHub] [syncope] mmoayyed opened a new pull request, #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

mmoayyed opened a new pull request, #472:
URL: https://github.com/apache/syncope/pull/472

   (no comment)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] mmoayyed commented on pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "mmoayyed (via GitHub)" <gi...@apache.org>.
mmoayyed commented on PR #472:
URL: https://github.com/apache/syncope/pull/472#issuecomment-1592469590

   Sure. I'll probably get to this tomorrow. Thanks for the details!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] mmoayyed commented on pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "mmoayyed (via GitHub)" <gi...@apache.org>.
mmoayyed commented on PR #472:
URL: https://github.com/apache/syncope/pull/472#issuecomment-1591550522

   That does look correct, but I think the missing piece here is that WA bootstrapping has its own logic for loading properties, and those do not pass through the CAS cipher. This bit, we can add.
   
   Note that `cas.standalone.configuration-security.psw` needs to be taught to WA at bootstrap time (that is when you launch WA) using a system property or environment variable. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] mmoayyed closed pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "mmoayyed (via GitHub)" <gi...@apache.org>.
mmoayyed closed pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf
URL: https://github.com/apache/syncope/pull/472


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] fmartelli commented on pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "fmartelli (via GitHub)" <gi...@apache.org>.
fmartelli commented on PR #472:
URL: https://github.com/apache/syncope/pull/472#issuecomment-1590707956

   @mmoayyed @ilgrosso 
   actually I'd prefer something different, like as the approach you can find [here](https://apereo.github.io/cas/6.6.x/configuration/Configuration-Properties-Security-SpringCloud.html) for CAS.
   
   It would be nice to have the possibility to specify encrypted values for whatever properties into authmodules, attrrepos and general WA properties, Maybe just specifying a prefix {cipher} like as we use to do with CAS.
   
   The question: if we specify a property by providing the [encrypted value with {cas-cipher} prefix](https://apereo.github.io/cas/6.6.x/configuration/Configuration-Properties-Security-CAS.html), what will be interpreted by WA at the Apply configuration phase. Maybe we already have this feature for free ... just some minor reworks.
   
   Please, let me know what you think about.
   Thank you


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] fmartelli commented on pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "fmartelli (via GitHub)" <gi...@apache.org>.
fmartelli commented on PR #472:
URL: https://github.com/apache/syncope/pull/472#issuecomment-1592464350

   Hi @mmoayyed, I speciefied cas.standalone.configuration-security.psw into a spring profile so, yes, it should be loaded at bootstrap time.
   
   Can you close this PR and open a new one in order to add the bit that is currently missing?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] mmoayyed commented on pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "mmoayyed (via GitHub)" <gi...@apache.org>.
mmoayyed commented on PR #472:
URL: https://github.com/apache/syncope/pull/472#issuecomment-1590775282

   What you should be able to do today is:
   
   1. Find any setting that WA supports, and encrypt it using the same strategy that CAS allows
   2. Go to the console, or any other configuration area/file in WA, and specify the setting value as `{cas-cipher}<ENCRYPTED_VALUE_HERE>`
   3. The setting will be picked up by WA and decrypted accordingly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] fmartelli commented on pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "fmartelli (via GitHub)" <gi...@apache.org>.
fmartelli commented on PR #472:
URL: https://github.com/apache/syncope/pull/472#issuecomment-1590835656

   I think this could be enough.
   I'll be glad to try out within today.
   
   I'll let you know. Stay tuned


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] ilgrosso commented on pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "ilgrosso (via GitHub)" <gi...@apache.org>.
ilgrosso commented on PR #472:
URL: https://github.com/apache/syncope/pull/472#issuecomment-1589538244

   Why not including `AttrRepoConf` as well?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [syncope] fmartelli commented on pull request #472: SYNCOPE-1765: encrypt/decrypt values/settings for AuthModuleConf

Posted by "fmartelli (via GitHub)" <gi...@apache.org>.
fmartelli commented on PR #472:
URL: https://github.com/apache/syncope/pull/472#issuecomment-1591469367

   Hi @mmoayyed, I think it is not working.
   I encrypted the password with jasypt as reported below
   
   `encrypt.sh algorithm=PBEWithMD5AndTripleDES input=******* password="1cascipherpassword!"`
   
   Input is the password to be encrypted and password is the key configured into cas.standalone.configuration-security.psw.
   It is correct, right? No further configurations has been provided.
   
   It seems it is taking the password as is, without any decryption.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org