kyma-project / kyma-project/cli

`alpha authorize repository` fails with uppercase letters

Open
#2,870 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
125
Forks
124
PR merge metrics
No merged PRs in 30d

Description

Description

When repo name (or org name) contains uppercase letters, the command fails

Steps to reproduce

kyma alpha authorize repository  --client-id aaa --repository FilipRudy/cli --namespace fr --role admin

Fix
Set generate rolebinding name to lowercase letters, keep everything else as-is (oidc spec, rolebinding spec...)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the implementation of the alpha authorize repository command and trace how the repository or organization name becomes the generated RoleBinding name. Reproduce with the provided command using uppercase letters, then verify the generated name is lowercase while the OIDC and RoleBinding specs remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.