Skip to content

feat(user-agent): rename the client to socket-python-cli - #320

Open
John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
ua/lowercase-client-name
Open

John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
ua/lowercase-client-name

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Use one lowercase socket-python-cli User-Agent name across direct and SDK requests, so API attribution stays consistent.

Socket accepts both the old and new identifiers during rollout. Both code paths now use the same constant.

Both changed files parse, and no old identifier remains.

@jdalton
John-David Dalton (jdalton) requested a review from a team as a code owner August 27, 2026 20:04
@lelia lelia self-assigned this Aug 28, 2026
lelia
lelia previously requested changes Sep 2, 2026

@lelia lelia 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.

John-David Dalton (@jdalton) thanks for adding this, but I think we need to implement backend changes first before we rename on the client side.

I confirmed that backend attribution currently matches user-agents on exact, case sensitive prefixes, and currently only SocketPythonCLI/ is registered, meaning that this rename will cause us to silently lose Python CLI attribution as users upgrade.

By the way, the same class of change needs to take place on the SDK side, too - in fact, the SocketSDKPython/ user-agent appears to have never been registered on the backend. We may as well fix the gap everywhere in one go, if you're up for it.

@jdalton

This comment was marked as outdated.

Use one client name for CLI and SDK requests. Preserve the current release version and record the change under Unreleased.
@jdalton

Copy link
Copy Markdown
Contributor Author

The backend now recognizes both CLI prefixes and SocketSDKPython/, with regression coverage. I refreshed this branch onto main; all 582 unit tests pass. Please take another look. Production deployment still needs confirmation before release.

@jdalton
John-David Dalton (jdalton) dismissed lelia’s stale review October 29, 2026 15:51

Backend support for both CLI names and the SDK name has landed. The branch is refreshed and CI passes. Requesting a fresh review.

@jdalton
John-David Dalton (jdalton) requested review from lelia and removed request for lelia October 29, 2026 15:52

This branch was successfully deployed

1 active (outdated) deployment
socket-firewall — a2e8bc6c Deployed Oct 12, 2026 by jdalton via python-sfw-smoke-enterprise #460
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