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

opt back in to hmac secret extension because it's disabled now #2

Open
glyph opened this issue Nov 28, 2024 · 0 comments · May be fixed by #4
Open

opt back in to hmac secret extension because it's disabled now #2

glyph opened this issue Nov 28, 2024 · 0 comments · May be fixed by #4

Comments

@glyph
Copy link
Owner

glyph commented Nov 28, 2024

Touch your authenticator to open the vault at ~/Secrets/pypi.tokenring
Traceback (most recent call last):
  File "/Users/glyph/.virtualenvs/TokenRing/bin/tokenring", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/glyph/.virtualenvs/TokenRing/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/.virtualenvs/TokenRing/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/glyph/.virtualenvs/TokenRing/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/.virtualenvs/TokenRing/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/.virtualenvs/TokenRing/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/.virtualenvs/TokenRing/lib/python3.11/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/.virtualenvs/TokenRing/lib/python3.11/site-packages/pyuac/main_decorator.py", line 71, in main_requires_admin
    return run_function(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/TokenRing/src/tokenring/cli.py", line 67, in agent
    vault = local_ring.realize_vault()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/TokenRing/src/tokenring/local.py", line 35, in realize_vault
    self.vault = Vault.load(self.location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/TokenRing/src/tokenring/vault.py", line 114, in load
    return cls.deserialize(interaction, client, contents, where)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/TokenRing/src/tokenring/vault.py", line 64, in deserialize
    vault_handle.remember_key()
  File "/Users/glyph/Projects/TokenRing/src/tokenring/handles.py", line 164, in remember_key
    self._saved_key = self.key_as_bytes()
                      ^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/TokenRing/src/tokenring/handles.py", line 173, in key_as_bytes
    return self.credential.key_from_salt(self.salt)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/TokenRing/src/tokenring/handles.py", line 108, in key_from_salt
    output1 = assertion_result.extension_results["hmacGetSecret"]["output1"]
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Users/glyph/Projects/python-fido2/fido2/webauthn.py", line 673, in __getitem__
    value = self._members[key]
            ~~~~~~~~~~~~~^^^^^
KeyError: 'hmacGetSecret'

glyph added a commit that referenced this issue Nov 28, 2024
fixes #2

This commit was sponsored by Devin Prater, Greg Back, James C Abel,
and my other patrons.  If you want to join them, you can support my
work at https://glyph.im/patrons/.
@glyph glyph linked a pull request Nov 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant