Skip to content

Consider deprecating init -e none now and removing it with Borg 2 #9104

@PhrozenByte

Description

@PhrozenByte

/kind discussion

This issue exists to get some feedback whether deprecating init --encryption none now and removing it with Borg 2 is feasible.

Prior discussion see #9072 (comment)

Since version 1.1 Borg supports the authenticated mode as an alternative to none mode: Contents are stored unencrypted, but authenticated using the HMAC-SHA256 hash. This protects users from accidental or malicious attempts to tamper with the repo, including denial-of-service attacks against clients. That's why authenticated mode is recommended over none mode since Borg 1.1 and none mode is discouraged for new repos, but still fully supported.

Since Borg 2 requires users to transfer their Borg 1 archives over to a new Borg 2 repo anyway, I think this is the best time to remove none mode if we actually consider it obsolete. AFAIK transfer requires rechunking then. The idea is to officially deprecate none mode now and remove it with Borg 2 (with the exception of transfer --from-borg1), users really should use something else (either authenticated, or repokey / keyfile with an empty passphrase).

I'm not 100% convinced about this idea yet either, but some feedback and a discussion about it might clarify things.

Open question for our encryption experts: What are the implications of using an empty passphrase with authenticated mode?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions