Skip to content

Error applying a token more than the allowed uses #2239

@nluaces

Description

@nluaces

Describe the bug
When I apply an access token more than the allowed uses:

skupper system apply -f token.yaml

the output is this:

skupper system reload -n east
Sources will be consumed from namespace "east"
2025/08/25 19:55:10 ERROR RedeemClaims: failed to redeem claim name=site1-3996910b-c935-4650-9462-d0fab2652310 error="Received HTTP Response 404: No such access granted"
2025/08/25 19:55:10 ERROR Bootstrap failed, restoring namespace
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x1a66708]

goroutine 1 [running]:
github.com/skupperproject/skupper/internal/nonkube/common.RedeemClaims(0xc00023bc70)
	/home/nluaces/workspace/skupper/internal/nonkube/common/claim_redeemer.go:36 +0x3e8
github.com/skupperproject/skupper/internal/nonkube/compat.(*SiteStateRenderer).Render(0xc0005964c0, 0xc00023a230, 0x1)
	/home/nluaces/workspace/skupper/internal/nonkube/compat/site_state_renderer.go:120 +0x53a
github.com/skupperproject/skupper/internal/nonkube/bootstrap.Bootstrap(0xc0004a3c50)
	/home/nluaces/workspace/skupper/internal/nonkube/bootstrap/bootstrap.go:137 +0x4bd
github.com/skupperproject/skupper/internal/cmd/skupper/system/nonkube.(*CmdSystemReload).Run(0xc0004a3c20)
	/home/nluaces/workspace/skupper/internal/cmd/skupper/system/nonkube/system_reload.go:73 +0x42
github.com/skupperproject/skupper/internal/cmd/skupper/system.CmdSystemReloadFactory.ConfigureCobraCommand.func2(0xc0004d1508?, {0xc00051e000?, 0x0?, 0x2?})
	/home/nluaces/workspace/skupper/internal/cmd/skupper/common/command.go:56 +0x5d
github.com/spf13/cobra.(*Command).execute(0xc0004d1508, {0xc000594160, 0x2, 0x2})
	/home/nluaces/workspace/skupper/vendor/github.com/spf13/cobra/command.go:989 +0xabb
github.com/spf13/cobra.(*Command).ExecuteC(0x37c0e80)
	/home/nluaces/workspace/skupper/vendor/github.com/spf13/cobra/command.go:1117 +0x44f
github.com/spf13/cobra.(*Command).Execute(0x37c0e80?)
	/home/nluaces/workspace/skupper/vendor/github.com/spf13/cobra/command.go:1041 +0x13
main.main()
	/home/nluaces/workspace/skupper/cmd/skupper/main.go:15 +0x18

How To Reproduce
Steps to reproduce the behavior:

  • skupper install -p podman
  • skupper site create my-site -n east
  • (generate a token with skupper token issue in a different site)
  • skupper system apply -f my-token.yaml -n east
  • skupper system start -n east
  • skupper system reload -n east

Expected behavior
It should not show the complete stacktrace

Environment details

  • Skupper CLI: 2.X
  • Skupper Operator (if applicable): N/A
  • Platform: podman, docker

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

cliIssues associated with the CLIv2issue for v2 Skupper version

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions