Skip to content

[datasource-syncer] Enable reading token from a file #1717

Description

@markustoivonen

Hi!

I am currently trying to set up a system using the prometheus datasource-syncer where the CronJob has an initContainer that creates the G-SA and the token if they do not exist. The token is stored as plaintext to a volume that is shared by the main container and the initContainer.

The distroless image makes it so that the token cannot be read/passed in any meaningful way via code as far as I can tell (without exposing it to the codebase that is).

I think the easiest solution would be to allow passing a filepath from where the token could be read. Would it be possible to support?

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