cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
29.94k stars 3.79k forks source link

meta-issue: improvements to password authentication #51601

Closed knz closed 2 years ago

knz commented 4 years ago

This issue is intended to serve as high-level overview of the strategy for password authn in CockroachDB/CC.

It outlines how the engineering discussions were orienting towards a "blue" strategy with limitations. It also explains how a different "green" strategy was developed recently. It explains why/how we are going to target "green" and de-prioritize "blue".

Background

Over the past two years a number of issues have been raised over seemingly disconnected aspects of pw authn, including but not limited to:

This collection of issues bury their lede: what is the high-level problem to solve?

They also point to conflicting directions: if we persist to use bcrypt-based authn, that precludes SCRAM-SHA-256 which is desirable for e.g. compatibility. Which one should we choose?

Objectives: security and compatibility

Two strategies

Over the past year, there have been two strategies discussed to achieve the goals identified above.

Blue strategy: narrative

In the gray strategy, we perform some incremental changes to various pieces in CockroachDB and achieve 60% of the security objectives.

Green strategy: narrative

In the white strategy, we adopt a more principled approach.

Detailed explanation here: https://docs.google.com/document/d/1HOpN_P9fJOIyh-bCvOti6lBNLDS4Ia-2nrJEPGeUnA0/edit#

Summary: aiming for green

Strategy Blue strategy Green strategy
Objective A Partial Strong
Objective B Partial Strong
Objective C Not covered Strong
Objective D OK OK

So we're going to aim for the "green" strategy and de-prioritize the proposals from the "blue" strategy.

blathers-crl[bot] commented 4 years ago

Hi @knz, I've guessed the C-ategory of your issue and suitably labeled it. Please re-label if inaccurate.

While you're here, please consider adding an A- label to help keep our repository tidy.

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

knz commented 2 years ago

we've achieved most of the stated goals on this.