Skip to content

Authentication: SPRITE_TOKEN env variable is not working or is not implemented #135

@gerardnico

Description

@gerardnico

Hallo,

I could not find any way to pass a token via an environment variable.

My Environment

I'm using Windows WSL and I don't have any keyring

sprite auth setup --token "org-slug/org-id/token-id/token-value"
⚠️  WARNING: No system keyring available. Storing secrets unencrypted in ~/.sprites/keyring/
✓ Set up authentication for org-slug

Storing secrets unencrypted is not really secure.

Environment Variable test
I'm using pass to secure api token and inject them at runtime via a wrapper script.

I tried to use SPRITE_TOKEN as an environment variable as I found it in your API documentation but it's not working.

SPRITE_TOKEN=org-slug/org-id/token-id/token-value sprite org auth
Error: no Fly.io token found. Please run 'sprite login' first

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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