bug:Cannot save flow: RLS violation on audit table

Open
#7,680 3 comments 0 reactions 1 assignee View on GitHub

@rubenfiszel is already working on this.

Since Jan 26, 2026.

Assessment

This issue has not been assessed yet.

Description

bug
Describe the bug
Describe the bug

When trying to save a flow, Windmill fails with a database error related to row-level security on the audit table.

The flow itself looks valid, but the save operation fails due to an audit insert error.


Error message
To reproduce
  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
Expected behavior

The flow should be saved successfully, and the audit log should not block the operation.

Screenshots

No response

Browser information

No response

Application version

No response

Additional Context

It seems the save operation attempts to insert a row into the audit table, but the current database role does not satisfy the RLS policy.

Dominant language
Rust
Stars
18k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
328

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from windmill-labs/windmill

All issues in windmill-labs/windmill

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.