Skip to content

base-uri not included in the content security policy #10056

@benPearce1

Description

@benPearce1

Are you a customer of Octopus Deploy? Don't raise the issue here. Please contact our support team so we can triage your feature request, making sure it's handled appropriately.

Prerequisites

  • I have searched open and closed issues to make sure it isn't already requested
  • My team has started working on this issue
  • I have written a descriptive issue title

The enhancement

The Need

Attackers are able to redirect the request base url for fetching of resource, stylesheets, application code if a base-uri directive is not included in the Content Security Policy.

Solution

Include a base-uri directive in the default CSP

Screenshots and Mockups

Screenshot

Links

More information

The base-uri directive is available to be turned on for all supported versions (2025.4, 2026.1, 2026.2 at the time of writing).

By setting the environment variable OCTOPUS__FeatureToggles__BaseUriFeatureToggle with a value of true. The default value will be none.

Additionally, the value of this can be set using the environment variable OCTOPUS__ContentSecurityPolicy__BaseUri, with a supported value, as per https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/base-uri

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementThis issue represents an enhancement we are committed to adding to Octopus as some time

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions