Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulumi Access tokens stopped working #16509

Closed
edgehero opened this issue Jun 27, 2024 · 3 comments
Closed

Pulumi Access tokens stopped working #16509

edgehero opened this issue Jun 27, 2024 · 3 comments
Labels
kind/bug Some behavior is incorrect or out of spec resolution/no-repro This issue wasn't able to be reproduced

Comments

@edgehero
Copy link

What happened?

Pulumi Access tokens stopped working, you can not login with one anymore. and also not create one anymore. what is happening?

Example

export PULUMI_ACCESS_TOKEN=accesstoken
pulumi login 
error: problem logging in: invalid access token

Output of pulumi about

CLI
Version 3.99.0
Go Version go1.21.5
Go Compiler gc

Host
OS Microsoft Windows 10 Enterprise
Version 10.0.19045 Build 19045
Arch x86_64

Additional context

is there a service to check if something of pulumi is offline?

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@edgehero edgehero added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jun 27, 2024
@bramleffers
Copy link

Just checked it. You'll need to enter alphanumaric charcteres so NO spaces. The error that you get is the following;

{
    "code": 400,
    "message": "Bad Request: Token name may only contain alphanumeric, hyphens, or underscores"
}

It is not reflected in the GUI this needs to be fixed.

@Frassle
Copy link
Member

Frassle commented Jun 27, 2024

I don't see that 400 error code? Trying this with an extra print for the internal http error I see:

PULUMI_ACCESS_TOKEN=" pul-xxxxxx  " pulumi login
Logging in using access token from PULUMI_ACCESS_TOKEN
[401] Unauthorized: No credentials provided or are invalid.
error: problem logging in: invalid access token

That's a 401 and no message about the token name?

@bramleffers
Copy link

bramleffers commented Jun 28, 2024

@Frassle I'm sorry it is not in the CLI - it's generating a access token from the web-interface.

https://app.pulumi.com/${orgName}/settings/org-tokens

I just tested it again and it maybe it was a hickup or the web-interface is already updated because we are enabled to generate tokens again. So this one can be closed. Thank you for looking into this.

@lukehoban lukehoban added resolution/no-repro This issue wasn't able to be reproduced and removed needs-triage Needs attention from the triage team labels Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/no-repro This issue wasn't able to be reproduced
Projects
None yet
Development

No branches or pull requests

4 participants