Skip to content

[raft] Serve the admin API for the membership of Raft groups - #1903

Open
MariemBaccari wants to merge 2 commits into
interuss:masterfrom
Orbitalize:serve_admin
Open

MariemBaccari wants to merge 2 commits into
interuss:masterfrom
Orbitalize:serve_admin

Conversation

@MariemBaccari

@MariemBaccari MariemBaccari commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

This PR partially addresses #1719 and closes #1790. It depends on #1902 so only the last commit should be reviewed.
It implements serving the admin API on a unix socket and managing the raft groups via consensus.

Comment thread cmds/core-service/main.go Resolved
Comment thread pkg/admin/server/start.go Resolved
Comment thread cmds/core-service/main.go Resolved
err = stacktrace.Propagate(err, "Could not add node %d to the %s raft group", nodeID, req.GroupName)
errResp := &restapi.ErrorResponse{Message: dsserr.Handle(ctx, err)}
switch stacktrace.GetCode(err) {
// Unavailable: this node is not a member of the group, the request must be sent to a member.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: that not in sync with description of 400 in the interface, the case should probably be added no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just updated it to sync it with the latest admin.yaml.

Comment thread pkg/admin/server/start.go Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[raft][admin] Admin API protection

2 participants