Skip to content

Replace deprecated option.WithCredentialsJSON with secure alternative #2780

@adityathebe

Description

@adityathebe

We're using the deprecated option.WithCredentialsJSON in connection/check.go for GCP/GCS connection validation.

This is flagged by staticcheck (SA1019) due to security risks with inline JSON credentials.

Fix: Refactor to use option.WithCredentialsFile() with temp files instead.

Temporarily excluded from linting in .golangci.yml - remove once fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions