-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
This command allows developers to create a full policy schema using AI prompts. The command generates a whole Permit terraform template from a natural language prompt and then runs the permit env template apply to apply the policy to the active environment.
Implementation Details
- The command is
permit policy create ai - Prompt can be promotable (input) or as an argument (
--prompt) - After the prompt runs and the TF is generated, the CLI should show a human-readable output of the created policy.
- A
--dry-runflag will print the terraform code to the console instead of creating it in Permit - The system prompt and LLM work shouldn't be part of the command or run locally but run on a tiny server endpoint. The endpoint should be placed in the
terraform_servertemplate. The name should change toserver - System prompt should have Permit's TF in its context to minimize errors and wrong syntax/model
- The system prompt should support at least RBAC and ABAC, with a stretch goal to ReBAC with role derivation
💡 Before participating in the issue or offering a bounty, please make sure you carefully read the contribution guidelines. PRs that do not adhere to the guidelines will be closed with no further notice.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels