Vibeleaderboard
← All Intel
Intel / repo

crewAI 1.15.45

Source
github.com
Author
joaomdmoura
Date

Context

The security fix in crewAI 1.15.45 that most deserves a look concerns crewAI agents that other agents call over the network. crewAI, an open-source Python framework from crewAI for building teams of AI agents, can expose an agent as a using A2A (Agent-to-Agent), a protocol that lets agents hand tasks to one another. According to the A2A documentation, such a server checks callers with `SimpleTokenAuth` by default, which compares the caller's token with the `AUTH_TOKEN` environment variable.

Until this release, an empty counted as a configured one. The server refused requests as unconfigured only when no expected token existed at all, so if `AUTH_TOKEN` was set to an empty string, or a token or API key was configured as an empty string, a caller presenting an empty was accepted. The bug report reproduced this for both `SimpleTokenAuth` and `APIKeyServerAuth`. After the fix (PR #9638), an empty token or API key is rejected when the configuration is validated, and an empty `AUTH_TOKEN` is treated as unset, so the server answers with HTTP 401.

The same change replaces the plain `!=` comparison of secrets with Python's `hmac.compare_digest`. An ordinary string comparison can stop at the first character that differs, so in principle the time a server takes to reject a guess can reveal how much of it was right; a constant-time comparison takes the same time either way. A reviewer on the PR noted that the other server schemes (Enterprise, OIDC, OAuth2 and mTLS) do not compare secrets this way, so the fix matters to deployments using the token or API-key schemes. The release's one new feature lets agents save HTML or markdown output directly as a PDF artifact.

Terms in this piece · Glossary
  • Server — Software that receives requests, processes them and returns responses; the computer running it is its host.
  • Secret — A value such as a password, key or token that lets its holder act as someone; it must be kept out of code and shared files.
  • Credential — Something presented with a request to prove that the sender is a particular identity, such as a password or a generated key.
  • streaming — Sending a model's response token by token as it is generated, so the reader sees text immediately instead of waiting for the whole answer.
More from joaomdmoura
Recommended reads
Comments

Checking sign-in…

Loading comments…