Skip to content

Bug: API key always expires, even on the host #1269

@bpmct

Description

@bpmct

OS Information

  • OS: Debian 11 (production VM running Coder)

  • Architecture:

  • coder --version:

    root@coder-v2:~/coder# coder --version
    Coder v0.0.0-devel+1df943e Mon Apr 18 23:01:49 UTC 2022
    https:/github.com/coder/coder/commit/1df943e010cdf576fb169293db02daf93f3f268e
    

Steps to Reproduce

  1. Set up a Coder deployment somewhere and keep it running (or maybe this happens if you are logged in to dev.coder.com)
  2. Log in to that deployment (coder login <url>)
  3. Wait 3 days (unsure of interval), or simulate expiration somehow in the code
  4. Run coder ws ls

Expected

I can use a long-lived API token or session on the Coder host, or even my developer laptop.

Actual

My key expires every 1-3 days. I'm not quite sure the interval.

$ coder ws ls
status code 401: api key expired at "2022-04-29 18:52:01.463991 +0000 UTC"

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy