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

Refresh fails on an OrgAccessToken with a slash in the name #388

Closed
jkodroff opened this issue Aug 20, 2024 · 0 comments · Fixed by #412
Closed

Refresh fails on an OrgAccessToken with a slash in the name #388

jkodroff opened this issue Aug 20, 2024 · 0 comments · Fixed by #412
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Milestone

Comments

@jkodroff
Copy link
Member

What happened?

I get this error when running pulumi refresh on my program:

  pulumiservice:index:OrgAccessToken (pulumi-org-token):
    error: Preview failed: "pulumi-gl-demo-2024-08/GitLab CI/CD/c84f6678-6856-47cb-9d5f-1c3c46972272" is invalid, must contain a single slash ('/')

Example

const pulumiOrgToken = new pulumicloud.OrgAccessToken("pulumi-org-token", {
  name: "GitLab CI/CD",
  organizationName: pulumiOrg,
  admin: false,
});

Output of pulumi about

CLI          
Version      3.129.0
Go Version   go1.22.6
Go Compiler  gc

Plugins
KIND      NAME           VERSION
resource  aws            6.6.1
resource  gitlab         6.4.0
language  nodejs         unknown
resource  pulumiservice  0.23.2

Host     
OS       darwin
Version  14.6.1
Arch     arm64

This project is written in nodejs: executable='/opt/homebrew/bin/node' version='v22.5.1'

Current Stack: jkodrofftest/pulumi-cloud-gitlab-integration/dev

TYPE                                        URN
pulumi:pulumi:Stack                         urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumi:pulumi:Stack::pulumi-cloud-gitlab-integration-dev
pulumi:providers:aws                        urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumi:providers:aws::default_6_6_1
pulumi:providers:pulumiservice              urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumi:providers:pulumiservice::default_0_23_2
pulumi:providers:gitlab                     urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumi:providers:gitlab::default_6_4_0
pulumiservice:index:OrgAccessToken          urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumiservice:index:OrgAccessToken::pulumi-org-token
aws:iam/role:Role                           urn:pulumi:dev::pulumi-cloud-gitlab-integration::aws:iam/role:Role::gitlab-cicd-admin-role
gitlab:index/project:Project                urn:pulumi:dev::pulumi-cloud-gitlab-integration::gitlab:index/project:Project::pulumi-gitlab-demo
gitlab:index/repositoryFile:RepositoryFile  urn:pulumi:dev::pulumi-cloud-gitlab-integration::gitlab:index/repositoryFile:RepositoryFile::scripts/aws-auth.sh


Found no pending operations associated with dev

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/josh-pulumi-corp
User           josh-pulumi-corp
Organizations  josh-pulumi-corp, jkodrofftest, pulumi-gl-demo-2024-08, aws-partnership, zephyr, jkodroff-team, pulumi
Token type     personal

Dependencies:
NAME                   VERSION
@pulumi/gitlab         6.4.0
@pulumi/pulumi         3.91.0
@pulumi/pulumiservice  0.23.2
@types/node            16.18.59
@pulumi/aws            6.6.1

Pulumi locates its logs in /var/folders/5m/4n1x3f8151s35wc80w06z5k80000gn/T/ by default

Additional context

No response

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).

@jkodroff jkodroff added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Aug 20, 2024
@komalali komalali removed the needs-triage Needs attention from the triage team label Aug 20, 2024
@komalali komalali added this to the 0.110 milestone Aug 20, 2024
seanyeh added a commit that referenced this issue Sep 24, 2024
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Sep 24, 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/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants