kubernetes/kops · error
creating client for Scaleway Verifier: %w
Error message
creating client for Scaleway Verifier: %w
What it means
In NewScalewayVerifier, building the bootstrap verifier failed at its first step: CreateValidScalewayProfile could not produce a usable credential profile (missing credentials or bad config). This is a client-side configuration failure — no API request has been made yet. Called from main, so it aborts startup of the verifier component.
Source
Thrown at upup/pkg/fi/cloudup/scaleway/verifier.go:47
"github.com/scaleway/scaleway-sdk-go/scw"
kopsv "k8s.io/kops"
"k8s.io/kops/pkg/bootstrap"
"k8s.io/kops/pkg/wellknownports"
"k8s.io/kops/upup/pkg/fi/cloudup/scaleway/scalewaymetadata"
)
type ScalewayVerifierOptions struct{}
type scalewayVerifier struct {
scwClient *scw.Client
}
var _ bootstrap.Verifier = (*scalewayVerifier)(nil)
func NewScalewayVerifier(ctx context.Context, opt *ScalewayVerifierOptions) (bootstrap.Verifier, error) {
profile, err := scalewaymetadata.CreateValidScalewayProfile()
if err != nil {
return nil, fmt.Errorf("creating client for Scaleway Verifier: %w", err)
}
scwClient, err := scw.NewClient(
scw.WithProfile(profile),
scw.WithUserAgent(KopsUserAgentPrefix+kopsv.Version),
)
if err != nil {
return nil, err
}
return &scalewayVerifier{
scwClient: scwClient,
}, nil
}
func (v scalewayVerifier) VerifyToken(ctx context.Context, rawRequest *http.Request, token string, body []byte) (*bootstrap.VerifyResult, error) {
if !strings.HasPrefix(token, scalewaymetadata.ScalewayAuthenticationTokenPrefix) {
return nil, bootstrap.ErrNotThisVerifier
}
serverID := strings.TrimPrefix(token, scalewaymetadata.ScalewayAuthenticationTokenPrefix)View on GitHub (pinned to 4c8573c808)
Solutions
- Fix the underlying credential problem reported by CreateValidScalewayProfile
- Ensure SCW_ACCESS_KEY, SCW_SECRET_KEY and SCW_DEFAULT_PROJECT_ID are set
- Validate the config with 'scw init' or 'scw config'
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/scaleway/verifier.go:47 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/8718dde3f4422e12.
Report an issue: GitHub.