-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add config value that gives users options to skip calculating role for each lease #22651
Conversation
CI Results: |
@@ -112,6 +112,8 @@ type Config struct { | |||
|
|||
DetectDeadlocks string `hcl:"detect_deadlocks"` | |||
|
|||
ImpreciseLeaseRoleTracking bool `hcl:"imprecise_lease_role_tracking"` |
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.
Though it's more verbose, how about imprecise_lease_count_quota_role_tracking
?
I worry that "lease role" won't mean a lot to customers, and changing the name in the future if it's confusing will be difficult. I also want to be very explicit that it's lease count quota specific, and doesn't affect lease behaviour otherwise.
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'm fine with this change. Although, I think documentation would help here the most. A lot of vault config names/env vars names are confusing to me until I read the docs
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.
wow I keep going back and forth on this one. The only concern I have is that imprecise_lease_count_quota_role_tracking
is a bit of a mouthful. @ncabatoff @mpalmi do you have a preference?
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.
If we want to go this route, perhaps role_tracking
is too much of an implementation detail and we could get away with skip_pre_quota_lease_tracking
, or skip_old_lease_counts_on_quota_creation
?
I'm honestly cool with any name we land on. This is a tricky one to pin down and I tend to agree that the documentation is the important part.
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'm going to stick with what we have. we have pretty good documentation on the option now which makes me feel better about it.
Build Results: |
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.
The suggested text change LGTM with one small change.
Co-authored-by: Mike Palmiotto <[email protected]>
Co-authored-by: Mike Palmiotto <[email protected]>
…r each lease (#22651) * Add config value that gives users options to skip calculating role for each lease * add changelog * change name * add config for testing * Update changelog/22651.txt Co-authored-by: Violet Hynes <[email protected]> * update tests, docs and reorder logic in conditional * fix comment * update comment * fix comment again * Update comments and change if order * change comment again * add other comment * fix tests * add documentation * edit docs * Update http/util.go Co-authored-by: Mike Palmiotto <[email protected]> * Update vault/core.go * Update vault/core.go * update var name * udpate docs * Update vault/request_handling.go Co-authored-by: Mike Palmiotto <[email protected]> * 1 more docs change --------- Co-authored-by: Violet Hynes <[email protected]> Co-authored-by: Mike Palmiotto <[email protected]>
…r each lease (#22651) * Add config value that gives users options to skip calculating role for each lease * add changelog * change name * add config for testing * Update changelog/22651.txt Co-authored-by: Violet Hynes <[email protected]> * update tests, docs and reorder logic in conditional * fix comment * update comment * fix comment again * Update comments and change if order * change comment again * add other comment * fix tests * add documentation * edit docs * Update http/util.go Co-authored-by: Mike Palmiotto <[email protected]> * Update vault/core.go * Update vault/core.go * update var name * udpate docs * Update vault/request_handling.go Co-authored-by: Mike Palmiotto <[email protected]> * 1 more docs change --------- Co-authored-by: Violet Hynes <[email protected]> Co-authored-by: Mike Palmiotto <[email protected]>
…ting role for each lease into release/1.13.x (#22729) * Add config value that gives users options to skip calculating role for each lease (#22651) * Add config value that gives users options to skip calculating role for each lease * add changelog * change name * add config for testing * Update changelog/22651.txt Co-authored-by: Violet Hynes <[email protected]> * update tests, docs and reorder logic in conditional * fix comment * update comment * fix comment again * Update comments and change if order * change comment again * add other comment * fix tests * add documentation * edit docs * Update http/util.go Co-authored-by: Mike Palmiotto <[email protected]> * Update vault/core.go * Update vault/core.go * update var name * udpate docs * Update vault/request_handling.go Co-authored-by: Mike Palmiotto <[email protected]> * 1 more docs change --------- Co-authored-by: Violet Hynes <[email protected]> Co-authored-by: Mike Palmiotto <[email protected]> * remove wrong part of cherry-pick --------- Co-authored-by: Ellie <[email protected]> Co-authored-by: Violet Hynes <[email protected]> Co-authored-by: Mike Palmiotto <[email protected]>
…r each lease (#22651) (#22730) * Add config value that gives users options to skip calculating role for each lease * add changelog * change name * add config for testing * Update changelog/22651.txt * update tests, docs and reorder logic in conditional * fix comment * update comment * fix comment again * Update comments and change if order * change comment again * add other comment * fix tests * add documentation * edit docs * Update http/util.go * Update vault/core.go * Update vault/core.go * update var name * udpate docs * Update vault/request_handling.go * 1 more docs change --------- Co-authored-by: Ellie <[email protected]> Co-authored-by: Violet Hynes <[email protected]> Co-authored-by: Mike Palmiotto <[email protected]>
Skipping calculation of role significantly reduces latency for cloud provider logins.