Skip to content

fix: catch disabled TLS checks in session calls #413

Closed

Description

@uniqueg

Problem

Cloud Registry's semgrep rules (.semgrep/cloud-registry.yml) are an early subset of FOCA's shared rules: they lack jwt-decode-unsafe-algorithms, yaml-unsafe-load and tls-verification-disabled, and have no rule tests. The shared rules also miss disabled certificate verification in calls on sessions (e.g., session.get(url, verify=False); ruff's S501 only checks calls of the requests module). Two JWT gaps came up as well: verify_signature set to None, and the header's alg reaching algorithms through a variable.

The ast-grep rules have the same gaps as before elixir-cloud-aai/prowes#147: string-status-code misses returned tuples in parentheses, and root-logger-call is missing.

Part of elixir-cloud-aai/foca#783.

What to do

  • Take over FOCA's shared semgrep rules, as widened in fix: catch disabled TLS checks in session calls foca#783, with their tests (.semgrep/cloud-registry.py, .semgrep/cloud-registry.test.yaml), identical apart from paths, and run the rule tests in pre-commit.
  • Port string-status-code and root-logger-call from proWES, with their tests.
  • Fix or suppress (with a reason) whatever the rules find.

Done when

  • session.get(url, verify=False) and the two JWT cases are flagged, and the rule files match FOCA's apart from paths.

Activity

  1. self-assigned this
    on Nov 17, 2026
  2. added
    priority: medium
    status: in progress
    type: security
    workload: hours
    on Nov 17, 2026
  3. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 17, 2026
  4. moved this from In progress to In review in ELIXIR On-Cloudon Nov 17, 2026
  5. moved this from In review to Done in ELIXIR On-Cloudon Nov 17, 2026
  6. removed
    status: in progress
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: mediumtype: securityworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions