Command permissions + Alembic SQLite migrations - #13
Merged
Conversation
… the current way of detecting dangerous commands
… Lab (`web/server/prompt_lab/database/migrations/`) SQLite DB with baseline revision files - Add multi-DB helper: upgrade/downgrade/current/history - Add DB migration manager (CLI/Poetry command) for: upgrade-all, upgrade, downgrade, current, applied, history and revision - Run migration on container start - Cover empty and legacy paths and filename log in `tests/test_migrations.py` - Reorder imports / run ruff commands - Create and update tests
…E and CHANGELOG - Update `docs/SECURITY.md` to include a section about the new command permissions/policy - Update other docs as well
… ones - Prepare the new release
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
Ships two related platform upgrades for v0.12.0:
Command permissions (shell / SSH)
tools.shell.permissionsandtools.ssh.permissions/api/permissions/commands/*(list, overrides CRUD, dry-run validate with optional draft policy)web(YAML-only policy when the web package is absent)Alembic SQLite migrations
web/server/database/migrations/web/server/prompt_lab/database/migrations/agentforge-webentrypoint:upgrade-allbefore uvicorn/SAQschema_migrations(revision,filename,applied_at)python -m web.server.database.cli …/agentforge-dbOther
alembicpin inpyproject.tomlTest plan
pytestmigrations + command policy + permissions APIv0.12.0and publish release notes from CHANGELOGDeploy notes
agentforge-webruns migrations automatically (entrypoint + lifespan).tools.*.permissionsor use the Web UI modal when the frontend ships.