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

Comments

Projects
None yet
2 participants
@AdamNaj
Member

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.

@AdamNaj AdamNaj self-assigned this Feb 12, 2015

@AdamNaj AdamNaj added this to the 3.0 milestone Feb 12, 2015

AdamNaj added a commit that referenced this issue Feb 12, 2015

@AdamNaj

This comment has been minimized.

Show comment
Hide comment
@AdamNaj

AdamNaj Feb 12, 2015

Member

Implemented

Member

AdamNaj commented Feb 12, 2015

Implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment