Thanks to visit codestin.com
Credit goes to github.com

Skip to content

spurious warning when starting external provisioner with PSK #11307

Closed
@spikecurtis

Description

@spikecurtis

When you start an external provisioner using a PSK the CLI drops a warning

check entitlement warnings error: get user me: GET http://coder.example.com/api/v2/users/me: unexpected status code 401: You are signed out or your session has expired. Please sign in again to continue.: Try logging in using 'coder login <url>'.

        Error: Cookie "coder_session_token" or query parameter must be provided.

This happens because the PSK auth doesn't work for the entitlement warnings or other startup checks.

We should just ignore these checks when starting an external provisioner daemon as they are meant for humans not a daemon.

Metadata

Metadata

Assignees

Labels

s3Bugs that confuse, annoy, or are purely cosmetic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions