Skip to content

JRE cache: JRE downloads which download from sonar.scanner.sonarcloudUrl or sonar.scanner.apiBaseUrl should have an authentication header #2066

Open
@martin-strecker-sonarsource

Description

When downloading resources (JRE, scanner engine, …), special care should be taken not to leak the token to a third-party endpoint. If the downloadUrl starts with the same path as sonar.host.url or sonar.scanner.apiBaseUrl, then the token should be passed. Otherwise, we assume there is no authentication required.

From the spec

We do not pass the token if the download URL starts with either sonar.scanner.sonarcloudUrl or sonar.scanner.apiBaseUrl

See #2024 (comment)

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Type: ParametersUX for parameters, and ways to configure analysis (environmnet, config files, etc|)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions