Skip to content

feat: Clarify the semantics of src_key and dst_key #217

Description

@HalfSweet

Currently, we only have the dst_key field to store private keys. However, in practice, dst_key can also be used to access src repositories as long as we add the corresponding public key. This violates the principle of least privilege.

Therefore, we propose a new structure with three fields: src_key, dst_key, and private_key.
src_key and dst_key are used to access the source and destination repositories respectively, each requiring its own public key. Using dst_key cannot access src, and vice versa. private_key serves as a fallback mechanism. If either src_key or dst_key is empty, data from private_key will be used. When employing private_key, it is recommended to configure separate public keys for each repository to prevent accidental access to unintended repositories due to misconfiguration.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions