feat: Lakebase deployment, auth improvements, and PBI model routing#48
Open
MrBlack1995 wants to merge 38 commits intodatabrickslabs:feature/flowfrom
Open
feat: Lakebase deployment, auth improvements, and PBI model routing#48MrBlack1995 wants to merge 38 commits intodatabrickslabs:feature/flowfrom
MrBlack1995 wants to merge 38 commits intodatabrickslabs:feature/flowfrom
Conversation
Resolved conflict in main.py: kept colleague's ASGI class-based LocalDevAuthMiddleware, preserving settings.LOCAL_DEV_USER_EMAIL fallback instead of hardcoded admin@admin.com. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ce docs Phase 4 — Runtime output scanning & excessive agency: - Secret leak detection (10 credential pattern families) in agent output - Flow trust boundary scanning between crews in multi-crew flows - Memory poisoning defense (scan task output before persistence) - Tool output scanning in step callbacks - Excessive agency detection (PERFORMS_DESTRUCTIVE_OPERATIONS flag) Phase 5 — Optimizations: - Unified SecurityScannerPipeline singleton with audit logging - False-positive reduction (tightened MEDIUM regex patterns) - LLM guardrail SHA-256 LRU caching (skip redundant calls on retries) - Secret detector expansion (GitHub, GCP, Azure, DSA/encrypted PEM) Documentation: - Updated README_SECURITY_COMPLIANCE.md with Areas 9-16 and overdelivery table - Updated README_SECURITY_GUARDRAILS_TESTGUIDE.md to cover Phases 1-5 Tests: ~107 new tests across 7 test files (252 total security tests) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
Replace realistic-looking fake tokens in test files and docs with obviously-fake placeholders that won't trigger GitHub/GitGuardian secret scanning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
src/docs/lakebase-deployment.md— full guide covering SQLite quick-start (no Lakebase) and production Lakebase setup with Databricks Secrets, what to change insrc/app.yamlbefore deploying to a new workspace, PAT→OAuth token exchange flow, and credential rotationChanges
src/docs/lakebase-deployment.md— new deployment guide (SQLite + Lakebase paths)src/app.yaml— Lakebase PostgreSQL configuration with Databricks Secretssrc/backend/src/config/settings.py— settings updatessrc/backend/src/db/session.py— automatic PAT→OAuth token refresh on every connectionsrc/entrypoint.py—--db-typeflag and token exchange on startupTest plan
python3 src/deploy.py --app-name kasal-dev --user-name <email>— verify app starts with no DB env varssrc/docs/lakebase-deployment.mdsteps, verify data persists across restarts🤖 Generated with Claude Code