Page MenuHomePhabricator

Security - disable conduit act as user by default
ClosedPublic

Authored by btrahan on Jul 10 2014, 10:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 2:54 PM
Unknown Object (File)
Sun, Dec 1, 6:35 AM
Unknown Object (File)
Wed, Nov 27, 10:46 AM
Unknown Object (File)
Mon, Nov 25, 10:04 PM
Unknown Object (File)
Sat, Nov 23, 12:10 PM
Unknown Object (File)
Fri, Nov 22, 1:27 AM
Unknown Object (File)
Nov 18 2024, 7:17 PM
Unknown Object (File)
Nov 15 2024, 7:44 AM

Details

Reviewers
epriestley
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rPe281c5ee9045: Security - disable conduit act as user by default
Required Signatures
L28 Phacility Individual Contributor License Agreement
Summary

Introduce a new configuration setting that by default disables the conduit as as user method. Wordily explain that turning it on is not recommended. Fixes T3818.

Test Plan
15:25:19 ~/Dropbox/code/phalanx/src/applications/conduit (T3818)
~>  echo '{}' | arc call-conduit --conduit-uri http://phalanx.dev/ user.whoami
Waiting for JSON parameters on stdin...
{"error":null,"errorMessage":null,"response":{"phid":"PHID-USER-tghb3b2gbdyezdcuw2or","userName":"btrahan","realName":"Bob Trahan","image":"http:\/\/phalanx.dev\/file\/data\/yncjbh7phk7ktrdhuorn\/PHID-FILE-qyf4ui3x2ll3e52hpg5e\/profile-profile-gravatar","uri":"http:\/\/phalanx.dev\/p\/btrahan\/","roles":["admin","verified","approved","activated"]}}
15:25:34 ~/Dropbox/code/phalanx/src/applications/conduit (T3818)

<go edit libconfig/conduitclient to spoof another user...>

~>  echo '{}' | arc call-conduit --conduit-uri http://phalanx.dev/ user.whoami
Waiting for JSON parameters on stdin...
{"error":"ERR-CONDUIT-CORE","errorMessage":"ERR-CONDUIT-CORE: security.allow-conduit-act-as-user is disabled","response":null}
15:26:40 ~/Dropbox/code/phalanx/src/applications/conduit (T3818)

<enable option via bin/config....>

~>  echo '{}' | arc call-conduit --conduit-uri http://phalanx.dev/ user.whoami
Waiting for JSON parameters on stdin...
{"error":null,"errorMessage":null,"response":{"phid":"PHID-USER-6lcglnzbkiamdofishgi","userName":"xerxes","realName":"Xerxes Trahan","image":"http:\/\/phalanx.dev\/file\/data\/n2kyeevowetcuynbcxrg\/PHID-FILE-voquikectzpde256zzvm\/profile-1275455993.jpg","uri":"http:\/\/phalanx.dev\/p\/xerxes\/","roles":["verified","approved","activated"]}}

Diff Detail

Repository
rP Phabricator
Branch
T3818
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1619
Build 1620: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan added a task: Restricted Maniphest Task.
btrahan retitled this revision from to Security - disable conduit act as user by default.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added subscribers: sowedance, jevripio.

@jevripio, @sowedance -- heads up that you'll need to flip this on if you rely on actAsUser. See T3818 for more discussion.

This revision is now accepted and ready to land.Jul 10 2014, 10:39 PM
btrahan updated this revision to Diff 23721.

Closed by commit rPe281c5ee9045 (authored by @btrahan).

Will do, thanks for the heads up!