Skip to content

2.13.1

Latest

Choose a tag to compare

@tomchop tomchop released this 21 Nov 19:57
7717458

Pairs with yeti-feeds-frontend 2.13.1. prod/docker-compose.yaml drives both from one YETI_IMAGE_TAG, so deploy them together.

Upgrade notes

Existing exports have no owner (#1491). Exports now record the creating user as owner, filter exported observables through the owner's ACLs, and restrict running, editing, deleting, and downloading an export to its owner or an admin. Exports created before 2.13.1 have no owner; under RBAC, only admins can run, edit, delete, or download them until recreated. Export names are also checked for normalized output filename collisions (409 Conflict).

Task toggling and worker restarts require admin (#1491). POST /api/v2/tasks/{name}/toggle and POST /api/v2/system/restartworker/{name} now require an admin account regardless of whether RBAC is enabled. POST /api/v2/tasks/{name}/run requires global WRITE under RBAC.

API keys can no longer manage API keys or passwords (#1493). Creating, toggling, or deleting API keys and resetting passwords now require an interactive session (cookie or password/OIDC bearer token). Newly created API keys include a jti claim and exchanged /auth/api-token session tokens are immediately invalidated when the backing key is disabled or deleted. Existing API keys without jti continue to work until rotated.

GET /api/v2/system/config hides internal paths when unauthenticated (#1494). When auth.enabled is true, unauthenticated callers receive system: {} instead of server filesystem paths while keeping pre-login flags (auth, rbac_enabled, agents_enabled).

Security fixes

  • RBAC & ACL enforcement (#1490, #1491):
    • Enforce per-object READ and WRITE checks across /graph/search, /graph/add, /graph/patch, /graph/swap, /graph/delete, and /graph/match (add_unknown).
    • Enforce READ on both hops of user→group→object ACL traversals so "No access" (role=0) edges no longer expose objects in search, neighbors, or grouped search.
    • Prevent create-collision overwrites and ACL hijacking on entities, indicators, observables, DFIQ YAML imports, and whitespace-padded OIDC email claims.
    • Require OWNER on the target object when deleting ACL relationships (DELETE /api/v2/rbac/{id}).
    • Enforce per-object READ on GET /api/v2/audit/timeline/{id}, POST /api/v2/templates/render, POST /api/v2/indicators/yara/bundle (including resolved rule dependencies), and regex indicator matching in POST /api/v2/graph/match.
    • Filter export outputs by owner ACLs, restrict export management/download to owner or admin, and block export filename collisions.
    • Require admin for task toggling and worker restarts, and WRITE for running tasks.
  • Admin demotion (#1492): Remove "Admins" group membership and downgrade "All users" to READER when demoting an admin via API or yetictl toggle-admin.
  • Event stream & config hardening (#1490, #1494):
    • Strip password hashes from UserSensitive before publishing ObjectEvent messages to Redis and avoid logging raw event bodies.
    • Hide system filesystem paths in GET /api/v2/system/config from unauthenticated callers.
  • API key hardening (#1493):
    • Validate per-key jti, carry key identity into /auth/api-token session tokens for immediate revocation, enforce JWT exp claims on expiring keys, and block API keys from key/password management routes.

Full Changelog: 2.13.0...2.13.1