Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SCRAM implementation to adhere spec #60

Merged
merged 1 commit into from Dec 29, 2019
Merged

Fix SCRAM implementation to adhere spec #60

merged 1 commit into from Dec 29, 2019

Conversation

@tailhook
Copy link
Contributor

tailhook commented Dec 27, 2019

By specification nonce is not base64 encoded string. Quoting the
spec:

r: This attribute specifies a sequence of random printable ASCII
characters excluding ',' (which forms the nonce used as input to
the hash function). No quoting is applied to this string.

I mean current edgedb doesn't accept anything other than valid
base64-encoded string including padding, which is wrong. (The generation
of nonce using base64 as well as client implementation are fine).

Unfortunately this requires a tiny patch in the edgedb itself (so tests are broken now).

tailhook added a commit to edgedb/edgedb that referenced this pull request Dec 27, 2019
The edgedb-python that requires this is:
edgedb/edgedb-python#60
By specification `nonce` is not base64 encoded string. Quoting the
spec:

>  o  r: This attribute specifies a sequence of random printable ASCII
>     characters excluding ',' (which forms the nonce used as input to
>     the hash function).  No quoting is applied to this string.

I mean current edgedb doesn't accept anything other than valid
base64-encoded string including padding, which is wrong. (The generation
of nonce using base64 as well as client implementation are fine).
@tailhook tailhook force-pushed the fix_scram branch from f8c1b4b to 9865a3e Dec 27, 2019
@tailhook tailhook added this to In progress in Alpha 2 via automation Dec 27, 2019
Alpha 2 automation moved this from In progress to Reviewer approved Dec 27, 2019
@elprans elprans merged commit 9935129 into master Dec 29, 2019
7 checks passed
7 checks passed
test (3.6, ubuntu-latest)
Details
test (3.6, macos-latest)
Details
test (3.7, ubuntu-latest)
Details
test (3.7, macos-latest)
Details
test (3.8, ubuntu-latest)
Details
test (3.8, macos-latest)
Details
license/cla Contributor License Agreement is signed.
Details
Alpha 2 automation moved this from Reviewer approved to Done Dec 29, 2019
sthagen added a commit to sthagen/edgedb-python that referenced this pull request Dec 29, 2019
Fix SCRAM implementation to adhere spec (edgedb#60)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
@elprans elprans mentioned this pull request Dec 30, 2019
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
@1st1 1st1 deleted the fix_scram branch Dec 30, 2019
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)
1st1 added a commit to edgedb/edgedb that referenced this pull request Dec 30, 2019
The edgedb-python that requires this is:
edgedb/edgedb-python#60
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)

* Update SASL-related protocol messages
  (by @tailhook in cc95d8d)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)

* Update SASL-related protocol messages
  (by @tailhook in cc95d8d)
elprans added a commit that referenced this pull request Dec 30, 2019
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)

* Update SASL-related protocol messages
  (by @tailhook in cc95d8d)
elprans added a commit that referenced this pull request Dec 30, 2019
v0.7.0a5
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)

* Update SASL-related protocol messages
  (by @tailhook in cc95d8d)
elprans added a commit that referenced this pull request Dec 30, 2019
v0.7.0a5
Fixes
=====

* Fix SCRAM implementation to adhere to the spec
  (by @tailhook in 9935129 for #60)

* Update SASL-related protocol messages
  (by @tailhook in cc95d8d)

* Set protocol version to 0.7
  (by @1st1 in 919a4c7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Alpha 2
  
Done
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.