question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

itch sandbox and Windows user account's security policies

See original GitHub issue

I’ve tried to setup itch sandbox on Windows Server 2016 Technical Preview 5, but it was unsuccessful. I’ve checked “Enable itch.io sandbox”, then tried to run a game, got a popup asking if I’m OK with performing first-time sandbox setup, agreed, entered administrator password, and then got an itch launch error message: error(s) while installing sandbox: Error: adminRunScript failed with code 1.

I’ve tried to run net user itch-player salt /add manually, and got a message that the password doesn’t meet password policy requirements. Apparently the system had enabled the policy for strong passwords, which can be found in Local Security Policy applet as Security Settings -> Account Policies -> Password Policy -> Password must meet complexity requirements. Exact requirements from the setting’s description:

Not contain the user's account name or parts of the user's full name that exceed two consecutive characters
Be at least six characters in length
Contain characters from three of the following four categories:
English uppercase characters (A through Z)
English lowercase characters (a through z)
Base 10 digits (0 through 9)
Non-alphabetic characters (for example, !, $, #, %)
Complexity requirements are enforced when passwords are changed or created.

Clearly the password salt violates this policy. After disabling the policy itch app was able to perform setup and run a game under sandbox. Note that this particular policy was enabled by default on my system (presumably because it’s server edition).

I guess the simplest fix would be to hardcode some acceptable password like PleaseN0tAgainWindows! instead of salt. However there’re some other policies related to password, like password length/age limits - they were disabled by default, but someone may have them enabled. Probably itch has to regenerate password from time to time?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
GranPCcommented, Sep 20, 2016

So, isolate could be fixed if we passed explicitly which user the sandbox is for afaict?

Yup, that should do the trick. I’ll start testing against this scenario and roll out a fix soon. Thanks for testing @quyse!

1reaction
fasterthanlimecommented, Sep 15, 2016

@quyse I started seeing the exact same behavior a few days ago!

.@granpc & I are working on a fix (ie. rotating the password as needed).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows sandboxing · The itch.io app book
The first command adds the itch-player user with a known password, and the second command removes it from the Users group so that...
Read more >
The sandbox · The itch.io app book
The sandbox makes no attempts to protect against: The user collaborating in being attacked (giving out their password, running untrusted software, etc.) ...
Read more >
Interesting approach! I work on the itch.io app (functionality ...
I wanted a solution that was low-overhead enough that it was a no-brainer for users to turn it on. However, it's not perfect:...
Read more >
User Account Control security policy settings - Microsoft Learn
You can use security policies to configure how User Account Control works in your organization.
Read more >
Is Itch.io safe? All you need to know - Nerds Chalk
Unfortunately, you cannot see user comments, since Itch.io redirects you to the game developers' website. Generally, the site is known to host ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found