-
Notifications
You must be signed in to change notification settings - Fork 8
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
prepare SDK for the distributed KES implementation #5
Conversation
aa231b7
to
ec45caf
Compare
Changes look good. Please check and fix lint issues |
PTAL @shtripat |
This commit changes the SDK w.r.t. to the upcoming distributed KES server implementation. In particular, the listing code has been changed to a paginated implementation. However, backwards compatibility with existing KES servers is maintained. Signed-off-by: Andreas Auernhammer <[email protected]>
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.
Code looks fine. Approved.
Have couple of questions.
@@ -38,171 +35,14 @@ type IdentityInfo struct { | |||
Policy string // Name of the associated policy | |||
CreatedAt time.Time // Point in time when the identity was created | |||
CreatedBy Identity // Identity that created the identity | |||
ExpiresAt time.Time |
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.
Is it like ExpiresAt
can be later compared to now() +TTL
? What is use case of having both?
// Policy contains a set of rules that explicitly allow | ||
// or deny HTTP requests. | ||
// A Rule controls HTTP requests and is part of a policy. | ||
type Rule struct{} |
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.
Do we have plans to add Rule
attributes or some functions later?
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.
Yeah, in the future we will add options to tune access control
This commit changes the SDK w.r.t. to the upcoming distributed KES server implementation.
In particular, the listing code has been changed
to a paginated implementation. However, backwards
compatibility with existing KES servers is maintained.