Skip to content

Fast authentication for caching_sha2_password #56747

@dveeden

Description

@dveeden

Enhancement

The caching_sha2_password authentication method supports a "fast authentication" (cached) and a "full authentication". TiDB only supports "full authentication". This issue is to add support for "fast authentication".

tidb/pkg/server/conn.go

Lines 702 to 704 in c82ba4e

// Currently we always send a "FastAuthFail" as the cached part of the protocol isn't implemented yet.
// This triggers the client to send the full response.
err := cc.writePacket([]byte{0, 0, 0, 0, shaCommand, fastAuthFail})

https://dev.mysql.com/doc/dev/mysql-server/latest/page_caching_sha2_authentication_exchanges.html

Previous work: pingcap/parser#1328

Related:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions