Bug 800055 - Some authorized_keys files are HUGE
Summary: Some authorized_keys files are HUGE
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Krishna Raman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-05 16:52 UTC by Thomas Wiest
Modified: 2015-05-14 22:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-19 18:22:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thomas Wiest 2012-03-05 16:52:36 UTC
Description of problem:
Some apps' authorized keys files are HUGE in STG (like 75M). The file has the key and then tons of blank lines and then the key again a few times.

This causes problems as cdk-authorized-ssh-key-remove bloats to multiple gigs of memory when trying to work with these files (which eventually runs the machine out of memory, which then causes our monitoring to reboot the instance.


Version-Release number of selected component (if applicable):
rhc-node-0.87.14-1.el6_2.x86_64


How reproducible:
Unsure

Steps to Reproduce:
1. Unsure how to get the keys into this state.

  
Actual results:
Huge authorized_keys files

Expected results:
The authorized_keys files should only be as large as the number of keys in them.

Comment 1 Krishna Raman 2012-03-05 17:02:20 UTC
cdk-authorized-ssh-key-remove was doubling the number of newlines every time it was run causing file sizes to grow.

Comment 2 Xiaoli Tian 2012-03-06 10:01:07 UTC
(In reply to comment #1)
> cdk-authorized-ssh-key-remove was doubling the number of newlines every time it
> was run causing file sizes to grow.

Hi,Thomas

For user can not access the authorized_keys files on stage,and QE can not access stage server as well, could not find a better way to verify it, could you please help to verify this on stage,QE will verify this on devenv once there's new build comes.

Thanks

Comment 3 Meng Bo 2012-03-08 09:11:04 UTC
verified on devenv_1654, issue cannot be reproduced.

Since I don't know the exact repro steps, I tried to add and remove ssh keys for many times. And didn't hit this issue.

mark as verified.

Comment 4 Thomas Wiest 2012-03-08 17:52:32 UTC
I think that's reasonable.

Unfortunately we don't have repro steps either, we just noticed the problem in STG and told kraman about it and he fixed it.


Note You need to log in before you can comment on or make changes to this bug.