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

Require clients to be online when creating new shared symmetric encryption keys #984

Closed
gkc opened this issue Apr 3, 2023 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@gkc
Copy link
Contributor

gkc commented Apr 3, 2023

NOTE that this is already a requirement, since the sending client always needs to fetch the public key of the recipient. So this ticket can be reduced to a "ensure appropriate exceptions with appropriate messages are raised when attempting to do something that requires the client to be online"

Is your feature request related to a problem? Please describe.

We need to make the lifecycle of shared symmetric encryption keys entirely predictable.

Describe the solution you'd like

Clients should

  • check if shared_key.bob@alice exists (can be done locally and then on atServer - this is how things currently work I believe, so no change required)
  • if none exists, and we are online, generate one and store it on atServer (and not locally - that way, the only way that shared_key.bob@alice gets into the local data store is if it was synced from the server)
  • if not online, raise exception for client app stating that one needs to be online when creating new shared symmetric encryption keys

Additional context

See also atsign-foundation/at_protocol#65 which is another part of what's required to achieve the goal of completely predictable lifecycle of shared symmetric encryption keys

@gkc gkc added the enhancement New feature or request label Apr 3, 2023
@gkc
Copy link
Contributor Author

gkc commented Apr 3, 2023

Marking for discussion on an architecture call before moving to implementation

@gkc gkc self-assigned this Apr 4, 2023
@gkc gkc closed this as completed May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant