Repair local git server permissions
This commit is contained in:
parent
26d3bf945d
commit
c6015ae364
5 changed files with 62 additions and 4 deletions
|
|
@ -47,7 +47,16 @@ The user clarified that direct `airM1` SSH should not be required for garage com
|
|||
|
||||
Credentials are user-held outside this repository. If a password is needed, use an interactive prompt or local OS credential store. Do not write the password value to this repository, command files, shell history, logs, or final reports.
|
||||
|
||||
On 2026-05-24 from `qore`, server-side accounts `qore`, `wuu`, and `pump` were verified on the LXC and their shared-password access was refreshed on the server side without recording the password. All three users are members of group `stereowallnd`.
|
||||
On 2026-05-24 from Proxmox/LXC administration, server-side accounts `qore`, `wuu`, `pump`, and `airM1` were verified or created on the LXC and their shared-password access was refreshed on the server side without recording the password. All four users are members of group `stereowallnd`.
|
||||
|
||||
Repository permission baseline:
|
||||
|
||||
- `/srv/git` is owned by group `stereowallnd`, group-writable, and setgid.
|
||||
- Existing bare repositories under `/srv/git/*.git` are group-writable and setgid.
|
||||
- Default ACLs grant group `stereowallnd` read/write/execute where `setfacl` is available.
|
||||
- System Git config `init.sharedRepository=group` is set so future repos initialized on the server default to group sharing.
|
||||
- Existing bare repos have `core.sharedRepository=group`.
|
||||
- Existing bare repos allow admin-style branch updates/deletes through Git config `receive.denyNonFastforwards=false` and `receive.denyDeletes=false`; use this power carefully and do not force-push without explicit user approval.
|
||||
|
||||
## Git Identity Requirement
|
||||
|
||||
|
|
@ -71,6 +80,7 @@ Use a different email only if the user provides an official email for this ident
|
|||
- Container IP observed inside Proxmox: `192.168.1.66/24`.
|
||||
- Note: direct SSH initially failed because the Mac had an incomplete/stale ARP entry; after clearing ARP for `192.168.1.66`, SSH worked.
|
||||
- TCP `192.168.1.66:22` is the preferred Git SSH endpoint for `pump`, `wuu`, and `qore` machine users. Verify it from each garage computer.
|
||||
- 2026-05-24 verification from the current Codex Mac: SSH password login to `192.168.1.66:22` worked for `qore`, `wuu`, `pump`, and `airM1`; each user could read both bare repositories. `git push --dry-run` through SSH to `Kamaz_Cleaner.git` succeeded for all four users.
|
||||
|
||||
## Inventory Needed
|
||||
|
||||
|
|
@ -106,7 +116,7 @@ Use a different email only if the user provides an official email for this ident
|
|||
- Root `AGENTS.md`: not present.
|
||||
- Role: Unreal Engine Kamaz cleaner/snow-removal simulator work.
|
||||
- Risk: `main` at `465385495` looks like a telemetry commit but deletes almost the entire previous snapshot. Use `telemetry-only-main` for the isolated telemetry state until `main` is intentionally repaired or accepted.
|
||||
- 2026-05-24 `qore` setup pass: repository existence and group-writable permissions were verified/repaired as root; directories are setgid for group `stereowallnd`; ACLs grant group write where supported.
|
||||
- 2026-05-24 setup pass: repository existence and group-writable permissions were verified/repaired as root; directories are setgid for group `stereowallnd`; ACLs grant group write where supported; `qore`, `wuu`, `pump`, and `airM1` passed dry-run push permission tests.
|
||||
|
||||
## Access Notes
|
||||
|
||||
|
|
@ -117,6 +127,7 @@ Use a different email only if the user provides an official email for this ident
|
|||
- From `qore` on 2026-05-24 17:00 MSK, TCP `22` returned an OpenSSH banner, but non-interactive `airM1@192.168.1.66` SSH and `git ls-remote` to `/srv/git/StereoWallND.git` and `/srv/git/Kamaz_Cleaner.git` failed because no local `airM1` key/credential was available to the agent.
|
||||
- For future garage work, prefer the user-provided `qore`, `wuu`, or `pump` identities through `ssh://<machine>@192.168.1.66:22/srv/git/<repo>.git` over `airM1`.
|
||||
- From `qore` on 2026-05-24 17:40 MSK, `qore@192.168.1.66` key-based SSH worked, `git ls-remote` succeeded for `/srv/git/StereoWallND.git` and `/srv/git/Kamaz_Cleaner.git`, and `git push --dry-run` to `/srv/git/Kamaz_Cleaner.git` succeeded without updating the remote.
|
||||
- From the current Codex Mac on 2026-05-24, password-based SSH read tests and SSH Git dry-run push tests succeeded for `qore`, `wuu`, `pump`, and `airM1` without storing the password in Git.
|
||||
|
||||
## Safety
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,15 @@
|
|||
# Garage Agent Log
|
||||
|
||||
## 2026-05-24 - Local Git Server User And Permission Repair
|
||||
|
||||
- Machine: current Codex Mac via Proxmox `192.168.1.60` into LXC `git-stereowallnd` VMID `101`.
|
||||
- Agent: Codex.
|
||||
- Summary: Verified or created server-side users `qore`, `wuu`, `pump`, and `airM1`; refreshed their password access on the server side without recording the password; added all four users to group `stereowallnd`; repaired `/srv/git` and existing bare repositories for group write access.
|
||||
- Permissions: `/srv/git` and `/srv/git/*.git` are group `stereowallnd`, group-writable, and setgid. Default ACLs grant `stereowallnd` write where supported. Existing bare repos have `core.sharedRepository=group`, `receive.denyNonFastforwards=false`, and `receive.denyDeletes=false`.
|
||||
- Future repositories: system Git `init.sharedRepository=group` is set; create future bare repos under `/srv/git` with `--shared=group` and group `stereowallnd` so `qore`, `wuu`, `pump`, and `airM1` can administer/write them.
|
||||
- Verified: SSH read tests to `Kamaz_Cleaner.git` and `StereoWallND.git` succeeded for all four users; SSH Git `push --dry-run` to `Kamaz_Cleaner.git` succeeded for all four users.
|
||||
- Security: no passwords, private keys, or tokens were committed to the knowledge base.
|
||||
|
||||
## 2026-05-24 - LAN And Local Project Layout Clarification
|
||||
|
||||
- Machine: current Codex Mac.
|
||||
|
|
|
|||
|
|
@ -437,6 +437,26 @@ Write means a temporary local probe file could be created and removed. No projec
|
|||
| `Kamaz_Cleaner-qore-wuu-smb` | `\\qore\C\git\Kamaz_Cleaner` | `main` | `ssh://qore@192.168.1.66/srv/git/Kamaz_Cleaner.git` | no tracked changes under `--untracked-files=no` | available | yes | yes over SMB | yes over SMB |
|
||||
|
||||
- Git server read/write as `wuu@192.168.1.66` is not verified yet: non-interactive SSH login fails, so `git ls-remote` for `StereoWallND.git` and `Kamaz_Cleaner.git` fails. Configure an authorized public key or use an interactive password flow outside Git before marking read/write verified.
|
||||
- Later 2026-05-24 server-side permission pass: `qore`, `wuu`, `pump`, and `airM1` were confirmed as members of `stereowallnd`; `/srv/git` and existing bare repos are group-writable/setgid with default ACLs where available; `core.sharedRepository=group` is set on existing bare repos; Git dry-run push to `Kamaz_Cleaner.git` over SSH succeeded for all four users from the current Codex Mac.
|
||||
|
||||
## Local Git Server Permission Baseline
|
||||
|
||||
- Host: `192.168.1.66`.
|
||||
- Repository root: `/srv/git`.
|
||||
- Access users: `qore`, `wuu`, `pump`, `airM1`.
|
||||
- Access group: `stereowallnd`.
|
||||
- Existing repos: `/srv/git/StereoWallND.git`, `/srv/git/Kamaz_Cleaner.git`.
|
||||
- Future repos should be created under `/srv/git` and initialized as bare shared repos, for example:
|
||||
|
||||
```bash
|
||||
git init --bare --shared=group /srv/git/<name>.git
|
||||
chgrp -R stereowallnd /srv/git/<name>.git
|
||||
chmod -R g+rwX /srv/git/<name>.git
|
||||
find /srv/git/<name>.git -type d -exec chmod g+s {} +
|
||||
```
|
||||
|
||||
- The server has `init.sharedRepository=group` configured system-wide and `/srv/git` has setgid/default ACLs so future repositories inherit group write access where possible.
|
||||
- Do not store SSH/VNC passwords in this repository. Prefer SSH public keys for unattended agent access.
|
||||
|
||||
## Non-Git Unreal Project Candidates On Pump
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,9 @@ Build and finish the garage auto-simulator setup by consolidating scattered proj
|
|||
- `qore` runner is alive for heartbeat/pull/push, and command/result cycle was verified with `agent-bus/commands/qore/2026-05-24-final-connectivity-ping.md` and result `agent-bus/results/qore/20260524-170033-2026-05-24-final-connectivity-ping.md`.
|
||||
- `qore` connectivity was rechecked locally at 2026-05-24 17:40 MSK: `garage-agent-runner-qore` is installed and returning `LastTaskResult: 0`; a fresh command/result ping completed; `sshd`, `ssh-agent`, and TightVNC `tvnserver` are running/automatic; TCP `22`, `5900`, `5800`, and `3389` listen locally.
|
||||
- From `qore`, `192.168.1.66:22` is reachable and `qore@192.168.1.66` can read `StereoWallND.git` and `Kamaz_Cleaner.git`; a safe `git push --dry-run` to `Kamaz_Cleaner.git` succeeded.
|
||||
- `/srv/git/Kamaz_Cleaner.git` on `192.168.1.66` was verified/repaired for shared group write access by users `qore`, `wuu`, and `pump`; their server-side accounts and group membership are present.
|
||||
- `/srv/git` on `192.168.1.66` was verified/repaired for shared group write access by users `qore`, `wuu`, `pump`, and `airM1`; their server-side accounts and `stereowallnd` group membership are present.
|
||||
- Existing bare repositories are group-writable/shared and setgid; default ACLs and system Git `init.sharedRepository=group` are configured so new repositories created under `/srv/git` inherit group write access for the four users.
|
||||
- SSH read tests and Git dry-run push tests to `Kamaz_Cleaner.git` succeeded from the current Codex Mac for `qore`, `wuu`, `pump`, and `airM1` using user-held credentials outside Git.
|
||||
- The broader goal is to finish the auto-simulators, not only document the snow-removal truck prototype.
|
||||
- Driving hardware includes Moza wheel, Moza pedals, and Moza gearbox.
|
||||
- A plow/blade joystick should appear as a normal joystick; hardware is still in development and wiring is pending.
|
||||
|
|
|
|||
|
|
@ -92,6 +92,22 @@ Use one of these strategies based on the situation:
|
|||
|
||||
Do not flatten multiple repositories into one directory without a written plan.
|
||||
|
||||
## Shared Local Git Server Permissions
|
||||
|
||||
When a project uses a shared local bare-repository host:
|
||||
|
||||
- put bare repositories under one documented root, such as `/srv/git`;
|
||||
- use a shared Unix group for all project writers;
|
||||
- make the repository root group-writable and setgid;
|
||||
- use default ACLs for the shared group when available;
|
||||
- initialize new bare repos with `git init --bare --shared=group`;
|
||||
- set `core.sharedRepository=group` on existing bare repos;
|
||||
- verify read access with `git ls-remote`;
|
||||
- verify write access with `git push --dry-run` or a temporary test branch only when approved;
|
||||
- never store SSH passwords, private keys, or credential helper secrets in the knowledge base.
|
||||
|
||||
For the `garage` project, the current local Git server is `192.168.1.66:/srv/git`, with machine users `qore`, `wuu`, `pump`, and `airM1` in group `stereowallnd`.
|
||||
|
||||
## Handoff Requirements
|
||||
|
||||
After changing repository topology:
|
||||
|
|
@ -101,4 +117,3 @@ After changing repository topology:
|
|||
- update `projects/<project>/agent-log.md`;
|
||||
- record reusable merge knowledge in global `skills/` or `problems/`;
|
||||
- commit and push all changed repositories that have remotes.
|
||||
|
||||
|
|
|
|||
Reference in a new issue