Skip to content

migrations default to md5 instead of sha256 #7131

@olliezyuhscripta

Description

@olliezyuhscripta

noticed migrations_hash_algorithm defaults to md5 in config.py even though sha256 is available

migrations_hash_algorithm: Literal["md5", "sha256"] = "md5"

i know its just for migration file tracking not crypto, but md5 is deprecated everywhere and you already have sha256 wired up. seems like a trivial swap

also the comment says "you cannot change the hash_algorithm after migrations have already been applied once" so new users who pick the default get stuck with md5 forever

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions