Skip to content

duckhog: adopt duckgres Flight session token workflow #217

@bill-ph

Description

@bill-ph

Parent: #205

Summary

Adopt duckgres Flight ingress session-token workflow in duckhog/duckhog-sql client path, aligned with merged server behavior from #221.

Scope

  • In duckhog/src/flight/flight_client.cpp:
    • Capture server-issued x-duckgres-session token from Flight response headers/trailers after auth/ping and subsequent RPCs.
    • Send x-duckgres-session on all Flight RPCs while keeping Basic auth on every request.
    • Handle token invalid/unauthenticated responses with controlled token invalidation + safe retry for metadata operations only.
    • Best-effort session close on shutdown (without relying on custom duckgres Action endpoints).

Acceptance Criteria

Notes

  • This issue now tracks header-based token propagation (x-duckgres-session) and not custom action bootstrap (DuckgresCreateSessionToken).
  • Backwards compatibility fallback is out of scope for this issue.

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions