Skip to content

Ability to turn Web services on and off. #289

@AdamNaj

Description

@AdamNaj

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions