Skip to content

Deployment keys should not collide with user keys #938

Closed
@evilstiefel

Description

@evilstiefel
  • Gitea version (or commit ref): Gitea Version: 1.0.1+1-gab4eb0da
  • Git version: git version 2.11.0
  • Operating system: Linux e94dde8df2eb 3.13.0-108-generic use in instead string join #155-Ubuntu
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When trying to add a SSH key, if it has been used as a deployment key on the site, the user should be warned about that collision and the key be rejected. Otherwise, pushing will simply fail with the following git output:

Gitea: Key permission denied
Cannot push with deployment key: 3
fatal: Could not read from remote repository.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions