Skip to content

chore: update baton-sdk to v0.18.4 - #93

Merged
luisina-santos merged 2 commits into
mainfrom
luisinasantos/update-baton-sdk-v0.18.4
Jul 16, 2026
Merged

chore: update baton-sdk to v0.18.4#93
luisina-santos merged 2 commits into
mainfrom
luisinasantos/update-baton-sdk-v0.18.4

Conversation

@luisina-santos

Copy link
Copy Markdown
Contributor

Summary

  • Bumps github.com/conductorone/baton-sdk from v0.3.35 to v0.18.4 (go directive bumped to 1.25.2), pulling in ~50 updated transitive deps (grpc, otel, aws-sdk-v2, sqlite/pebble storage, etc.).
  • Fixes the one breaking change introduced by the jump: crypto.GenerateRandomPassword now takes *v2.LocalCredentialOptions_RandomPassword instead of *v2.CredentialOptions_RandomPassword (same fields, new wrapper type on a new parent message). Updated the call site in pkg/connector/users.go.

Test plan

  • go build ./... passes
  • go vet ./... passes
  • Built binary runs; --help and capabilities output unchanged (config/field layer unaffected)
  • No unit tests exist in this repo to run

🤖 Generated with Claude Code

@luisina-santos
luisina-santos requested a review from a team July 16, 2026 13:27
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Connector PR Review: chore: update baton-sdk to v0.18.4

Blocking Issues: 0 | Suggestions: 0 | Threads Resolved: 0
Criteria: Criteria status: loaded .claude/skills/ci-review.md from trusted base 1d26107e1286.
Review mode: full
View review run

Review Summary

The full PR diff was scanned for security and correctness. This is a baton-sdk bump from v0.3.35 to v0.18.4 (go directive to 1.25.2) with ~50 transitive dep updates. The only behavioral source change is the required migration from CredentialOptions to LocalCredentialOptions types (including RandomPassword). This migration is mandatory: the new SDK addAccountManager explicitly rejects the old interface at vendor connectorbuilder/accounts.go:161, and all accessor methods (GetNoPassword, GetRandomPassword, GetLength) exist on the new types. Remaining changes are cosmetic (constant extraction for name/email/asc, whitespace) and a CI switch to go-version-file. No new issues found.

Security Issues

None found.

Correctness Issues

None found.

Suggestions

None.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No blocking issues found.

luisina-santos and others added 2 commits July 16, 2026 11:26
Fixes the one breaking change introduced by the jump from v0.3.35: crypto.GenerateRandomPassword
now takes *v2.LocalCredentialOptions_RandomPassword instead of *v2.CredentialOptions_RandomPassword.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Update AccountManagerLimited implementation to use v2.LocalCredentialOptions
  instead of the removed v2.CredentialOptions, fixing "old account manager
  interface implemented" runtime error.
- Fix go-lint goconst findings by extracting shared string literals
  ("asc", "name", "email") into named constants.
- Point ci.yaml's setup-go steps at go-version-file: "go.mod" (and reorder
  checkout before install) so CI uses the full go1.25.2 SDK release instead
  of the slim auto-downloaded toolchain module, which was missing the
  covdata tool needed by -covermode=count.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@luisina-santos
luisina-santos force-pushed the luisinasantos/update-baton-sdk-v0.18.4 branch from b030843 to fa75a91 Compare July 16, 2026 14:27
@luisina-santos
luisina-santos merged commit 97b1a1b into main Jul 16, 2026
8 checks passed
Comment thread .github/workflows/ci.yaml
go-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this whole file can go away, since its redundant to the verify.yaml via baton-admin but can be another pr later on

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No blocking issues found.

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.

2 participants