Skip to content

feat(cli): use proto-generated Credentials type#29

Merged
odsod merged 2 commits intomainfrom
proto-credentials
Apr 9, 2026
Merged

feat(cli): use proto-generated Credentials type#29
odsod merged 2 commits intomainfrom
proto-credentials

Conversation

@odsod
Copy link
Copy Markdown
Member

@odsod odsod commented Apr 9, 2026

Summary

  • Add credentials.proto with SDK credential schema (region, client_id, client_secret, api_key)
  • Replace hand-maintained Credentials struct with proto-generated type
  • Make FileStore proto-aware: type-switches on proto.Message to use protojson, falls back to encoding/json for non-proto types
  • Update tests to use proto credential constructors

Test plan

  • go build ./... passes for cli/ module
  • Tests pass
  • Generated code matches proto definition

odsod added 2 commits April 7, 2026 14:10
For auditing and transparency purposes.
- Replace hand-maintained Credentials struct with proto-generated type
  from new credentials.proto (edition 2023, opaque API)
- Make FileStore.Read/Write proto-aware via proto.Message type switch,
  using protojson for serialization
- Credentials file format changes from json tags to protojson field
  names (already camelCase, so backwards-compatible)
@odsod odsod merged commit d2fe617 into main Apr 9, 2026
1 check passed
@odsod odsod deleted the proto-credentials branch April 9, 2026 11:35
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.

1 participant