Skip to content

fix(main): fix basic auth for helm pull or push - #12237

Merged
joejulian merged 1 commit into
helm:mainfrom
cuisongliu:auth_basic
Aug 1, 2023
Merged

joejulian merged 1 commit into
helm:mainfrom
cuisongliu:auth_basic

Conversation

@cuisongliu

Copy link
Copy Markdown
Contributor

closes #12234

What this PR does / why we need it:

add pull and push using basic auth or bearer auth

Special notes for your reviewer:

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

@yxxhero

yxxhero commented Jul 22, 2023

Copy link
Copy Markdown
Member

@sabre1041 hi. I'm sorry to bother you. could you have time to review this PR?

@yxxhero
yxxhero requested a review from sabre1041 July 22, 2023 12:08
@yxxhero yxxhero added this to the 3.12.3 milestone Jul 22, 2023
Comment thread pkg/registry/util.go
// "To receive authorization, the client sends the userid and password,
// separated by a single colon (":") character, within a base64
// encoded string in the credentials."
// It is not meant to be urlencoded.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding some unit tests will be better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@sabre1041

sabre1041 commented Jul 31, 2023 •

Copy link
Copy Markdown
Contributor

@cuisongliu just wanted to let you know that im currently testing this PR

@sabre1041 sabre1041 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

helm push using zot is 403

5 participants