Skip to content

add secure enclave signing #2141

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

James-Pickett
Copy link
Contributor

@James-Pickett James-Pickett commented Mar 5, 2025

var err error
if runtime.GOOS != "darwin" && agent.HardwareKeys() != nil && agent.HardwareKeys().Public() != nil {
if agent.HardwareKeys() != nil && agent.HardwareKeys().Public() != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we get an error here signing with hardware keys ... should we just fall back to signing without?

@@ -114,3 +91,97 @@ func (s *UserServer) getSecureEnclaveKey(w http.ResponseWriter, r *http.Request)

w.Write(keyBytes)
}

func (s *UserServer) signWithSecureEnclave(w http.ResponseWriter, r *http.Request) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODOS

  • verify krypto box from server
  • add timestamp and nonce

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 this pull request may close these issues.

1 participant