Skip to content

authorized_keys inconsistency when using "admin regenerate keys" #8138

Description

@NiklasRosenstein
  • Gitea version (or commit ref): 1.10.0+dev-271-g7eacdcf39
  • Git version: 2.22.0
  • Operating system: Alpine Linux 3.10.2
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Adding an SSH key to your account adds an entry in authorized_keys with command="/app/gitea/gitea serv key-X ..." .... Using the gitea admin regenerate keys command, those entries will be turned into command="/usr/local/bin/gitea serv key-X ..." ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/staletype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions