-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(encrypt): support encrypt when sync #11
Conversation
deb04af
to
91e50bf
Compare
proto/sync/v1/sync_service.proto
Outdated
@@ -48,8 +60,11 @@ message SyncResponse { | |||
repeated Identity identity_set = 14; | |||
} | |||
|
|||
// 如果是用于创建新的组,则提供master_key,用于加密rsa密钥 | |||
message UpdateRequest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议请求名称打全,UpdateRequest的翻译结果是“更新请求”,单独看很难看出来是update啥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看起来是历史遗留的问题x 之前只有update一点东西x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个命名 确实难绷了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
尚未完善
proto/sync/v1/sync_service.proto
Outdated
@@ -48,8 +60,11 @@ message SyncResponse { | |||
repeated Identity identity_set = 14; | |||
} | |||
|
|||
// 如果是用于创建新的组,则提供master_key,用于加密rsa密钥 | |||
message UpdateRequest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
尚未完善
来观测一下进度x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还是有一些偏差,需要一个改以及沟通
proto/sync/v1/group.proto
Outdated
string publicKey = 9; // 公钥,公钥存在服务器上,加密的私钥与相关用户关联存储 | ||
} | ||
|
||
message GroupKeyChain{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这东西我没明白作用啊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync的时候肯定还得鉴权,不能单靠key来管 另外key是在用户的keyWallet里头 而不是在群组下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个PubKey是用来加密具体组的密钥,不是个人的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
打算是用于加密组的组PubKey和组直接放一起 作为基本信息,PriKey直接存到用户KeyWallet下,鉴权的话涉及密钥操作就判断是否是管理和非管理的区别
________________________________
From: GoldenSheep ***@***.***>
Sent: Wednesday, November 22, 2023 10:44:08 AM
To: juanjiTech/termium-proto ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [juanjiTech/termium-proto] feat(encrypt): support encrypt when sync (PR #11)
加邀请,接受,删除 这三个功能的接口吧
—
Reply to this email directly, view it on GitHub<#11 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEOGQQVVF5YTNEQXQ3LSM33YFXJPRAVCNFSM6AAAAAA66K7BAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSGUZDIOBXGQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
草 看到了 |
创建新组的时候生成密钥链
获取加密的密钥是根据提供的gid获取
修改master_key时,将服务器上用户相关的密钥全部更新