-
Notifications
You must be signed in to change notification settings - Fork 92
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
Support X.509 Certificate in Attestation Token. #265
Conversation
1defd83
to
42d7a4f
Compare
4e2313a
to
ca01ece
Compare
814bcb7
to
9f2996f
Compare
56ea272
to
d265339
Compare
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.
Nice job. I think this is a good feature. I made a few notes.
A couple of other things:
Might be good to update the quickstart guide or some of the dockerfiles to make this change easier on users, especially since I think things might break if a user does not supply some trusted certs to the KBS. It would be good to clarify the default behavior.
I guess this does not support updating the certs at runtime. That is probably ok.
57330b1
to
5fc203c
Compare
@fitzthum Thanks for reviewing, now this PR is updated. |
3d76c0a
to
e8c8b0c
Compare
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.
One more comment. Also, are we doing anything to verify requests made from the KBS to the AS? In particular when the AS sends a set policy request to the AS, the AS should probably check if the request is genuine. Do we support this?
@fitzthum When we use KBS with Builtin-AS or gRPC-AS, we have assumed that AS actually runs in the same trusted security domain as KBS and is controlled by the same entity (such as tenants). So under this premise, the interfaces provided by AS are all available for direct invocation without verification now. We are currently building a scenario which using KBS with RESTful-AS (although we do not fully support it yet). In this scenario, AS and KBS may run on different nodes and be controlled by different entities, which AS may require some additional validation of request from KBS. This is the enhancement point we need to consider next. |
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.
I think this is fine to merge, but lack of validation of requests (particularly SetPolicy) to the AS seems like potentially a big problem.
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.
Thanks. Only some nits.
Signed-off-by: Jiale Zhang <[email protected]>
ff28b30
to
8990880
Compare
Signed-off-by: Jiale Zhang <[email protected]>
…field Signed-off-by: Jiale Zhang <[email protected]>
Signed-off-by: Jiale Zhang <[email protected]>
Signed-off-by: Jiale Zhang <[email protected]>
Signed-off-by: Jiale Zhang <[email protected]>
Signed-off-by: Jiale Zhang <[email protected]>
Signed-off-by: Jiale Zhang <[email protected]>
cc @Xynnn007 @Lu-Biao @peterzcst @fitzthum