Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug: newline append to ssh key #15672

Closed
Closed
@gjrtimmer

Description

@gjrtimmer

When requesting the user's SSH Key with the API (using Terraform script, curl), the response has a newline is appended to the SSH key, which is a bug to me because I have to remove it by hand for the key to work.

API Endpoint: /api/v2/users/me/gitsshkey

{
    "user_id": "REDACTED",
    "created_at": "2024-07-12T18:09:58.597203+02:00",
    "updated_at": "2024-11-27T14:15:10.286881+01:00",
    "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOBxIYrqi0vuWEnDlL0UzK4rHP/a/oJwF5mV5vkvZ9Gt\n"
}

This is a bug, without stripping the newline I cannot add the key to GitLab

Metadata

Metadata

Assignees

Labels

apiArea: HTTP APIbug riskProne to bugsneed-helpAssign this label prompts an engineer to check the issue. Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions