etcdserver: allow non-admin to fetch member list and alarms#21538
etcdserver: allow non-admin to fetch member list and alarms#21538
Conversation
|
we might want to relax the permission to ListAlarm as well: allow any authenticated users to list alarm; otherwises we might will see similar complaint soon. |
Codecov Report❌ Patch coverage is Additional details and impacted files
... and 20 files with indirect coverage changes @@ Coverage Diff @@
## main #21538 +/- ##
==========================================
- Coverage 68.46% 68.44% -0.02%
==========================================
Files 428 428
Lines 35383 35397 +14
==========================================
+ Hits 24226 24229 +3
- Misses 9749 9760 +11
Partials 1408 1408 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
In some environments, etcd members do not have stable hostnames or IP addresses. During maintenance, all etcd nodes may be replaced, resulting in new hostnames and IPs for every member. In that case, clients such as Patroni can lose access to the cluster entirely if they are not allowed to refresh the member list. Allow non-admin users to fetch the member list so they can rediscover updated member endpoints after such topology changes. Signed-off-by: Wei Fu <fuweid89@gmail.com>
851f615 to
a2987fd
Compare
|
Is this a blocker for 3.6.10, et al? |
|
/ok-to-test |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, fuweid The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
yes, we need to backport this PR to stable releases. |
If all nodes were replaced, than who would you ask for member list? |
Nodes aren't replaced instantly, querying topology every 30s-5min usually allows catching all changes. |
|
Is there any objection for this change? |
In some environments, etcd members do not have stable hostnames or IP addresses. During maintenance, all etcd nodes may be replaced, resulting in new hostnames and IPs for every member. In that case, clients such as Patroni can lose access to the cluster entirely if they are not allowed to refresh the member list.
Allow non-admin users to fetch the member list so they can rediscover updated member endpoints after such topology changes.
@ahrtr @serathius @ivanvc @CyberDem0n
REF: #21516 (comment)