Skip to content

Comments

Fix a few issues with key setup#29

Merged
dale-c-anderson merged 1 commit intomasterfrom
fix-key-setup-problems
Sep 11, 2025
Merged

Fix a few issues with key setup#29
dale-c-anderson merged 1 commit intomasterfrom
fix-key-setup-problems

Conversation

@dale-c-anderson
Copy link
Member

  • let curl follow redirects - if requesting /jdoe.keys, but the gitlab username is actually jDoe (with mixed case), gitlab will redirect the request to the correct case (add -L to curl)
  • only ever return public keys (grep for ^ssh)
  • make sure the command fails if the server responds with something other than 2xx (add --fail to curl)

* let curl follow redirects - if requesting /jdoe.keys, but the gitlab
  username is actually jDoe (with mixed case), gitlab will redirect
  the request to the correct case (add -L to curl)
* only ever return public keys  (grep for ^ssh)
* make sure the command fails if the server responds with something
  other than 2xx (add  --fail to curl)
@dale-c-anderson dale-c-anderson merged commit 5405cf4 into master Sep 11, 2025
2 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants