{"record":{"id":"8718dde3f4422e12","repo":"kubernetes/kops","slug":"creating-client-for-scaleway-verifier-w","errorCode":null,"errorMessage":"creating client for Scaleway Verifier: %w","messagePattern":"creating client for Scaleway Verifier: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scaleway/verifier.go","lineNumber":47,"sourceCode":"\t\"github.com/scaleway/scaleway-sdk-go/scw\"\n\tkopsv \"k8s.io/kops\"\n\t\"k8s.io/kops/pkg/bootstrap\"\n\t\"k8s.io/kops/pkg/wellknownports\"\n\t\"k8s.io/kops/upup/pkg/fi/cloudup/scaleway/scalewaymetadata\"\n)\n\ntype ScalewayVerifierOptions struct{}\n\ntype scalewayVerifier struct {\n\tscwClient *scw.Client\n}\n\nvar _ bootstrap.Verifier = (*scalewayVerifier)(nil)\n\nfunc NewScalewayVerifier(ctx context.Context, opt *ScalewayVerifierOptions) (bootstrap.Verifier, error) {\n\tprofile, err := scalewaymetadata.CreateValidScalewayProfile()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating client for Scaleway Verifier: %w\", err)\n\t}\n\tscwClient, err := scw.NewClient(\n\t\tscw.WithProfile(profile),\n\t\tscw.WithUserAgent(KopsUserAgentPrefix+kopsv.Version),\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &scalewayVerifier{\n\t\tscwClient: scwClient,\n\t}, nil\n}\n\nfunc (v scalewayVerifier) VerifyToken(ctx context.Context, rawRequest *http.Request, token string, body []byte) (*bootstrap.VerifyResult, error) {\n\tif !strings.HasPrefix(token, scalewaymetadata.ScalewayAuthenticationTokenPrefix) {\n\t\treturn nil, bootstrap.ErrNotThisVerifier\n\t}\n\tserverID := strings.TrimPrefix(token, scalewaymetadata.ScalewayAuthenticationTokenPrefix)","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scaleway/verifier.go#L29-L65","documentation":"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.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scaleway/verifier.go:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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'"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}