Skip to content

fix(postgres): fail fast when PostgreSQL push role cannot execute task lock helper - #245

Merged
MisterVVP merged 4 commits into
mainfrom
dev-add-validation-for-push-store-role-execute-rights
Sep 14, 2026
Merged

MisterVVP merged 4 commits into
mainfrom
dev-add-validation-for-push-store-role-execute-rights

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Sep 13, 2026 •

Copy link
Copy Markdown
Owner

Motivation

  • Prevent split-role startups from deferring a permission failure until the first local CreateOrUpdateForTask by enforcing the documented helper EXECUTE contract at construction time.

Description

  • Add an actionable startup validation error and message when the effective push-store role lacks EXECUTE on a2a_lock_task_for_push_config(TEXT) by extending the existing managed-schema SQL check with pg_catalog.has_function_privilege. (change in src/server/stores/postgres_notification_store.cpp).
  • Increase schema-check field count and add a dedicated result-column index for the invoker EXECUTE check, and return a focused error kPostgresPushTaskLockExecuteRequiredMessage when missing.
  • Add a conformance test exercising the missing-invoker-grant case and a helper to revoke the invoker EXECUTE in tests (changes in tests/store_conformance/store_conformance_test.cpp).
  • Document the startup requirement in docs/storage.md and book/src/server/storage.md to state the effective push-store role must have helper EXECUTE when using managed task-aware push schema.
  • Authorship: change set includes AI-assisted edits; apply the AI agent label.

@MisterVVP MisterVVP added the codex Automatic label added by codex agent. Should not be used label Sep 13, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP self-assigned this Sep 13, 2026
@MisterVVP MisterVVP added AI agent AI agent contribution and removed codex Automatic label added by codex agent. Should not be used labels Sep 13, 2026
@MisterVVP

Copy link
Copy Markdown
Owner Author

@codex review this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a51e24143c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MisterVVP

Copy link
Copy Markdown
Owner Author

@codex review this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b3a1dd77fa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MisterVVP

MisterVVP commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner Author

@codex review this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f9f80e0817

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MisterVVP

Copy link
Copy Markdown
Owner Author

@codex review this PR again

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 855ced4a95

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MisterVVP MisterVVP changed the title Fail fast when PostgreSQL push role cannot execute task lock helper fix(postgres): fail fast when PostgreSQL push role cannot execute task lock helper Sep 14, 2026
@MisterVVP
MisterVVP merged commit a1c85b3 into main Sep 14, 2026
17 of 19 checks passed
@MisterVVP
MisterVVP deleted the dev-add-validation-for-push-store-role-execute-rights branch September 14, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task]: Validate PostgreSQL task-lock helper EXECUTE privilege at startup

1 participant