MINOR - Allow app definition to pass the impersonation rules for bots#25909
MINOR - Allow app definition to pass the impersonation rules for bots#25909
Conversation
|
TypeScript types have been updated based on the JSON schema changes in the PR |
🔍 CI failure analysis for e10e179: CI failures appear unrelated to bot impersonation changes. Java integration tests (both retried, still failing) show persistent infrastructure issues. Playwright E2E tests across 2 shards show 2 failed + 19 flaky (all flaky passed on retry) involving login, permissions, search, and version pages - all unrelated to audit log changes.IssueCI failures occurred across multiple test environments: Java Integration Test Failures:
Playwright E2E Test Failures (PostgreSQL): Shard 6/6:
Shard 3/6:
Test Report Jobs (cascading failures):
Test Results:
Root CauseAll failures are unrelated to the bot impersonation changes in this PR and are pre-existing infrastructure and test flakiness issues. Java Integration Test Failures - Infrastructure IssuesConnection Pool Shutdown:
Service Lifecycle Issues:
Typical Failing Tests:
Playwright E2E Test Failures - Timing and FlakinessShard 6/6 (1 failed, 8 flaky):
Shard 3/6 (1 failed, 11 flaky):
DetailsWhy these failures are unrelated to this PR: This PR changes:
Java integration test failures involve:
Playwright test failures involve:
None of the modified files affect:
Failure Pattern:
Evidence: java.lang.IllegalStateException: Connection pool shut down
ERROR: Cannot invoke "...PipelineServiceClientInterface.deletePipeline(...)" because "this.pipelineServiceClient" is nullThe failures show persistent test infrastructure issues in Java integration tests and widespread test flakiness in Playwright E2E tests - none related to application bot impersonation functionality. Code Review 👍 Approved with suggestions 1 resolved / 1 findingsWell-structured implementation of per-app bot impersonation with proper admin-only enforcement, clean role/policy separation, and good test coverage. The main outstanding concern (already posted) is that ✅ 1 resolved✅ Security:
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|
|
…#25909) * MINOR - Streamline bot impersonation from apps * MINOR - Streamline bot impersonation from apps * MINOR - Streamline bot impersonation from apps * MINOR - Streamline bot impersonation from apps * Update generated TypeScript types * policy flag * policy flag * policy flag * policy flag * fix feedback --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>



Describe your changes:
Also add the necessary changes in the UI to show impersonation
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
allowBotImpersonationincreateAppRequest.jsonenables per-application bot impersonation control (defaults to false)AppRepository.createNewAppBot()sets user-levelallowImpersonationflag with backward compatibilityAuditLogList.component.tsxImpersonateoperation toApplicationBotPolicy.jsonallowed operationsThis will update automatically on new commits.