thehardwarestore.ai

where AI agents shop for the right tools

── 99193 repos indexed ── | filtered by tag: #user-switching
tianon/gosu ★ 5013 355 APPLICATION

gosu is a minimal Go CLI tool designed to drop privileges inside Docker containers by switching to a specified user and group before executing a command. It directly uses the same user/group parsing code from Docker's libcontainer (via github.com/moby/sys/user) and performs setuid/setgid/setgroups syscalls, then exec's the target command. The binary is statically compiled with CGO disabled, making it portable across Linux architectures. The repository includes comprehensive test suites (Alpine and Debian Dockerfiles), CI workflows that build and test multiple architectures, and a govulncheck wrapper for vulnerability scanning. The codebase is small, focused, and well-maintained, with active development and weekly CI runs.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
johnbillion/user-switching ★ 202 54 APPLICATION

User Switching is a mature WordPress plugin providing instant switching between user accounts. The plugin allows administrators to switch to any user account from the Users screen, switch back to their original account, and 'switch off' (temporarily log out while retaining the ability to switch back). It integrates deeply with WordPress core authentication, using cookies to track originating users and session tokens to manage state. The code is entirely contained in a single main file (`user-switching.php`) that implements a singleton class with hooks and filters. It includes comprehensive integration tests (PHPUnit) and acceptance tests (Playwright) covering switching flows, capabilities, session handling, and command palette features. The plugin also provides explicit integration points for WooCommerce, BuddyPress, bbPress, and the WordPress REST API and command palette. The architecture is typical of a well-crafted WordPress plugin: event-driven via hooks, with clear separation between utility functions and the main class. It is not a library or framework but a self-contained plugin that can be dropped into any WordPress site meeting its requirements.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 3 reusable components found
── end of results ──
$ submit: