Skip to content

chore(deps): pin authlib>=1.6.9 to resolve CVE-2026-27962#306

Merged
jsell-rh merged 112 commits intomainfrom
chore/update-container-images
Mar 24, 2026
Merged

chore(deps): pin authlib>=1.6.9 to resolve CVE-2026-27962#306
jsell-rh merged 112 commits intomainfrom
chore/update-container-images

Conversation

@jsell-rh
Copy link
Copy Markdown
Collaborator

@jsell-rh jsell-rh commented Mar 24, 2026

Summary

  • Pins authlib>=1.6.9 as an explicit dependency to resolve CVE-2026-27962
  • authlib was previously an unpinned transitive dependency resolved to 1.6.6, which is vulnerable

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated authentication dependency to address a security vulnerability.

…lembic

- Add SQLAlchemy 2.0 with asyncpg for async database operations
- Add Alembic for schema migrations
- Add python-ulid for ULID support instead of UUID
- Create read/write engine separation with connection pooling
- Create FastAPI dependency injection for database sessions
- Create SQLAlchemy declarative base with timestamp mixin
- Initialize Alembic with async migration support
- Create initial migration for teams table (ULID primary key)
- Add comprehensive unit tests for engines and dependencies
- Configure Alembic to use settings module for database URL
- Enable ruff post-write hook for migration formatting

Refs: AIHCM-121
- Add authzed library for SpiceDB integration
- Add python-ulid for ULID support
- Create ResourceType, RelationType, Permission enums (using Group not Team)
- Create AuthorizationProvider protocol for swappable implementations
- Implement SpiceDBClient with async methods for relationships and permissions
- Create SpiceDB schema (.zed) with Tenant→Workspace→Group hierarchy
- Create AuthorizationProbe for domain-oriented observability
- Move ObservationContext to shared_kernel (fix architectural boundary)
- Add 35 unit tests for types and probes
- All 410 tests passing

Refs: AIHCM-122
Resolved conflicts in authorization files by accepting remote changes:
- shared_kernel/authorization/types.py (docstring fix)
- shared_kernel/authorization/spicedb/client.py (_parse_reference helper)
jsell-rh and others added 24 commits February 18, 2026 11:40
- apache/age: release_PG17_1.6.0 → release_PG18_1.7.0
- authzed/spicedb: v1.48.0 → v1.50.0
- ubi9/python-312: pin to digest sha256:d7b4607a...

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…o PG18

- Pin spicedb-migrate to v1.50.0 to match spicedb service
- Update db-init job and compose postgres client from 17-alpine to 18-alpine

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a1a30e8a-6399-4dad-a350-8c8e9e777294

📥 Commits

Reviewing files that changed from the base of the PR and between ae96fd5 and 2e69935.

⛔ Files ignored due to path filters (1)
  • src/api/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • src/api/pyproject.toml

Walkthrough

The pull request adds authlib>=1.6.9 as a dependency to the Python project configuration file src/api/pyproject.toml. The addition includes an inline comment indicating the version constraint is set to address a CVE-related issue in a transitive dependency.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: adding an explicit pin for authlib to resolve a specific CVE vulnerability.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/update-container-images

Comment @coderabbitai help to get the list of available commands and usage tips.

@jonmosco
Copy link
Copy Markdown
Contributor

LGTM

@jsell-rh jsell-rh enabled auto-merge (squash) March 24, 2026 13:28
@jsell-rh jsell-rh merged commit 5e7c2c6 into main Mar 24, 2026
10 of 11 checks passed
@jsell-rh jsell-rh deleted the chore/update-container-images branch March 24, 2026 13:29
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.

2 participants