Closed Bug 1172753 Opened 11 years ago Closed 6 years ago

Insufficient protection against PEBKAC in signing servers

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: hwine, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

Thanks to :nthomas for finding this: It appeared that the signers had been running as root for some months, leaving signing.log* and signing.pid owned by root:root. The docs https://mana.mozilla.org/wiki/display/RelEng/Signing#Signing-%28Re%29starting say to use cltsign. I've chown'd the mentioned files to get the servers running, ... ... Also, fun bug - server exits silently if it can't write to signing.pid, just when you think all is well. I likely mis-started the servers during the scl3 power work (bug 1160608).
I'm thinking mostly of low hanging fruit, like changing the MOTD. If there were a start wrapper, that could holler if run incorrectly, but we start directly. Not sure a code change is worth it, since this mostly seemed to work. Any other ideas?
Reinforce the docs.
Attachment #8617057 - Flags: review?(nthomas)
Comment on attachment 8617057 [details] [diff] [review] Change MOTD to emphasize CLTSIGN user How about 'ONLY START SIGNING PROCESSES AS cltsign\n\n....'. Then you get the 'hey you' attention while preserving the proper case for the logon. r+ to land something like this.
Attachment #8617057 - Flags: review?(nthomas) → review+
See Also: → 1173206
Attachment #8617057 - Flags: checked-in+
Comment on attachment 8617057 [details] [diff] [review] Change MOTD to emphasize CLTSIGN user I missed including comment 3 in prior commit https://hg.mozilla.org/build/puppet/rev/9151ec576637
Changed MOTD deployed. Leaving open for other cool ideas.
Maybe add this to signing-server.py, just after it starts in script mode. if getpass.getuser() != 'cltsign': log.error("I'm sorry Hal, I can't let do that (without being cltsign)" sys.exit(1)
:) go all the way: sys.exit(2001)
Attached patch exit if not user cltsign (obsolete) — Splinter Review
simple patch to close long open bug
Assignee: nobody → hwine
Status: NEW → ASSIGNED
Attachment #8798932 - Flags: review?(nthomas)
Comment on attachment 8798932 [details] [diff] [review] exit if not user cltsign Review of attachment 8798932 [details] [diff] [review]: ----------------------------------------------------------------- lgtm
Attachment #8798932 - Flags: review?(nthomas) → review+
Comment on attachment 8798932 [details] [diff] [review] exit if not user cltsign r- by catlee -- wants test to be "non root": - will ease development - expectation is we may have signing servers using different accounts in future Note: a robust check (uid matches what is configured somewhere and/or nagios checks for correct user) are for the future.
Attachment #8798932 - Flags: review+ → review-
Attached patch exit if rootSplinter Review
take 2 -- incorporating catlee's comments
Attachment #8798932 - Attachment is obsolete: true
Attachment #8806930 - Flags: review?(nthomas)
Attachment #8806930 - Flags: review?(nthomas) → review+
Component: Tools → General

:catlee -- anything left to do here? I'm not the right person to take action on it anymore, so unassigning myself.

Assignee: hwine → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(catlee)
QA Contact: hwine → catlee
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(catlee)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: