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

Ability to turn Web services on and off. #289

Closed
AdamNaj opened this issue Feb 12, 2015 · 1 comment
Closed

Ability to turn Web services on and off. #289

AdamNaj opened this issue Feb 12, 2015 · 1 comment

Comments

@AdamNaj
Copy link
Member

@AdamNaj AdamNaj commented Feb 12, 2015

The following section to be added to Cognifide.PowerShell.config

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  <sitecore>
      <services>
        <restfulv1 enabled="false" />
        <restfulv2 enabled="true" />
        <remoting  enabled="true" />
        <client    enabled="true" />
      </services>
  </sitecore>
</configuration>

Where

Key Default Service Sample URL Description and Justification
restfulv1 Disabled Restful v1 Sample URL This service allowed to run any script in the media libraries. The feature felt overly too permissive and have since been superseeded by v2 that offers more granular control
restfulv2 Enabled Restful v2 Sample URL This service allows running scripts located only in the Web API Integration point Script Library
remoting Enabled Remoting Sample URL Allows to Remote to the server to execute arbitrary scripts as described in the blog
client Enabled Json based - for SPE Apps Sample URL Console and ISE use this service for the purpose of communication with the Server site sessions.

Additionally all services had a check added where user is not authenticated to not execute any code that can potentially be harmful.

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

Successfully merging a pull request may close this issue.

None yet
2 participants