keybase-issues icon indicating copy to clipboard operation
keybase-issues copied to clipboard

DNS Assertions Don't Work for Accounts with Multiple DNS Proofs

Open mdawaffe opened this issue 12 years ago • 4 comments

My account has three DNS proofs:

$ keybase id mdawaffe --assert twitter:mdawaffe --assert github:mdawaffe --assert web:http://blogwaffe.com
✔ public key fingerprint: 9CEF 1DD3 FC16 8031 96F4 0D39 A47A 8785 D991 9CDB
✔ "mdawaffe" on twitter: https://twitter.com/mdawaffe/status/492174558137286656
✔ "mdawaffe" on github: https://gist.github.com/67e87120cf4f192358e3
✔ admin of blogwaffe.com via HTTP: http://blogwaffe.com/.well-known/keybase.txt
✔ admin of the DNS zone for blogwaffe.com
✔ admin of the DNS zone for mdawaffe.me
✔ admin of the DNS zone for mdawaffe.com
warn: Assertion for DNS zones ["blogwaffe.com"] were found but not specified
warn: Assertion for DNS zones ["mdawaffe.me"] were found but not specified
warn: Assertion for DNS zones ["mdawaffe.com"] were found but not specified

Adding one DNS assertion to the command removes all three warnings:

$ keybase id mdawaffe --assert twitter:mdawaffe --assert github:mdawaffe --assert web:http://blogwaffe.com --assert dns:blogwaffe.com
✔ public key fingerprint: 9CEF 1DD3 FC16 8031 96F4 0D39 A47A 8785 D991 9CDB
✔ "mdawaffe" on twitter: https://twitter.com/mdawaffe/status/492174558137286656
✔ "mdawaffe" on github: https://gist.github.com/67e87120cf4f192358e3
✔ admin of blogwaffe.com via HTTP: http://blogwaffe.com/.well-known/keybase.txt
✔ admin of the DNS zone for blogwaffe.com
✔ admin of the DNS zone for mdawaffe.me
✔ admin of the DNS zone for mdawaffe.com

With two DNS assertions, the command fails:

$ keybase id mdawaffe --assert twitter:mdawaffe --assert github:mdawaffe --assert web:http://blogwaffe.com --assert dns:blogwaffe.com --assert dns:mdawaffe.me
✔ public key fingerprint: 9CEF 1DD3 FC16 8031 96F4 0D39 A47A 8785 D991 9CDB
✔ "mdawaffe" on twitter: https://twitter.com/mdawaffe/status/492174558137286656
✔ "mdawaffe" on github: https://gist.github.com/67e87120cf4f192358e3
✔ admin of blogwaffe.com via HTTP: http://blogwaffe.com/.well-known/keybase.txt
✔ admin of the DNS zone for blogwaffe.com
✔ admin of the DNS zone for mdawaffe.me
✔ admin of the DNS zone for mdawaffe.com
error: DNS ownership assertion failed for 'blogwaffe.com'
error: DNS ownership assertion failed for 'mdawaffe.me'
error: Bad assertion

With all three DNS assertions, the command fails peculiarly:

$ keybase id mdawaffe --assert twitter:mdawaffe --assert github:mdawaffe --assert web:http://blogwaffe.com --assert dns:blogwaffe.com --assert dns:mdawaffe.me --assert dns:mdawaffe.com
✔ public key fingerprint: 9CEF 1DD3 FC16 8031 96F4 0D39 A47A 8785 D991 9CDB
✔ "mdawaffe" on twitter: https://twitter.com/mdawaffe/status/492174558137286656
✔ "mdawaffe" on github: https://gist.github.com/67e87120cf4f192358e3
✔ admin of blogwaffe.com via HTTP: http://blogwaffe.com/.well-known/keybase.txt
✔ admin of the DNS zone for blogwaffe.com
✔ admin of the DNS zone for mdawaffe.me
✔ admin of the DNS zone for mdawaffe.com
error: DNS ownership assertion failed for 'blogwaffe.com'
error: DNS ownership assertion failed for 'mdawaffe.me'
error: DNS ownership assertion failed for 'mdawaffe.me'
error: DNS ownership assertion failed for 'mdawaffe.com'
error: Bad assertion

My CLI version:

$ keybase version
keybase (keybase.io CLI) v0.4.11
- node.js v0.10.28
- gpg (GnuPG/MacGPG2) 2.0.22
- libgcrypt 1.5.3
Identifies as: 'keybase.io node.js client v0.4.11 darwin'

mdawaffe avatar Jul 24 '14 10:07 mdawaffe

The current version of the keybase client no longer supports the --assert option for the id command and instead takes assertions in user@twitter format (Thanks @maxtaco for catching that).

$ keybase version
Client:  1.0.16-20160715160114+f0caa34
Service: 1.0.16-20160715160114+f0caa34
$ keybase id -h
NAME:
   keybase id - Identify a user and check their signature chain

USAGE:
   keybase id [command options] [username]

DESCRIPTION:
   Identify a user and check their signature chain. Don't specify a username to identify yourself. You can also specify proof assertions like user@twitter.

OPTIONS:

   -s, --skip-proof-cache   Skip cached proofs, force re-check

gene1wood avatar Jul 22 '16 21:07 gene1wood

FYI, this works:

keybase id mdawaffe+mdawaffe.com@dns+mdawaffe@github

maxtaco avatar Jul 22 '16 21:07 maxtaco

Looks like this works now (with the new assert syntax) and doesn't give error messages

$ keybase id -s mdawaffe+mdawaffe@twitter+mdawaffe@github+http://blogwaffe.com
▶ INFO Identifying mdawaffe
✔ public key fingerprint: 9CEF 1DD3 FC16 8031 96F4 0D39 A47A 8785 D991 9CDB
✔ admin of DNS zone mdawaffe.com: found TXT entry keybase-site-verification=7k3zze3X9EHFGRuJ8AVdfFONOFKT_ETsRAh-gpaINyI
✔ admin of DNS zone mdawaffe.me: found TXT entry keybase-site-verification=UPjXkk3dYJV8-ModEndVvMecGoYHyMVo5B4ORy6pxsU
✔ admin of DNS zone blogwaffe.com: found TXT entry keybase-site-verification=HeNr56TO7uSox36lGE20WM1HYqiEBgOzeUkuq-sqrKI
✔ admin of blogwaffe.com via HTTP: http://blogwaffe.com/.well-known/keybase.txt
✔ "mdawaffe" on github: https://gist.github.com/67e87120cf4f192358e3
✔ "mdawaffe" on twitter: https://twitter.com/mdawaffe/status/492174558137286656
$ keybase id -s mdawaffe+mdawaffe@twitter+mdawaffe@github+http://blogwaffe.com+blogwaffe.com@dns+mdawaffe.me@dns
▶ INFO Identifying mdawaffe
✔ public key fingerprint: 9CEF 1DD3 FC16 8031 96F4 0D39 A47A 8785 D991 9CDB
✔ admin of DNS zone mdawaffe.me: found TXT entry keybase-site-verification=UPjXkk3dYJV8-ModEndVvMecGoYHyMVo5B4ORy6pxsU
✔ admin of DNS zone mdawaffe.com: found TXT entry keybase-site-verification=7k3zze3X9EHFGRuJ8AVdfFONOFKT_ETsRAh-gpaINyI
✔ admin of DNS zone blogwaffe.com: found TXT entry keybase-site-verification=HeNr56TO7uSox36lGE20WM1HYqiEBgOzeUkuq-sqrKI
✔ admin of blogwaffe.com via HTTP: http://blogwaffe.com/.well-known/keybase.txt
✔ "mdawaffe" on github: https://gist.github.com/67e87120cf4f192358e3
✔ "mdawaffe" on twitter: https://twitter.com/mdawaffe/status/492174558137286656
$ keybase id -s mdawaffe+mdawaffe@twitter+mdawaffe@github+http://blogwaffe.com+blogwaffe.com@dns+mdawaffe.me@dns+mdawaffe.com@dns
▶ INFO Identifying mdawaffe
✔ public key fingerprint: 9CEF 1DD3 FC16 8031 96F4 0D39 A47A 8785 D991 9CDB
✔ admin of DNS zone mdawaffe.me: found TXT entry keybase-site-verification=UPjXkk3dYJV8-ModEndVvMecGoYHyMVo5B4ORy6pxsU
✔ admin of DNS zone blogwaffe.com: found TXT entry keybase-site-verification=HeNr56TO7uSox36lGE20WM1HYqiEBgOzeUkuq-sqrKI
✔ admin of DNS zone mdawaffe.com: found TXT entry keybase-site-verification=7k3zze3X9EHFGRuJ8AVdfFONOFKT_ETsRAh-gpaINyI
✔ admin of blogwaffe.com via HTTP: http://blogwaffe.com/.well-known/keybase.txt
✔ "mdawaffe" on github: https://gist.github.com/67e87120cf4f192358e3
✔ "mdawaffe" on twitter: https://twitter.com/mdawaffe/status/492174558137286656

gene1wood avatar Jul 22 '16 22:07 gene1wood

The new syntax works for me as well. Thanks.

mdawaffe avatar Sep 10 '16 16:09 mdawaffe