Skip to content

Support storing Scaleway credentials in OS keychain (system store) #84

@b4nst

Description

@b4nst

The Scaleway backend currently resolves credentials from:

  1. Config file (access-key / secret-key fields)
  2. Environment variables (SCW_ACCESS_KEY / SCW_SECRET_KEY)
  3. Scaleway config file (~/.config/scw/config.yaml)

Unlike AWS or GCP which have rich native credential chains, Scaleway's options are limited. It would be useful to allow storing the Scaleway access key and secret key in the OS keychain via the system store, and have the Scaleway provider retrieve them from there automatically as a fallback.

Proposed behavior

During Build(), if credentials aren't set via config or environment, try reading them from the SystemStore:

  • scaleway-access-key -> access key
  • scaleway-secret-key -> secret key

Users would store them once via:

clef set --store system scaleway-access-key SCWXXXXXXXXXX
clef set --store system scaleway-secret-key xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

This pattern could also be generalized for other providers in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions