Skip to content

ref(seer): Ensure correct permission checks for Seer Slack workflows#107173

Merged
leeandher merged 3 commits intomasterfrom
leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in
Jan 29, 2026
Merged

ref(seer): Ensure correct permission checks for Seer Slack workflows#107173
leeandher merged 3 commits intomasterfrom
leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in

Conversation

@leeandher
Copy link
Member

@leeandher leeandher commented Jan 28, 2026

adding SeerOperator.has_access() and entrypoint versions too.

  • the operator version checks for seer access + access to any entrypoint (which checks the entry point version)
  • most app code that invokes the operator uses this check
  • app code that needs to check a single entrypoint still can, but ALSO gets seer checks now 👍

@linear
Copy link

linear bot commented Jan 28, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 28, 2026
@leeandher leeandher force-pushed the leanderrodrigues/iswf-1179-investigate-how-complicated-it-would-be-to-hook-into branch from 6a23a96 to 22d592b Compare January 28, 2026 18:49
@leeandher leeandher force-pushed the leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in branch from 0c09cb8 to 602e629 Compare January 28, 2026 18:56
@leeandher leeandher force-pushed the leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in branch from 602e629 to dda0e47 Compare January 28, 2026 21:02
@leeandher leeandher force-pushed the leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in branch from dda0e47 to 9619858 Compare January 29, 2026 17:26
@leeandher leeandher force-pushed the leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in branch from 9619858 to 74ab73a Compare January 29, 2026 17:39
@leeandher leeandher force-pushed the leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in branch from 74ab73a to b46ad65 Compare January 29, 2026 18:29
@leeandher leeandher force-pushed the leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in branch from b46ad65 to 4f6016a Compare January 29, 2026 18:45
@leeandher leeandher marked this pull request as ready for review January 29, 2026 19:48
@leeandher leeandher requested review from a team as code owners January 29, 2026 19:48
Base automatically changed from leanderrodrigues/iswf-1179-investigate-how-complicated-it-would-be-to-hook-into to master January 29, 2026 21:11
leeandher and others added 2 commits January 29, 2026 16:14
Add SeerOperator.has_access() method to centralize permission checks
for Seer workflows. This replaces direct feature flag checks with a
unified approach that validates both Seer access and entrypoint-specific
permissions.

Key changes:
- Add SeerOperator.has_access() class method with optional entrypoint_key
- Add has_access() static method to SeerEntrypoint protocol
- Implement has_access() in SlackEntrypoint using feature flag
- Replace feature flag checks with SeerOperator.has_access() calls
- Update tests to mock has_seer_access for proper isolation

Co-Authored-By: Claude <noreply@anthropic.com>
Cast the entrypoint_key to SeerEntrypointKey in the has_access test
to satisfy type checker requirements.

Co-Authored-By: Claude <noreply@anthropic.com>
@leeandher leeandher force-pushed the leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in branch from 57fd85b to 7b2248c Compare January 29, 2026 21:14
…Cache

Rename cache key generation and retrieval methods to private (underscore
prefix) to clarify the public API. The public interface now consists of
get(), populate_pre_autofix_cache(), populate_post_autofix_cache(), and
migrate_pre_autofix_cache(). Also add docstring to the get() method.
@leeandher leeandher merged commit a825a00 into master Jan 29, 2026
66 checks passed
@leeandher leeandher deleted the leanderrodrigues/iswf-1943-ensure-correct-permission-checks-for-displaying-seer-in branch January 29, 2026 22:20
priscilawebdev pushed a commit that referenced this pull request Feb 2, 2026
…107173)

adding `SeerOperator.has_access()` and entrypoint versions too.

- the operator version checks for seer access + access to any entrypoint
(which checks the entry point version)
 - most app code that invokes the operator uses this check
- app code that needs to check a single entrypoint still can, but ALSO
gets seer checks now 👍

---------

Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants