Skip to content

Fix plugins.qgis.org security-review findings#309

Merged
harminius merged 1 commit into
masterfrom
fix/qgis-plugin-security-b105
Jul 21, 2026
Merged

Fix plugins.qgis.org security-review findings#309
harminius merged 1 commit into
masterfrom
fix/qgis-plugin-security-b105

Conversation

@harminius

Copy link
Copy Markdown
Contributor

Rename token_prefix -> bearer_prefix in decode_token_data so the "Bearer " scheme prefix is not catched by Bandit B105 (hardcoded password) - a critical, non-skippable finding that auto-rejects the bundled plugin on plugins.qgis.org.

Suppress the three internal asserts with # nosec B101 so they do not fail the review's Bandit check on a web upload.

Rename token_prefix -> bearer_prefix in decode_token_data so the
"Bearer " scheme prefix no longer trips Bandit B105 (hardcoded
password) - a critical, non-waivable finding that auto-rejects the
bundled plugin on plugins.qgis.org.

Suppress the three internal asserts with "# nosec B101" so they do
not fail the review's Bandit check on a web upload.
@harminius
harminius requested a review from MarcelGeo July 20, 2026 08:09
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 29726781903

Coverage remained the same at 83.395%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: 2 uncovered changes across 1 file (4 of 6 lines covered, 66.67%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
mergin/cli.py 2 0 0.0%
Total (3 files) 6 4 66.67%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 5673
Covered Lines: 4731
Line Coverage: 83.4%
Coverage Strength: 0.83 hits per line

💛 - Coveralls

@harminius
harminius merged commit f7a8940 into master Jul 21, 2026
5 checks passed
@harminius harminius added this to the 0.14.1 milestone Jul 21, 2026
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.

3 participants