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
Assignees
Labels
area-platform impact-breaking-change Made it better than before. Hopefully not too big of an inconvenience. improvement Extra sugar and spice.
Milestone

Comments

@AdamNaj
Copy link
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
Copy link
Member Author

AdamNaj commented Feb 12, 2015

Implemented

@AdamNaj AdamNaj closed this as completed Feb 12, 2015
@AdamNaj AdamNaj added improvement Extra sugar and spice. impact-breaking-change Made it better than before. Hopefully not too big of an inconvenience. area-platform area-integration labels Feb 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-platform impact-breaking-change Made it better than before. Hopefully not too big of an inconvenience. improvement Extra sugar and spice.
Projects
None yet
Development

No branches or pull requests

2 participants