Trips Sharing Security: Enforce Protection and Remove Plaintext Secrets #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This issue covers public trip sharing security.
Problems:
share_tokenshare_passwordis stored in plaintextFiles:
Acceptance criteria:
handle_share_apirequires successful password-backed access before returning trip datashare_passwordis stored as a password hash, not plaintextFixed in commit
d700ba7Changes:
services/trips/server.py: handle_share_api now enforces password via X-Share-Password header + bcryptservices/trips/server.py: handle_share_verify uses bcrypt.checkpw, all plaintext logging removedservices/trips/server.py: share_password stored as bcrypt hash on updateservices/trips/server.py: migration invalidates existing plaintext passwordsservices/trips/server.py: removed dead hash_password functionservices/trips/Dockerfile: added bcrypt dependencyVerified:
Remaining risk: none for this issue scope.