Repository navigation
Conversation
Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
This branch has not been deployed
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.
Hey, I wrote docs/policies.md and linked it from the README; I checked the add policy-engine and add policy parts against the source, but I stopped there and didn't re-run the four Gateway measurements.
Refs #1581
Description
Adds
docs/policies.mdand a link to it from the README documentation list. It covers the part of #1581 that is about Cedar policy engines:agentcore add policy-engineandagentcore add policy, with their flags (including--tags), defaults and the name rules, taken fromsrc/handlers/project/add/policy-engine/index.ts,src/handlers/project/add/policy/index.tsandsrc/projectSchemas/policy.ts.agentcore.json(policyEngineConfigurationon the Gateway,modeofENFORCEorLOG_ONLY), fromsrc/projectSchemas/gateway.ts.forbid-only engines, tool arguments undercontext.input, theOverly Restrictiverejection underfail-on-any-findings, and an unattached engine enforcing nothing. The page attributes them to the commenter (kawaji) and says they were not re-checked here.Not included, so the issue should stay open: the form-based guardrail builder, content-filter values, prompt-attack detection, and sensitive-information redaction. I did not find those in the CLI source I read, and did not want to describe them from guesswork. The issue also lists
ACTIVE/PASSIVEenforcement modes; the source usesACTIVE/LOG_ONLYfor a policy andENFORCE/LOG_ONLYfor the Gateway attachment, and the page follows the source.Type of Change
Testing
Documentation only.
prettier --checkpasses ondocs/policies.mdandREADME.md. I read the handlers and schemas named above to check each flag, default and enum value. I did not deploy a Gateway, so the four service behaviors are the issue reporter's measurements, not mine, and I did not runbun test,bun run lint:checkorbun run buildsince no source file changed.