Skip to content

fix(utils)!: do not eval charset in generate_id - #268

Merged
uniqueg merged 23 commits into
devfrom
fix/generate-id
Oct 18, 2026
Merged

uniqueg merged 23 commits into
devfrom
fix/generate-id

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Summary

First phase-2 PR of the v0.14.0 maintenance series. Builds on #267 (and #266, #265); the new commits are fix(utils)!: do not eval charset in generate_id and docs(utils): qualify generate_id entropy claim.

foca.utils.misc.generate_id() passed its charset argument to eval(). Apps read the charset from their config files (e.g., proTES, cloud-registry), so anybody able to change the config could execute arbitrary code.

  • charset is now used literally (duplicates are still ignored)
  • characters are drawn with secrets.choice() instead of random.choice()
  • charsets that look like the previously evaluated string module expressions (e.g., string.ascii_uppercase + string.digits) raise a ValueError with a hint, rather than silently producing IDs containing ., +, spaces etc.
  • length no longer accepts booleans
  • README updated; the docstring notes that secure sampling makes IDs unpredictable from previous ones, but that guessability depends on charset and length (defaults: ~36 bits, fine for resource IDs, not for secrets; thanks Copilot)

Breaking change: apps configuring charsets as expressions need to list the characters themselves:

# before
charset: string.ascii_uppercase + string.digits
# after
charset: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

This affects at least proTES (custom.controllers.post_task.task_id.charset) and cloud-registry (custom.endpoints.services.id.charset); both will fail loudly at ID generation with the hint above until updated.

Closes #242

Verification

Test-first: the updated tests/utils/test_misc.py failed against the old implementation (6 failures: literal use of charsets, expression rejection, boolean length), and passes with the new one (14 passed).

Locally (Python 3.13): ruff check, ruff format --check, mypy foca clean.

CI: all checks pass (run): ruff, mypy, build, unit tests incl. MongoDB-dependent tests on Python 3.10–3.14, petstore integration tests, Read the Docs.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Harden generate_id() against configuration-driven code execution while improving identifier randomness, validation, and migration guidance.

Bug Fixes:

  • Prevent arbitrary code execution in generate_id() by treating configured charsets as literal character sets instead of evaluating them.
  • Use cryptographically secure randomness for generated identifiers.
  • Reject legacy string module expressions with a clear migration error and disallow boolean lengths.

Enhancements:

  • Clarify identifier entropy and charset configuration requirements in the public documentation.

Documentation:

  • Update the README to document literal charsets, secure sampling, and the limitations of identifier entropy.

Tests:

  • Expand utility tests to cover literal charset handling, legacy expression rejection, secure default character constraints, and boolean length validation.

uniqueg and others added 15 commits October 17, 2026 18:05
Replace setup.py and the requirements*.txt files with PEP 621 metadata
in pyproject.toml (setuptools backend). Distribution name, import
package and the `dev` and `docs` extras are unchanged.

- declare `requires-python = ">=3.10"` (3.9 is end of life)
- ship `py.typed` inside the package so the "Typed" classifier holds
- package only `foca*`, so `tests` is no longer installed into
  site-packages; configure pytest `pythonpath` so tests still import
- declare `typing_extensions` as a runtime dependency (it is imported
  by `foca.models.config`)
- drop the obsolete `typing` backport and the unused `toml`,
  `mypy-extensions`, `types-urllib3`, `types-setuptools`, `pylint`,
  `python-semantic-release` and `readthedocs-sphinx-ext`
- drop `setup_requires` and the setuptools-git based MANIFEST.in
- remove the stale semantic-release config from setup.cfg; move the
  mypy config to pyproject.toml (flake8 config stays in setup.cfg until
  ruff replaces it)
- install FOCA directly from the source tree in the Docker image

Closes #232

Co-Authored-By: Claude Opus 5.5 <[email protected]>
FOCA now requires Python >= 3.10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Update runtime, dev and docs dependencies while staying on Connexion 2.
Ranges now allow minor/patch updates within the current major version.

- connexion >=2.15.1,<3: makes explicit what was already resolved
  (2.15 is the only 2.x line compatible with Werkzeug 3)
- Flask >=3.1.3,<4 (fixes CVE-2026-27205); Flask-PyMongo 3.x
- cryptography >=50 (fixes six advisories in 44.x)
- flask-authz <2.8 (2.8+ hard-pins a vulnerable Flask)
- swagger-ui-bundle >=1.1 (Swagger UI 4; required by connexion 2.15)
- raise floors of celery, Flask-Cors, PyJWT, requests and dev/docs
  tools (Sphinx >=8, sphinx-rtd-theme >=3)

pip-audit reports no known vulnerabilities for the updated set.

BREAKING CHANGE: FOCA now requires Flask 3. Apps using APIs removed in
Flask 3 (e.g. `flask.Markup`, `_app_ctx_stack`, custom JSON encoders)
need to be updated.

Closes #216

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Docker: default to python:3.13-slim-trixie (Debian 13), use
  trixie-based images in CI, fix Dockerfile lint (`AS`, `ENV K=V`)
- examples: MongoDB 8.0, Python 3.13 images, drop obsolete compose
  `version` key
- Read the Docs: Ubuntu 24.04 and Python 3.13; install only the
  `docs` extra

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- update actions (Node 24 versions) and pin them by commit SHA
- split into lint/build, unit test, integration test and image jobs
- test Python 3.10-3.14 against MongoDB 8.0 (plus 3.13 on 7.0)
  instead of 16 jobs with EOL MongoDB versions; upload coverage and
  run the petstore integration tests once
- check that sdist and wheel build and pass `twine check`
- wait for the petstore app instead of sleeping; show logs on failure
- push Docker images only for pushes to `dev`, add Python 3.13/3.14
  images and move `latest` to 3.13; skip image builds on PRs (the
  integration job already builds one)
- restrict token permissions, cancel superseded PR runs, set job
  timeouts, cache pip downloads
- replace the blanket `-W ignore::DeprecationWarning` with targeted
  pytest filters for connexion's use of deprecated jsonschema APIs
- add Python 3.13 and 3.14 classifiers

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Build sdist and wheel when a GitHub release is published, check that
the release tag matches the package version, and upload to PyPI via
trusted publishing from the `pypi` environment (no API token).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Weekly grouped updates for Python dependencies, GitHub Actions and the
Docker base image, targeting `dev`. Connexion major updates are ignored
until the Connexion 3 migration (#188).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configure ruff for linting and formatting (line length 79, as used by
the existing code) with pycodestyle, Pyflakes, isort, pyupgrade,
pydocstyle (Google convention), Pylint, bugbear, simplify,
comprehensions and Ruff-specific rules. Complexity limits are left
disabled for now. Tests are exempt from docstring and magic-value
rules.

Run `ruff check` and `ruff format --check` in CI instead of flake8, and
add a pre-commit config with ruff and basic file hygiene hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Automatic, behaviour-preserving fixes by `ruff check --fix`: PEP 585
and PEP 604 annotations (closes #231), sorted imports, docstring
whitespace, f-strings, and simplified conditionals and with-blocks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
One-off reformat of all Python files with `ruff format` (Black style,
line length 79). No functional changes; one `type: ignore` comment was
moved back to the line it applies to.

Closes #237

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Docstrings (closes #239):
- add package, class and method docstrings where missing
- shorten multi-line summaries to one line (Google convention)

Linting (closes #238):
- chain exceptions raised in `except` blocks (`raise ... from exc`)
- replace mutable argument default in `_validate_jwt_public_key()`
- replace attribute probe with `hasattr()` and try/except/pass with
  `contextlib.suppress()` in exception config validation
- merge nested `with` statements in tests; minor simplifications

Disable magic-value comparisons (PLR2004), which only flag HTTP status
codes and Casbin rule lengths, and docstring rules for docs and
examples.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	.github/workflows/checks.yml
#	pyproject.toml
`generate_id()` passed its `charset` argument to `eval()`, so a charset
read from a config file could execute arbitrary code. Use the charset
literally instead, and draw characters with `secrets.choice()` rather
than `random.choice()`.

Charsets that look like the previously evaluated `string` module
expressions (e.g., `string.ascii_uppercase + string.digits`) now raise
a `ValueError` with a hint, instead of silently producing IDs with
unexpected characters. `length` no longer accepts booleans.

BREAKING CHANGE: `charset` is no longer evaluated. Apps that configure
charsets as expressions (e.g., proTES, cloud-registry) need to list
the characters themselves, e.g.,
`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`.

Closes #242

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 17, 2026 16:44
@sourcery-ai

sourcery-ai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

The PR removes code execution from generate_id configuration, switches ID sampling to secrets-based randomness with explicit validation and migration errors, documents the revised security/entropy contract, and simultaneously modernizes the repository’s tooling, dependency constraints, CI/release automation, containers, documentation, and typing/formatting across the codebase.

Sequence diagram for secure literal ID generation

sequenceDiagram
    participant Config as Application config
    participant Generate as generate_id
    participant Secrets as secrets.choice

    Config->>Generate: generate_id(charset, length)
    Generate->>Generate: Validate charset and length
    alt charset looks like string expression
        Generate-->>Config: ValueError with migration hint
    else valid literal charset
        Generate->>Generate: Deduplicate charset
        loop for each requested character
            Generate->>Secrets: choice(charset)
            Secrets-->>Generate: Selected character
        end
        Generate-->>Config: Return generated ID
    end
Loading

File-Level Changes

Change Details Files
Make identifier generation safe and cryptographically stronger while preserving duplicate-character handling and providing migration diagnostics.
  • Remove charset eval-based execution and treat configured values literally.
  • Reject legacy string-module expressions with a migration-focused ValueError.
  • Use secrets.choice for unpredictable sampling and reject boolean lengths.
  • Update unit tests, README guidance, and entropy documentation for the new contract.
foca/utils/misc.py
tests/utils/test_misc.py
README.md
Modernize and harden the project’s development, dependency, packaging, documentation, and container automation.
  • Add Dependabot and pre-commit configuration with pinned or grouped update workflows.
  • Restructure CI into lint/build, multi-version MongoDB unit-test, integration-test, and gated Docker publishing jobs.
  • Add release automation that verifies tags, builds distributions, and publishes via PyPI trusted publishing.
  • Upgrade supported Python/dependency ranges, Ruff configuration, typing syntax, and warning/tooling settings.
  • Update Docker, Read the Docs, examples, package docstrings, and broad source/test formatting and typing without intended behavior changes.
.github/dependabot.yml
.github/workflows/checks.yml
.github/workflows/release.yml
.pre-commit-config.yaml
.readthedocs.yaml
PULL_REQUEST_TEMPLATE.md
docker/Dockerfile
examples/
docs/
foca/
pyproject.toml
setup.cfg
tests/

Assessment against linked issues

Issue Objective Addressed Explanation
#242 Remove evaluation of the charset argument so callers must provide a literal string of allowed characters, preventing code injection through configuration. ✅
#242 Make former string module expressions fail with a clear migration hint rather than silently generating IDs from the expression text. ✅

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (69fa5a5) to head (8539f5c).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #268   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         1103      1101    -2     
=========================================
- Hits          1103      1101    -2     
Flag Coverage Δ
test_unit 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new YAML validation hook rejects an intentionally invalid fixture, preventing the documented all-files pre-commit check from passing.

2 open issues
What changed in this PR

Hardens FOCA’s identifier generation against configuration-driven code execution, building on the dependency and tooling updates in #265–#267.

Changes:

  • Replaces charset evaluation with literal characters, secure randomness, and stricter validation.
  • Updates dependencies, runtime images, CI, and release automation.
  • Adopts Ruff and pre-commit, modernizes annotations, and updates tests and documentation.
File Description
tests/​utils/​test_misc.py Tests literal charsets and stricter validation.
tests/​utils/​test_logging.py Reformats logging tests.
tests/​utils/​test_db.py Reformats database tests.
tests/​test_foca.py Organizes imports and formatting.
tests/​test_files/​models_petstore.py Modernizes model annotations.
tests/​test_files/​model_valid.py Reformats model fixture.
tests/​security/​test_cors.py Reformats CORS test.
tests/​security/​test_auth.py Reformats authentication tests.
tests/​security/​access_control/​test_register_access_control.py Reformats permission tests.
tests/​security/​access_control/​test_enforcement.py Modernizes enforcement test formatting and annotations.
tests/​security/​access_control/​test_access_control_server.py Reformats permission API tests.
tests/​security/​access_control/​foca_casbin_adapter/​test_casbin_rule.py Reformats rule tests.
tests/​security/​access_control/​foca_casbin_adapter/​test_adapter.py Modernizes adapter test annotations.
tests/​models/​test_config.py Reformats configuration tests.
tests/​mock_data.py Reformats shared fixtures.
tests/​factories/​test_connexion_app.py Organizes imports and formatting.
tests/​factories/​test_celery_app.py Simplifies imports.
tests/​errors/​test_errors.py Reformats error-handler tests.
tests/​database/​test_register_mongodb.py Reformats MongoDB tests.
tests/​config/​test_config_parser.py Modernizes parser test style.
tests/​api/​test_register_openapi.py Reformats OpenAPI tests.
setup.cfg Removes Flake8 configuration.
README.md Documents literal charsets and secure sampling.
pyproject.toml Updates dependencies and tooling configuration.
foca/​version.py Changes quote style only.
foca/​utils/​misc.py Removes evaluation and hardens identifier generation.
foca/​utils/​logging.py Modernizes annotations and formatting.
foca/​utils/​db.py Modernizes annotations and formatting.
foca/​utils/​__init__.py Adds package docstring.
foca/​security/​cors.py Updates documentation and formatting.
foca/​security/​auth.py Modernizes typing, defaults, and exception chaining.
foca/​security/​access_control/​register_access_control.py Modernizes annotations and formatting.
foca/​security/​access_control/​foca_casbin_adapter/​casbin_rule.py Updates typing and method documentation.
foca/​security/​access_control/​foca_casbin_adapter/​adapter.py Modernizes typing and documentation.
foca/​security/​access_control/​foca_casbin_adapter/​__init__.py Adds package docstring.
foca/​security/​access_control/​enforcement.py Modernizes typing and formatting.
foca/​security/​access_control/​constants.py Formats module docstring.
foca/​security/​access_control/​api/​__init__.py Adds package docstring.
foca/​security/​access_control/​access_control_server.py Adds exception chaining and modernizes style.
foca/​security/​__init__.py Adds package docstring.
foca/​models/​config.py Modernizes annotations, validators, and documentation.
foca/​models/​__init__.py Adds package docstring.
foca/​foca.py Updates typing, documentation, and conditional structure.
foca/​factories/​connexion_app.py Modernizes typing and formatting.
foca/​factories/​celery_app.py Updates formatting and documentation.
foca/​factories/​__init__.py Adds package docstring.
foca/​errors/​exceptions.py Modernizes typing and formatting.
foca/​errors/​__init__.py Adds package docstring.
foca/​database/​register_mongodb.py Updates formatting and documentation.
foca/​database/​__init__.py Adds package docstring.
foca/​config/​config_parser.py Modernizes typing and exception chaining.
foca/​config/​__init__.py Adds package docstring.
foca/​api/​register_openapi.py Modernizes typing and formatting.
foca/​api/​__init__.py Adds package docstring.
examples/​petstore/​docker-compose.yaml Updates Python and MongoDB images.
examples/​petstore/​controllers.py Reformats example controllers.
examples/​petstore/​app.py Reformats application entry point.
examples/​petstore-access-control/​exceptions.py Sorts imports.
examples/​petstore-access-control/​docker-compose.yaml Updates Python and MongoDB images.
examples/​petstore-access-control/​controllers.py Reformats protected controllers.
examples/​petstore-access-control/​app.py Reformats application entry point.
docs/​api/​conf.py Modernizes formatting and file handling.
docker/​Dockerfile Updates base image and Dockerfile syntax.
.readthedocs.yaml Updates documentation build environment.
.pre-commit-config.yaml Adds Ruff and file-validation hooks.
.github/​workflows/​release.yml Adds trusted PyPI publishing.
.github/​workflows/​checks.yml Separates checks and expands runtime coverage.
.github/​dependabot.yml Adds scheduled dependency updates.

Review effort: Balanced

Comment thread .pre-commit-config.yaml Resolved
Comment thread foca/utils/misc.py Resolved
uniqueg and others added 2 commits October 17, 2026 18:50
Exclude the deliberately malformed YAML fixture from `check-yaml` and
keep Markdown hard line breaks in `trailing-whitespace`, so that
`pre-commit run --all-files` passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
One-off fixes by the `end-of-file-fixer` and `trailing-whitespace`
pre-commit hooks. No content changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 17, 2026 16:58
@uniqueg
uniqueg marked this pull request as ready for review October 17, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Whitespace-containing legacy charset expressions bypass migration validation and silently produce identifiers from the wrong alphabet.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Reject legacy expressions with whitespace around attribute dots

foca/​utils/​misc.py:9

Valid legacy expressions such as string . digits bypass this pattern because Python allows whitespace around the attribute dot. Instead of raising the migration error, generate_id() samples the expression literally, producing letters, spaces, and punctuation rather than digits. Match optional whitespace around the dot and add whitespace variants to the expression-rejection tests.

2 resolved since last review

Review effort: Balanced

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 3 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="foca/utils/misc.py" line_range="9" />
<code_context>
+
+# Matches charsets that look like expressions using the `string` module,
+# which were evaluated by previous versions of `generate_id()`
+_STRING_EXPRESSION = re.compile(r"\bstring\.[a-z_]+")


</code_context>
<issue_to_address>
**Literal charsets get rejected**

When a caller's literal charset contains a substring matching `string.<lowercase_or_underscore>`, `_STRING_EXPRESSION.search()` matches that substring anywhere in the charset, so `generate_id()` raises `ValueError` instead of generating an ID from the literal characters.

Recognize a legacy expression only when the whole charset matches it.

Also at `foca/utils/misc.py:46`.
</issue_to_address>

### Comment 2
<location path="foca/utils/misc.py" line_range="9" />
<code_context>
+
+# Matches charsets that look like expressions using the `string` module,
+# which were evaluated by previous versions of `generate_id()`
+_STRING_EXPRESSION = re.compile(r"\bstring\.[a-z_]+")


</code_context>
<issue_to_address>
**Legacy expressions become ID characters**

When a former `string` expression has whitespace around the attribute-access dot, `_STRING_EXPRESSION` requires `string.` with no whitespace, so `generate_id()` treats the expression as a literal charset and samples spaces and punctuation instead of the intended characters.

Allow whitespace around the dot when matching legacy `string` expressions.
</issue_to_address>

### Comment 3
<location path="tests/utils/test_misc.py" line_range="33" />
<code_context>
         charset = "''.join([])"
-        with pytest.raises(TypeError):
+        res = generate_id(charset=charset, length=20)
+        assert set(res) <= set(charset)
+
+    def test_charset_digit_string(self):
</code_context>
<issue_to_address>
**Literal charset test accepts empty IDs**

When `generate_id` returns an empty string despite the requested length of 20, `test_charset_not_evaluated` passes when `generate_id` returns `""`, because the empty set is a subset of `charset`; a generator that produces no identifier therefore escapes this test.

Also assert that `len(res) == 20`.
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 3 findings to address first, and publishing a GitHub release now uploads the built distributions to PyPI using trusted publishing, so a faulty release can become externally available for users to install. Reverting the workflow stops future uploads but cannot fully retract an artifact that has already been published.

Blocking findings: foca/utils/misc.py:9, foca/utils/misc.py:9, tests/utils/test_misc.py:33


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread foca/utils/misc.py Resolved
Comment thread foca/utils/misc.py Resolved
Comment thread tests/utils/test_misc.py Resolved
uniqueg and others added 2 commits October 18, 2026 01:20
# Conflicts:
#	.github/workflows/checks.yml
#	pyproject.toml
Detect former charset expressions by references to actual constants
of the `string` module, allowing whitespace around the dot, so that
literal charsets that merely contain `string.<name>` are accepted and
spaced-out expressions are still rejected. Assert ID lengths in tests
of literal charsets.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 17, 2026 23:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

# Conflicts:
#	.github/workflows/checks.yml
#	.github/workflows/release.yml
#	foca/utils/misc.py
@uniqueg
uniqueg merged commit 839ffb3 into dev Oct 18, 2026
13 checks passed
@uniqueg
uniqueg deleted the fix/generate-id branch October 18, 2026 00:02
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.

feat(utils): secure "generate_id" function

2 participants