Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Problem you have encountered
When using Document AI within a VPC Service Controls (VPC-SC) perimeter, requests to preview document thumbnails are blocked. These requests originate from the user's browser but are made using the identity of the Document AI service agent, which isn't typically whitelisted within the perimeter's security settings.
What you expected to happen
We expected thumbnail preview requests to be made under the user's identity, not the service agent's. This would allow the requests to be evaluated against the user's permissions within the VPC-SC perimeter, providing consistent security control and auditing.
Steps to reproduce
Other information (workarounds you have tried, documentation consulted, etc)
Workarounds attempted
Whitelisting the Document AI service agent's IP addresses within the VPC-SC perimeter. This is a suboptimal solution as it requires granting broader access to the service agent than is ideally necessary.
Documentation consulted
Google Cloud documentation on VPC Service Controls and Document AI. However, the documentation doesn't explicitly address this specific issue of thumbnail requests and identity management.
Additional findings
Proposed solution
We propose that Document AI be enhanced to allow for user impersonation for thumbnail requests. This would enable the requests to be made under the user's identity, providing a more secure and auditable solution that aligns with the intended purpose of VPC-SC perimeters.