put rootless docker back, behind the developer gate
Uncommented at all three sites: the call and import in provisionOsAccount, the ~/.local/dockers bind-mount directory in confineUserTree, and the DOCKER_HOST block in the member zshrc. Not restored unconditionally, which is how it was before. It now sits behind the same Developer check as the Postgres role — the gate that prompted disabling it in the first place. So rolePermitsDatabase is renamed rolePermitsDevTools: it gates two things now and a name saying "database" while deciding whether you get containers is the kind of comment that goes stale silently. ~/.local/dockers is created for EVERY account rather than only Developers. It is two install calls, and confineUserTree is the function that places the layout, not the one that knows who is a Developer — so a member promoted later finds it already correct. Postgres role work is untouched and still in place. Verified: transpiles. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -79,7 +79,7 @@ import { osUserHome, runAs } from './os-user';
|
||||
*
|
||||
* The owner never reaches this — they run as the service account and already have the cluster.
|
||||
*/
|
||||
export const rolePermitsDatabase = (role: UserRole): boolean => role === 'Developer';
|
||||
export const rolePermitsDevTools = (role: UserRole): boolean => role === 'Developer';
|
||||
|
||||
/** Legal Linux/Postgres account name. Identical to `validateUsername`, restated because this one reaches SQL. */
|
||||
const ROLE_NAME_RE = /^[a-zA-Z0-9._-]{2,32}$/;
|
||||
|
||||
Reference in New Issue
Block a user