Page MenuHomePhabricator

Pass a real viewer to HeraldAdapter when doing test console runs
ClosedPublic

Authored by epriestley on Jan 25 2018, 7:31 PM.
Tags
None
Referenced Files
F13091480: D18933.diff
Thu, Apr 25, 2:59 AM
Unknown Object (File)
Fri, Apr 19, 7:11 PM
Unknown Object (File)
Wed, Apr 17, 6:09 PM
Unknown Object (File)
Tue, Apr 2, 4:52 PM
Unknown Object (File)
Wed, Mar 27, 9:37 PM
Unknown Object (File)
Mar 5 2024, 7:24 AM
Unknown Object (File)
Feb 28 2024, 4:09 PM
Unknown Object (File)
Feb 28 2024, 1:51 PM
Subscribers
None

Details

Summary

Depends on D18932. Ref T13048. See PHI276. In the cluster, we don't have device keys on web nodes. This is generally good, since they don't need them, and it means that we aren't putting more credentials than we need on those hosts.

However, it means that when we pull diff content to test "Commit" rules via the Herald test console, we use the omnipotent user and try to use device credentials, and this fails since we don't have any.

Instead, pass the real viewer in this case so we just sign the request as them, like we do for normal Diffusion requests.

Test Plan

Wrote and ran a commit content rule locally, no issues.

This isn't completely convincing since my local setup does have device credentials, but I'll double-check in production once this deploys.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 26 2018, 6:46 PM
This revision was automatically updated to reflect the committed changes.