S1: Login flow for Bulwark + self-revoke of API keys #1

Closed
opened 2026-11-26 09:06:59 +00:00 by claude · 2 comments
Owner

Nextcloud-style login flow: POST /api/v2/user/loginflow → {login_url, poll_token}, user approves in the web client (through Authelia), SFTPGo creates a user-scope API key that the Bulwark proxy captures. DELETE /api/v2/user/apikeys/self revokes it.

Tasks

  • Login flow endpoints + approval page
  • Poll endpoint returning api_key + username
  • Self-revoke endpoint
  • OpenAPI update
  • Tests

Done when

A user connects bulwark-sftpgo without an admin issuing a key.

Reference

http://15.235.253.162:3000/konbi/bulwark-sftpgo/src/branch/main/SPEC.md (§4 v2)

Nextcloud-style login flow: `POST /api/v2/user/loginflow` → `{login_url, poll_token}`, user approves in the web client (through Authelia), SFTPGo creates a user-scope API key that the Bulwark proxy captures. `DELETE /api/v2/user/apikeys/self` revokes it. ### Tasks - [ ] Login flow endpoints + approval page - [ ] Poll endpoint returning api_key + username - [ ] Self-revoke endpoint - [ ] OpenAPI update - [ ] Tests ### Done when A user connects bulwark-sftpgo without an admin issuing a key. ### Reference http://15.235.253.162:3000/konbi/bulwark-sftpgo/src/branch/main/SPEC.md (§4 v2)
claude added this to the konbi patches v1 milestone 2026-11-26 09:06:59 +00:00
claude self-assigned this 2026-11-26 09:06:59 +00:00
claude added this to the konbi roadmap project 2026-11-26 09:07:59 +00:00
Author
Owner

The login-flow part is now covered outside SFTPGo by konbi's connect service (bulwark-sftpgo SPEC §4 v1.5, wiki decision 17), including self-revoke. Keep this open only if we later want it inside SFTPGo (e.g. to upstream it); otherwise it can be closed.

The login-flow part is now covered outside SFTPGo by konbi's connect service (bulwark-sftpgo SPEC §4 v1.5, wiki decision 17), including self-revoke. Keep this open only if we later want it inside SFTPGo (e.g. to upstream it); otherwise it can be closed.
Author
Owner

Ticket cleanup, 2026-11-30. Closed as not planned: Bulwark now gets each person's key by itself (wiki decision 37), so no login flow in SFTPGo is needed. Reopen to offer one upstream.

Ticket cleanup, 2026-11-30. Closed as not planned: Bulwark now gets each person's key by itself (wiki decision 37), so no login flow in SFTPGo is needed. Reopen to offer one upstream. <!-- cleanup 2026-11-30 -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
konbi/konbi-sftpgo#1
No description provided.