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 — Bandit: clear the B608 findings in the native backend by tae898 · Pull Request #504 · humemai/arcadedb-embedded-python

This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Conversation

@tae898

@tae898 tae898 commented Oct 24, 2026

Copy link
Copy Markdown

The Bandit security scan (bindings/python) job fails on native-preview with seven B608 findings in _native/database.py, records.py and schema_objects.py.

Each f-string interpolates only backtick-quoted schema identifiers, fixed function names (outE, inE, ...), or a record's own RID; user values already go through ? parameters. Following the repo convention (#496) the queries stay as they are and carry # nosec B608 with the reason, moved into a variable where black would otherwise push the comment off the f-string line.

One real change: lookup_by_rid interpolated a caller-supplied string, so it now checks the RID shape (#?-?\d+:-?\d+) first and raises ArcadeDBError otherwise, instead of suppressing the finding.

Checked locally: uvx bandit==1.9.4 -c pyproject.toml -r src tests --severity-level low --confidence-level low reports no issues on this branch, and pre-commit passes. #500 gets its own fix for the two findings in tests/test_native_startup.py.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@tae898 @claude
Bandit: mark the native SQL f-strings (B608) and validate the RID in …
0ada807
…lookup_by_rid

The native backend builds statements from backtick-quoted schema identifiers, fixed function names and record ids; every value already goes through ? parameters. lookup_by_rid took a caller string, so it now checks the RID shape before interpolating.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@tae898 tae898 mentioned this pull request Oct 24, 2026
JVM wheel: ship the _native subpackage #505
Merged
tae898 added a commit that referenced this pull request Oct 24, 2026
@tae898 @claude
Bandit: annotate the test's fixed-argv subprocess calls; carry #504's…
c5a0b71
… _native nosec fixes

#504 and this PR each fixed one of native-preview's two red checks and failed on the other, so this branch now carries both (merged origin/fix-native-bandit).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tae898

tae898 commented Oct 24, 2026

Copy link
Copy Markdown
Author

Carried by #505 (its branch merged this one in), because each PR fixed one of native-preview's two red checks and failed on the other. When #505 merges, this PR's commits are in native-preview and GitHub marks it merged.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tae898
tae898 merged commit c8b266a into native-preview Oct 24, 2026
7 of 43 checks passed

Uh oh!

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

@tae898
tae898 deleted the fix-native-bandit branch October 24, 2026 14:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

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.

1 participant

@tae898
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 01402775 — 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.