<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hide the code of a Stored Process in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415091#M5574</link>
    <description>The sensitive information is inside of the code aka the libname statements. I could put that libname statements into a table and load it from there that is a great idea. The include will not work for me because of the way our environment is configured.&lt;BR /&gt;Do you have anyother suggestions? &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
    <pubDate>Tue, 21 Nov 2017 09:10:36 GMT</pubDate>
    <dc:creator>Criptic</dc:creator>
    <dc:date>2017-11-21T09:10:36Z</dc:date>
    <item>
      <title>Hide the code of a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415080#M5572</link>
      <description>&lt;P&gt;Hey everybody,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a STP in which there is sensible information in the code. The users are allowed to execute the STP but they shouldn't be able to view the code of the STP. I output the log to a different location so that the users can't view it but they are still able to view the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just taking away WriteMetadata and modifying the role so that under content the users can't create or modify an STP doesn't work. Taking away ReadMetadata doesn't work as the users are now unable to use the STP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anybody have an idea? Maybe there is a way to encrypt the coding which is then decrypted at runtime? Is something like that possible in SAS? Anyother suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking forward to your ideas and suggestions&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415080#M5572</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2017-11-21T08:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the code of a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415086#M5573</link>
      <description>&lt;P&gt;Is the sensitive info some sort of data? Could it be put into a table that the STP can read but users cannot?&lt;/P&gt;&lt;P&gt;Or if code, can you put it into a separate .sas file and then %INCLUDE it? Again, only the STP can read from this location.&lt;/P&gt;&lt;P&gt;Or maybe you need to revisit what you are trying to do and who your audience is.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415086#M5573</guid>
      <dc:creator>lethcons</dc:creator>
      <dc:date>2017-11-21T09:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the code of a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415091#M5574</link>
      <description>The sensitive information is inside of the code aka the libname statements. I could put that libname statements into a table and load it from there that is a great idea. The include will not work for me because of the way our environment is configured.&lt;BR /&gt;Do you have anyother suggestions? &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415091#M5574</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2017-11-21T09:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the code of a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415096#M5575</link>
      <description>&lt;P&gt;The real question here is:&lt;BR /&gt;"The sensitive information is inside of the code aka the libname statements."&lt;BR /&gt;Why do you have data in libname statements, paths on your network should be kept small, have no special characters, and above all not contain "data". The fact that you have chosen to put sensitive information in paths is bad in several areas.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415096#M5575</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-21T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the code of a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415105#M5576</link>
      <description>&lt;P&gt;The library name itself can't be the problem. What confidential data could be stored in 8 characters?&lt;/P&gt;
&lt;P&gt;Put the libnames into the autoexec for the stored process server, that way they are only read when the STP servers start up (keep in mind that the STP server is a pooled resource).&lt;/P&gt;
&lt;P&gt;Grant metadata access to the users, but restrict it to sassrv in the OS.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415105#M5576</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-21T09:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the code of a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415108#M5577</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately, none of that would work, if the (malicious)&amp;nbsp; user would enable a LOG/DEBUG parameter in the URL, all the code would show up in the logs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW: on production systems, the SASStoredProcess web application should have the LOG/DEBUG option disabled in the SAS Management Console settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only real way to hide the code is by including secured macros.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample 33559: How to Hide Code Used in SAS® Stored Processes That Are Associated with SAS® Information Maps (you can safely ignore the part of Information Maps, not relevant)&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/33/559.html" target="_blank"&gt;http://support.sas.com/kb/33/559.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#macro-stmt.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#macro-stmt.htm&lt;/A&gt; (see example 5)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 10:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415108#M5577</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-11-21T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the code of a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415336#M5578</link>
      <description>&lt;P&gt;This question comes up quite often, usually because the code contains passwords or other sensitive information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is simple.&amp;nbsp; @KurtBremser&amp;nbsp;is right - create a secure directory that can only be read by the STP account (eg sassrv) and the administrators group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your STP code, run the following two lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;options nomprint nosource2; /* prevent log output */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%inc "/temp/mySecureDirectory/program.sas"; /* execute secured part of the code */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afterwards&amp;nbsp;you may wish to reinstate the options.&amp;nbsp; Job done!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 23:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Hide-the-code-of-a-Stored-Process/m-p/415336#M5578</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2017-11-21T23:24:12Z</dc:date>
    </item>
  </channel>
</rss>

