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

Use Case: storing WebCrypto generated public key for an app #47

Open
bblfish opened this issue Jan 29, 2016 · 6 comments
Open

Use Case: storing WebCrypto generated public key for an app #47

bblfish opened this issue Jan 29, 2016 · 6 comments

Comments

@bblfish
Copy link
Member

bblfish commented Jan 29, 2016

I have a simple foaf-browser application that can produce a public key using Http-Signature ((but this issue would be the same were I to use webid-rsa)). I can't really test it without saving that key. So I need a space for the application to save that key which can then identify the application when used by that browser.

@bblfish bblfish changed the title my first app storage storing an apps pubic key Jan 31, 2016
@bblfish bblfish changed the title storing an apps pubic key storing an apps public key Jan 31, 2016
@bblfish
Copy link
Member Author

bblfish commented Jan 31, 2016

As this is bound to take a lot of iterations to work out correctly I opened a wiki page so that edits can be placed together:
https://github.com/read-write-web/SoLiD/wiki/Storing-an-Apps-Public-Key

@timbl
Copy link
Contributor

timbl commented Feb 2, 2016

Please state the objective. And when you say "app" do you mean always "web app with a given origin"? Do you mean here the public key of a given origin? If so, cac one use the TLS cert public key for that origin?

@timbl timbl changed the title storing an apps public key storing an app's public key Feb 2, 2016
@bblfish bblfish changed the title storing an app's public key storing an app with a given origin's public key Feb 2, 2016
@bblfish bblfish changed the title storing an app with a given origin's public key storing WebCrypto generated public key for an app Feb 2, 2016
@bblfish
Copy link
Member Author

bblfish commented Feb 2, 2016

My use case was to store the WebCrypto generated public key on the server to give apps from that origin access to the apps' folder where the user could store her preferences. This was in order to finish my implementation of HTTP-Signature documented in issue-52 of solid-spec

After discussion on gitter I realised that acl:origin would solve one important part of this problem, and also that it would allow this to work with WebID-TLS too! So that is really neat, and opens a few possibilities I had not thought of.

@bblfish bblfish changed the title storing WebCrypto generated public key for an app Use Case: storing WebCrypto generated public key for an app Feb 3, 2016
@bblfish
Copy link
Member Author

bblfish commented Feb 3, 2016

There is a pull request out now for this, so it's easier to comment on the details
Pull Request 60

@bblfish
Copy link
Member Author

bblfish commented Feb 6, 2016

I have continued editing this on my wiki, as it is easier to think that way, and as my PR is taking time to get reviewed.

I have now looked at four protocol options:

  • P1: Publish the key in a public space (perhaps using a distributed hash table protocol)
  • P2: Create a Container for the application in the user's application space and save the key there
  • P3: Place the key in a Specialised Basic Container
  • P4: Place the key in a specialised (In)direct Container that also adds the link from the webid to the key

@Mitzi-Laszlo
Copy link
Contributor

You can find more conversation on this subject here https://forum.solidproject.org/t/use-case-storing-webcrypto-generated-public-key-for-an-app/386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants