Page MenuHomePhabricator
Feed All Stories

Jan 28 2019

nochum added a comment to T13224: Pygments Bash lexer has explosive complexity on unterminated strings with many backslashes.

It seems the commit didn't fully fix the issue. When pygmentize runs for phabricator, there are processed that are forked from the initial process that are still never killed and they cause the cpu to spike. For example, when running into this issue on our install, we see something like:
#ps aux | grep pygm
user 13190 0.0 0.0 4456 680 ? S 16:46 0:00 sh -c pygmentize -O encoding=utf-8 -O stripnl=False -f html -l 'bash'
user 13191 0.0 0.0 4456 784 ? S 16:46 0:00 sh -c pygmentize -O encoding=utf-8 -O stripnl=False -f html -l 'bash'
user 13192 74.7 0.0 23996 9336 ? R 16:46 0:05 /usr/bin/python /usr/local/bin/pygmentize -O encoding=utf-8 -O stripnl=False -f html -l bash
user 13193 76.7 0.0 23636 9028 ? R 16:46 0:06 /usr/bin/python /usr/local/bin/pygmentize -O encoding=utf-8 -O stripnl=False -f html -l bash

Jan 28 2019, 9:51 PM · Infrastructure
epriestley added a revision to T13156: Plans: Improve Phacility UI for managing instance managers and cards: Unknown Object (Differential Revision).
Jan 28 2019, 8:06 PM · Plans, Phacility
epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Unknown Object (Differential Revision).
Jan 28 2019, 8:06 PM · Plans
epriestley added a comment to T13242: 2019 Week 5 Bonus Content.

PHI979 is a specific issue where we could use better instance controls (around worker count) in the short term. An alternative approach is to hard-coded if ($instance === 'X') { ... } for now. admin could also probably use more workers, I think we get saturated by backups occasionally.

Jan 28 2019, 7:46 PM · Plans
epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Unknown Object (Differential Revision).
Jan 28 2019, 7:31 PM · Plans
epriestley added a revision to T4369: Phabricator HTTP repository hosting has fairly severe scalability limits: Unknown Object (Differential Revision).
Jan 28 2019, 7:09 PM · Diffusion (v3), Restricted Project
epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Unknown Object (Differential Revision).
Jan 28 2019, 7:09 PM · Plans
epriestley added a revision to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile: Unknown Object (Differential Revision).
Jan 28 2019, 7:09 PM · XHProf, Ops, Phacility
epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

Yeah, I think the issue is:

Jan 28 2019, 6:41 PM · XHProf, Ops, Phacility
epriestley updated the task description for T13242: 2019 Week 5 Bonus Content.
Jan 28 2019, 6:30 PM · Plans
epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Restricted Differential Revision.
Jan 28 2019, 6:29 PM · Plans
epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Unknown Object (Differential Revision).
Jan 28 2019, 6:06 PM · Plans
epriestley closed T13227: Figure out if Google Auth needs to be updated before Google+ shutdown on March 7, 2019 as Resolved by committing Restricted Diffusion Commit.
Jan 28 2019, 5:40 PM · Auth
epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Unknown Object (Differential Revision).
Jan 28 2019, 5:28 PM · Plans
epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

The "keep the profiler on across form submissions" code isn't working on secure.phabricator.com, even though it works locally and __profile__=page appears on the "Request" tab.

Jan 28 2019, 4:58 PM · XHProf, Ops, Phacility
epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Unknown Object (Differential Revision).
Jan 28 2019, 3:52 PM · Plans

Jan 27 2019

epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Unknown Object (Differential Revision).
Jan 27 2019, 6:31 PM · Plans
epriestley added a revision to T13242: 2019 Week 5 Bonus Content: Unknown Object (Differential Revision).
Jan 27 2019, 4:59 PM · Plans

Jan 26 2019

epriestley added a comment to T13156: Plans: Improve Phacility UI for managing instance managers and cards.
  • PHI979 describes a case where we'd like to automatically increase the worker task limit based on instance size. admin should also get an increased limit.
  • Now that MFA can be disabled completely, I want to disable MFA on admin (pretty much everyone adding it is adding it by accident) by deprecating the provider.
  • T13178 is adjacent to a lot of this.
Jan 26 2019, 3:06 PM · Plans, Phacility
epriestley closed T13222: 2018 Week 48-51 Bonus Content as Resolved.

Continued in T13242.

Jan 26 2019, 3:00 PM · Plans
epriestley triaged T13242: 2019 Week 5 Bonus Content as Normal priority.
Jan 26 2019, 3:00 PM · Plans

Jan 25 2019

epriestley added a revision to T13231: Duo MFA Support: Unknown Object (Differential Revision).
Jan 25 2019, 9:22 PM · Auth
epriestley added a revision to T7667: Provide `auth lock` and `auth unlock` to restrict authentication provider management to the CLI: Unknown Object (Differential Revision).
Jan 25 2019, 6:45 PM · Auth, Security
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 25 2019, 6:45 PM · Plans
epriestley added a comment to T7667: Provide `auth lock` and `auth unlock` to restrict authentication provider management to the CLI.

After T13222, this is more relevant:

Jan 25 2019, 6:31 PM · Auth, Security
epriestley added a comment to T13138: Improve consistency of MFA requirements to invite/approve users.

From T13222, MFA on related flows should generally be updated.

Jan 25 2019, 6:28 PM · People, Security
epriestley added a comment to T13134: Give Conduit API tokens PHIDs, transactions, and other modern capabilities.

From T13222, this should also revisit MFA around Conduit tokens. In particular:

Jan 25 2019, 6:26 PM · Conduit
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 25 2019, 6:24 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 25 2019, 6:19 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 25 2019, 6:07 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 25 2019, 5:52 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 25 2019, 5:32 PM · Plans
epriestley updated the task description for T13241: Guide: SMS is Insecure.
Jan 25 2019, 3:57 PM · Security, Guides
epriestley updated the task description for T13241: Guide: SMS is Insecure.
Jan 25 2019, 3:39 PM · Security, Guides
epriestley created U44 SMS is Insecure.
Jan 25 2019, 3:39 PM
epriestley triaged T13241: Guide: SMS is Insecure as Wishlist priority.
Jan 25 2019, 3:38 PM · Security, Guides
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 25 2019, 3:12 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 25 2019, 2:00 PM · Plans
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

"Kick everyone down to partial session" docs / tooling.

Jan 25 2019, 1:57 PM · Plans
epriestley added a comment to T13237: Stripping MFA configs with `bin/auth strip` should disable, not delete, the factor configurations.

For now, I'm continuing to allow users to "Remove" the last active factor on their account when security.require-multi-factor-auth is enabled. This will kick them to the MFA enrollment screen.

Jan 25 2019, 1:39 PM · Auth
epriestley added a revision to T13227: Figure out if Google Auth needs to be updated before Google+ shutdown on March 7, 2019: Unknown Object (Differential Revision).
Jan 25 2019, 1:48 AM · Auth
epriestley added a comment to T13231: Duo MFA Support.

I think I have this working fairly reasonably, now. There are four major cases:

Jan 25 2019, 12:52 AM · Auth
aeiser added a comment to T13231: Duo MFA Support.

Another issue here is that Duo doesn't seem to have a way to prevent new user creation. YIf you /preauth a user, they get an enroll link whether they already have an account in Duo or not, and there's no apparent way to distinguish between "this creates a new user" and "this encourages an existing user, who has already been created but has not enrolled a device yet, to enroll".

Jan 25 2019, 12:25 AM · Auth
epriestley added a comment to T13231: Duo MFA Support.

Another issue is that we apparently (???) only get one shot at learning the user's (internal-to-Duo) User ID, and only if we're allowed to enroll them. The first call to /enroll gives us a user ID, subsequent calls do not and there's no other way to do the lookup. This isn't really a problem, it just means we're forced to use usernames everywhere (which are mutable/aliasable/etc/etc) when we could otherwise use nice stable user IDs.

Jan 25 2019, 12:13 AM · Auth

Jan 24 2019

epriestley added a comment to T13231: Duo MFA Support.

Another issue here is that Duo doesn't seem to have a way to prevent new user creation. If you /preauth a user, they get an enroll link whether they already have an account in Duo or not, and there's no apparent way to distinguish between "this creates a new user" and "this encourages an existing user, who has already been created but has not enrolled a device yet, to enroll".

Jan 24 2019, 11:43 PM · Auth
epriestley added a comment to T13231: Duo MFA Support.

Thanks, that's quite helpful!

Jan 24 2019, 11:26 PM · Auth
aeiser added a comment to T13231: Duo MFA Support.

If we want to synchronize to existing accounts, I think it's not good enough for us to pick the user's email address unless that's also the username the organization already uses -- in your case, is it?

Jan 24 2019, 10:56 PM · Auth
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 24 2019, 10:21 PM · Plans
epriestley added a revision to T13231: Duo MFA Support: Unknown Object (Differential Revision).
Jan 24 2019, 10:21 PM · Auth
epriestley added a comment to T13231: Duo MFA Support.

I'm imaging that one use case is that you just want everyone to use MFA, and Duo is a more attractive approach than TOTP (since it's easier to use) or SMS (since it's more secure). In this case, you might just be using Duo as "Better TOTP", and the enrollment/management side isn't as important. For example, if we deployed Duo on secure or in the Phacility cluster as a default option, we'd use it in this mode.

Jan 24 2019, 7:53 PM · Auth
aeiser added a comment to T13231: Duo MFA Support.

FWIW - most users of this feature (especially after T13229) will be organizations that already have DUO in their environment, and likely already have users defined in DUO. Creating random usernames, or PHID's is probably not going to work for most of those organizations. Phabricator does require email's to be unique (no reuse) so that might be a better choice for initial userid setting?

Jan 24 2019, 7:16 PM · Auth
epriestley added a comment to T13231: Duo MFA Support.

When you delete a Duo factor from your phone app, you still get prompted to "auth", Duo just reports that you have no enrolled devices which support push.

Jan 24 2019, 6:54 PM · Auth
epriestley added a comment to T6012: Why doesn't Phabricator (or Arcanist, or libphutil) support Composer?.

Not exactly related, but PEAR got compromised: https://news.ycombinator.com/item?id=18987518

Jan 24 2019, 4:54 PM · Guides
epriestley added a comment to T13237: Stripping MFA configs with `bin/auth strip` should disable, not delete, the factor configurations.

Striping should probably "revoke" (disable + can not be re-enabled), vs the user "remove" button becoming a "disable" action.

Jan 24 2019, 3:30 PM · Auth
epriestley added a comment to T13231: Duo MFA Support.

Duo wants us to <img src="..." /> a QR code.

Jan 24 2019, 2:59 PM · Auth
epriestley added a comment to T13231: Duo MFA Support.

With a 15-second TTL, the user doesn't vanish or anything, and Duo does not let us do another enroll attempt even after the enroll time expires:

Jan 24 2019, 2:21 PM · Auth
epriestley added a comment to T13231: Duo MFA Support.

If you try to /enroll the same user PHID twice, the second /enroll fails:

Jan 24 2019, 2:12 PM · Auth
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

Rolling this mess up again:

Jan 24 2019, 1:43 PM · Plans
epriestley moved T13237: Stripping MFA configs with `bin/auth strip` should disable, not delete, the factor configurations from Backlog to MFA on the Auth board.
Jan 24 2019, 1:39 PM · Auth

Jan 23 2019

epriestley closed T920: Provide SMS Support, a subtask of T7338: Build more status tools for monitoring Phacility cluster health, as Resolved.
Jan 23 2019, 11:07 PM · Almanac, Phacility
epriestley closed T920: Provide SMS Support as Resolved.

I think this is more or less at the end of the line in terms of actionable work that doesn't make more sense being scoped in elsewhere.

Jan 23 2019, 11:07 PM · Restricted Project, Herald
epriestley closed T920: Provide SMS Support, a subtask of T4398: Implement two-factor authentication, as Resolved.
Jan 23 2019, 11:07 PM · Auth
epriestley added a revision to T13231: Duo MFA Support: Unknown Object (Differential Revision).
Jan 23 2019, 9:33 PM · Auth
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

This will probably roll forward into a "next iteration", but it would be nice-to-have to show users the numbers we expect to text them from, so they can whitelist/anticipate the messages.

Jan 23 2019, 8:52 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 23 2019, 8:00 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 23 2019, 7:12 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 23 2019, 6:40 PM · Plans
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

managing contact numbers

Jan 23 2019, 6:32 PM · Plans
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

Also, managing contact numbers needs to require MFA or evading SMS MFA is trivial. 🐈

Jan 23 2019, 6:07 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 23 2019, 5:50 PM · Plans
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

Currently, I think attackers can CSRF the MFA enroll endpoint (/mfa/new/?provider=xyz). This could send you an SMS, soon. This is mostly harmless but potentially a little annoying with push factors like SMS/Duo. I'll get a CSRF gate on it.

Jan 23 2019, 4:51 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 23 2019, 4:42 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 23 2019, 3:29 PM · Plans
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 23 2019, 3:12 PM · Plans
epriestley added a revision to T920: Provide SMS Support: Unknown Object (Differential Revision).
Jan 23 2019, 2:59 PM · Restricted Project, Herald
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

Also, I think we still have an issue with rate limiting where:

Jan 23 2019, 12:23 PM · Plans
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

So I don't forget about it: the default settings/ UI is now incorrectly showing Conpherence settings, not date and time settings. Clicking anything works properly.

Jan 23 2019, 12:19 PM · Plans
kerberizer awarded T3569: Make Phrequent somewhat usable a Like token.
Jan 23 2019, 9:58 AM · Phrequent

Jan 21 2019

epriestley added a revision to T920: Provide SMS Support: Unknown Object (Differential Revision).
Jan 21 2019, 11:17 PM · Restricted Project, Herald
epriestley added a revision to T920: Provide SMS Support: Unknown Object (Differential Revision).
Jan 21 2019, 11:13 PM · Restricted Project, Herald
epriestley added a revision to T920: Provide SMS Support: Unknown Object (Differential Revision).
Jan 21 2019, 10:32 PM · Restricted Project, Herald
epriestley added a revision to T920: Provide SMS Support: Unknown Object (Differential Revision).
Jan 21 2019, 8:52 PM · Restricted Project, Herald
epriestley added a revision to T13222: 2018 Week 48-51 Bonus Content: Unknown Object (Differential Revision).
Jan 21 2019, 8:10 PM · Plans
epriestley closed T13238: Disallow MYSQLI_OPT_LOCAL_INFILE as Resolved by committing Restricted Diffusion Commit.
Jan 21 2019, 6:33 PM · Infrastructure, Security
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

The need for more UI support on the "MFA Required" flow is making me consider expanding scope here into knocking "Settings" back out to a full-width UI. I think that's not terribly hard. I'm maybe going to start there so it can get more testing as I go through everything else, and I can give up if it's harder than I think.

Jan 21 2019, 5:30 PM · Plans
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

From D19975, two considerations:

Jan 21 2019, 5:26 PM · Plans
epriestley added a comment to T13222: 2018 Week 48-51 Bonus Content.

T13227 also needs to happen this week.

Jan 21 2019, 5:19 PM · Plans
epriestley triaged T12921: Link to referenced object in transaction emails as Low priority.
Jan 21 2019, 5:17 PM · Mail
epriestley triaged T13240: Improve policy exception behavior for Spaces and exception-suppressed queries as Low priority.
Jan 21 2019, 4:46 PM · Infrastructure
epriestley added a revision to T13238: Disallow MYSQLI_OPT_LOCAL_INFILE: Unknown Object (Differential Revision).
Jan 21 2019, 3:38 PM · Infrastructure, Security
epriestley added a comment to T13238: Disallow MYSQLI_OPT_LOCAL_INFILE.

Thanks! I get the same behavior locally, I filed this upstream: https://bugs.php.net/bug.php?id=77496

Jan 21 2019, 3:34 PM · Infrastructure, Security
vrana added a comment to T13238: Disallow MYSQLI_OPT_LOCAL_INFILE.

I can't get MYSQLI_OPT_LOCAL_INFILE to work on secure, either. I tried on secure001 and secure004 (where the database is not local). As far as I can tell, this option doesn't do anything, anywhere, ever?

Jan 21 2019, 8:27 AM · Infrastructure, Security
epriestley added a comment to T13082: Sometimes, mail about attaching revisions to tasks doesn't render the revision title.

I believe D19969 has now fixed this, although I'm not entirely certain, since it was never reliably reproducible in production so there's no way to really test or verify it.

Jan 21 2019, 5:09 AM · Transactions, Mail
epriestley closed T13082: Sometimes, mail about attaching revisions to tasks doesn't render the revision title as Resolved by committing Restricted Diffusion Commit.
Jan 21 2019, 5:03 AM · Transactions, Mail
joshuaspence added a watcher for Plans: joshuaspence.
Jan 21 2019, 1:40 AM

Jan 20 2019

epriestley lowered the priority of T13238: Disallow MYSQLI_OPT_LOCAL_INFILE from Low to Wishlist.

We're probably done here, but ideally the next steps are:

Jan 20 2019, 3:14 PM · Infrastructure, Security
epriestley closed T13239: null pointer exception in PhabricatorPeopleWelcomeController as Resolved by committing Restricted Diffusion Commit.
Jan 20 2019, 3:00 PM
epriestley added a comment to T13239: null pointer exception in PhabricatorPeopleWelcomeController.

Reproduction steps are:

Jan 20 2019, 3:00 PM
epriestley added a revision to T13239: null pointer exception in PhabricatorPeopleWelcomeController: Unknown Object (Differential Revision).
Jan 20 2019, 2:57 PM

Jan 19 2019

avivey created T13239: null pointer exception in PhabricatorPeopleWelcomeController.
Jan 19 2019, 11:31 PM