AL icon indicating copy to clipboard operation
AL copied to clipboard

How to protect our extension code ?

Open rishiaurrishabh opened this issue 8 years ago • 12 comments

Hi All,

I made showmycode property in my app.json as false, so on debugger I am not able to see my code and same is not available for download which is right.

But now if I try to open my .app file on tools like winrar then it opens all related .al files and all content of vscode in fully readable format which can easily use used by some other developer.

please suggest the right way to protect our extension code.

Thanks! Rishabh.

rishiaurrishabh avatar Oct 06 '18 04:10 rishiaurrishabh

App file need to digitally signed to avoid tampering More details on this link https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-sign-extension

AmolSalvi avatar Oct 08 '18 08:10 AmolSalvi

Hi @AmolSalvi ...I already tried that it does give password to your app file but you can still see your code once you open that file on winrar . my point here is to do not share my code by any means if showmycode is false. like .DELTA files, if you open navx file from winrar you will see encrypted format in the file.

Thanks..Rishabh.

rishiaurrishabh avatar Oct 08 '18 09:10 rishiaurrishabh

If that's the case then I think Microsoft need to answer on the same. May be there is some properties need to set in JSON files . @StanislawStempin

AmolSalvi avatar Oct 08 '18 09:10 AmolSalvi

Yes...that's what I was thinking @StanislawStempin .... we need your help here :)

rishiaurrishabh avatar Oct 08 '18 09:10 rishiaurrishabh

Hi @rishiaurrishabh, If you want to distribute your .app file to another on-premise system then you should create a Runtime package. Read more about it in the docs Creating Runtime Packages for Business Central On-Premises.

When you publish your app to AppSource and you have the ShowMyCode set to false, then when other people tries to download the app package then it will only contain the Symbol information.

thpeder avatar Oct 08 '18 10:10 thpeder

Hi @thpeder ,

Thanks for your help, approach worked for me (y).

Thanks... @all I am closing the issue now.

rishiaurrishabh avatar Oct 08 '18 11:10 rishiaurrishabh

When you publish your app to AppSource and you have the ShowMyCode set to false, then when other people tries to download the app package then it will only contain the Symbol information.

That is no solution I'm afraid. If you try to submit your app to MS for all the preliminary testing and reproduction of key usage scenarios before it appears in AppSource, ShowMyCode=false is currently not accepted.

Kowa63 avatar Oct 08 '18 11:10 Kowa63

Hi @Kowa63, The default value you are getting when not specifying the setting is False, which means that most of the Apps already in AppSource has ShowMyCode set to false. I'm not sure what problem you are running into, but it should work just fine. Contact them and they will help you out.

thpeder avatar Oct 08 '18 12:10 thpeder

Hi @thpeder, the default setting will not help either (actually, it was like this when we started with the submission process), but in the weeks that followed we were asked explicitly to insert ShowMyCode=true so that the app could be analysed and allowed debugging. In the meantime the app is available in AppSource anyway, but in our case that setting was the only feasible way.

Kowa63 avatar Oct 08 '18 12:10 Kowa63

Hi @Kowa63, who mentioned to you that ShowMyCode=true was a requirement? We recommend it but it is not a requirement for Appsource.

ryanweigel avatar Oct 08 '18 12:10 ryanweigel

Hi @ryanweigel , my colleague who conferred with you quite freqently during the submission phase ;-). Maybe he got you wrong. Even if it may be so theoretically, since you deprive yourself of being able to debug even your own app unless you set ShowMyCode=true you will have a hard time trying to maintain support once people are working with it.

Kowa63 avatar Oct 09 '18 07:10 Kowa63

Yes, that must have been a misunderstanding. We have never required ShowMyCode=true

ryanweigel avatar Oct 09 '18 11:10 ryanweigel