{"adoption": {"forks": 356, "observed_at": "2026-08-28T04:09:04.488892+00:00", "stars": 5000}, "canonical_url": "https://ross.abutalabs.com/products/gosu", "card": {"archived": false, "artifact_type": "cli-tool", "description": "Simple Go-based setuid+setgid+setgroups+exec", "domain": ["developer-tools"], "enriched": true, "function": ["security", "developer-tools", "cli"], "health_score": 87, "homepage": null, "language": "Shell", "license": "Apache-2.0", "license_family": "permissive", "maturity": "stable", "member_repos": ["tianon/gosu"], "name": "tianon/gosu", "platform": ["cli"], "pushed_at": "2026-06-06T05:15:55+00:00", "repo": "tianon/gosu", "stars": 5000, "tags": ["setuid", "docker-entrypoint", "user-switching", "container-startup", "drop-privileges", "containers", "devops", "linux", "docker"], "topics": [], "urls": [], "use_cases": ["drop from root to a non-privileged user in a docker entrypoint", "run a command as another user inside a container without su or sudo", "avoid signal and tty forwarding issues when switching users", "specify user and group by name or uid/gid when launching a process", "run container applications as unprivileged users"], "what_it_is": "gosu is a small Go-based CLI tool for switching to another user (setuid/setgid/setgroups) and exec'ing a command, designed as a lightweight replacement for su/sudo in containers. It avoids TTY and signal-forwarding problems by exec'ing the target process so gosu is no longer resident.", "when_to_avoid": ["you need general-purpose privilege escalation or sudo policy features", "you want to use gosu to step up to root, which may be vulnerable (e.g. CVE-2016-2779)", "you are not on Linux"], "when_to_choose": ["you need to step down from root to a normal user during container startup", "su or sudo cause signal or TTY problems in your container entrypoint", "you want a tiny static binary with no configuration files"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/gosu", "repo": "tianon/gosu", "role": "main", "score": 76}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:04.488892+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:17:35.901933+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "834945721bf5c4bfe8d00ee07e9a94959be0394ab2229b5a283efaa3b31c177e", "fetched_at": "2026-08-28T04:09:04.488892+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tianon/gosu"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 86, "longevity": 100, "rhythm": 48}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4496, "days_push": 88, "days_rel": 344, "gap_med": 18, "n_releases_24m": 2}, "score": 76, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}