Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribution of Encryption in Framework #24

Closed
lechnerc77 opened this issue Nov 19, 2018 · 4 comments
Closed

Distribution of Encryption in Framework #24

lechnerc77 opened this issue Nov 19, 2018 · 4 comments

Comments

@lechnerc77
Copy link
Contributor

The logic for en- and decryption is distributed in several classes in DECODE_KEY and ENCRYPT_KEY macros (e. g. ZCL_ADF_SERVICE, ZCL_ADF_SERVICE_BLOB, ZCL_ADF_SERVICE_EVENTHUB, ZCL_SSF_UTILITY).
As this logic is an essential ingredient it should be centralized in one class for the sake of maintainability. I think the class ZCL_SSF_UTILITY had the original intention to do so but seems to be unfinished.

@krdash
Copy link
Contributor

krdash commented Nov 19, 2018

Hello Christian @lechnerc77 @Microsoft/abapsdk ,
Thank you for the valuable feedback.
we are in the process of extending the class ZCL_SSF_UTILITY as it was initially designed to encrypt all kinds of keys and method to decrypt the same in our current landscape. This class is no longer used in SDK as currently we are encrypting keys automatically from the maintenance screen of table ZADF_CONFIG using logic embedded with table events.
we will keep you posted on the extended class once it is completed and reused in the service classes( e.g ZCL_ADF_SERVICE_EVENTHUB) of SDK.

Thanks,
Krishna

@lechnerc77
Copy link
Contributor Author

Hi Krishna,
that is great to hear. Hope to see the result soon
Best regards
Christian

@larshp
Copy link
Contributor

larshp commented Oct 10, 2020

I also just stumbled upon the macros, looking at the code I guess the macros were added for security reasons, as macros cannot be debugged, while this is true, I think the specific implementation is debuggable,

For something like

CALL FUNCTION 'SSFC_BASE64_DECODE'
a user debugging can set a break point inside function module SSFC_BASE64_DECODE to get lv_decoded_xstr? So I agree with @lechnerc77 above, this should be optimized for maintainability instead

@vikasbansal2022
Copy link
Contributor

Hi @lechnerc77

We upgraded our repo with latest version and ZCL_ADF_SERVICE is used as base class and other ZCL_ADF* classed are extending its methods. Please let us know if you need more information.

Regards,
Vikas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants