Skip to content

initial security considerations section. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

loganaden
Copy link

No description provided.

@loganaden loganaden requested a review from martinthomson as a code owner June 5, 2025 05:49
Comment on lines +292 to 295
To protect against attacks against their system, implementors of aipref parsing
and matching logic should take the following considerations into account: memory
management, invalid characters and parsing untrusted content.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is helpful, but I think that you can refer to the security considerations of RFC 9651 for most of this. We might also want to specifically allow for a smaller limit than RFC 9651 requires for various things. If we think that the grammar is likely to be small, having a dictionary with 1024 key/value pairs might be excessive, just as tokens of 512 bytes are higher than the ONE we admit (for values). 256 parameters might be easy if they are going to be ignored, but that's still an awful lot.

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