Closed
Bug 1172753
Opened 11 years ago
Closed 6 years ago
Insufficient protection against PEBKAC in signing servers
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: hwine, Unassigned)
References
Details
Attachments
(2 files, 1 obsolete file)
|
857 bytes,
patch
|
nthomas
:
review+
hwine
:
checked-in+
|
Details | Diff | Splinter Review |
|
1.06 KB,
patch
|
nthomas
:
review+
|
Details | Diff | Splinter Review |
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 3•11 years ago
|
||
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+
Comment on attachment 8617057 [details] [diff] [review]
Change MOTD to emphasize CLTSIGN user
https://hg.mozilla.org/build/puppet/rev/aacdba2d6cf7
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
Comment 7•11 years ago
|
||
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)
simple patch to close long open bug
Comment 10•9 years ago
|
||
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+
| Reporter | ||
Comment 11•9 years ago
|
||
Comment on attachment 8798932 [details] [diff] [review]
exit if not user cltsign
https://hg.mozilla.org/build/tools/rev/13448e3aaea54870baa1e6078ea2c4da45dc301a
Attachment #8798932 -
Flags: checked-in+
| Reporter | ||
Comment 12•9 years ago
|
||
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-
| Reporter | ||
Comment 13•9 years ago
|
||
take 2 -- incorporating catlee's comments
Attachment #8798932 -
Attachment is obsolete: true
Attachment #8806930 -
Flags: review?(nthomas)
Updated•9 years ago
|
Attachment #8806930 -
Flags: review?(nthomas) → review+
| Assignee | ||
Updated•9 years ago
|
Component: Tools → General
| Reporter | ||
Comment 14•7 years ago
|
||
: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
Updated•6 years ago
|
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.
Description
•