Skip to content

connect: fix etcd connection for non admin users#106

Merged
bigbes merged 1 commit into
masterfrom
g.rybakov/tntp-7780-fix-admin-for-connect
May 29, 2026
Merged

connect: fix etcd connection for non admin users#106
bigbes merged 1 commit into
masterfrom
g.rybakov/tntp-7780-fix-admin-for-connect

Conversation

@sssciel
Copy link
Copy Markdown
Member

@sssciel sssciel commented May 26, 2026

NewEtcdStorage checked the cluster status through the Status function, which requires root permissions, see
etcd-io/etcd#21666. Therefore, an additional check was added to ensure that the connection does not crash in the absence of root permissions.

Part of TNTP-7780

@sssciel sssciel force-pushed the g.rybakov/tntp-7780-fix-admin-for-connect branch 6 times, most recently from 31d318a to 7622464 Compare May 27, 2026 11:23
@bigbes bigbes requested a review from Mockird31 May 27, 2026 20:41
NewEtcdStorage checked the cluster status through the Maintenance.Status
function, which requires root permissions. Replace it with MemberList
(serializable), which is open to any authenticated user and avoids a
raft round-trip, so the connection probe no longer crashes for
non-admin credentials.

Part of TNTP-7780
@sssciel sssciel force-pushed the g.rybakov/tntp-7780-fix-admin-for-connect branch from 7622464 to 361d1cc Compare May 29, 2026 12:10
@bigbes bigbes merged commit ad8be43 into master May 29, 2026
15 checks passed
@bigbes bigbes deleted the g.rybakov/tntp-7780-fix-admin-for-connect branch May 29, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants