Keep a file private in a shared repo

Keep a file private in a shared repo

Declare the path restricted before you record it. Only listed identities get a key; everyone else carries ciphertext.

# put your own identity in place of alice (loot whoami prints it)
printf '.env restricted=alice\n' > .lootattributes
loot new -m "add sealed .env"   # only signed changes travel
loot push          # the relay stores it but cannot read it