GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Reject retired credentials in CLI transports by jdalton · Pull Request #397 · SocketDev/socket-python-cli

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Oct 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

The CLI rejects a retired shared API credential before sending requests or starting reachability checks, and tells users to configure a replacement.

The check covers config parsing, HTTP client construction, and subprocess credentials. Existing environment and argument precedence is unchanged.

Validation: 10 focused tests and scoped Ruff checks pass.

Reject a retired shared API credential before API requests or reachability execution.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jdalton
John-David Dalton (jdalton) requested a review from a team as a code owner October 13, 2026 12:42
github-advanced-security[bot]
github-advanced-security Bot found potential problems Oct 13, 2026
View reviewed changes
Comment thread socketsecurity/retired_api_token.py Dismissed

Uh oh!

There was an error while loading. Please reload this page.

@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/retired-credential-recovery branch from 31ea670 to db4007e Compare October 13, 2026 12:50
@jdalton
John-David Dalton (jdalton) temporarily deployed to socket-firewall October 13, 2026 12:50 — with GitHub Actions Inactive
@jdalton
Reject retired credentials in CLI transports
cfada31
Refuse the retired credential before the CLI starts HTTP or reachability work. Increment the package version required by the published-release check.

Assisted-by: Codex:gpt-6.1-sol
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/retired-credential-recovery branch from db4007e to cfada31 Compare October 13, 2026 12:52
@jdalton
John-David Dalton (jdalton) temporarily deployed to socket-firewall October 13, 2026 12:52 — with GitHub Actions Inactive
cursor[bot]
cursor Bot reviewed Oct 13, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but none of the reported issues met your autofix severity threshold.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit cfada31. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread socketsecurity/config.py
args.api_token
)
api_token = select_api_token(os.environ, args.api_token)
reject_retired_api_token(api_token)

@cursor cursor Bot Oct 13, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Retired-token error escapes CLI handler

Medium Severity

reject_retired_api_token raises ValueError from CliConfig.from_args. cli catches that and calls from_args again to read --disable-blocking and --exit-code-on-api-error. The second call raises the same error, so _emit_infrastructure_error never runs and those flags are ignored. Operators get an uncaught traceback instead of the CLI's formatted infrastructure error path.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit cfada31. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jdalton
John-David Dalton (jdalton) requested a review from Vasco Santos (vasco-santos) October 26, 2026 15:49

This branch was previously deployed

1 inactive deployment
socket-firewall — cfada316 Deployed Oct 13, 2026 by jdalton via python-sfw-smoke-enterprise #469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments
@vasco-santos Vasco Santos (vasco-santos) Awaiting requested review from vasco-santos
+1 more reviewer
@github-advanced-security github-advanced-security[bot] github-advanced-security[bot] left review comments
Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@jdalton @github-advanced-security
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.