RHEMS JapanJA

Server Keys: Who Holds Them, and What Gets Recorded

A returned server key may still exist as a copy. This article uses house keys to explain who receives a key, who may retrieve and use it, and how usage is recorded.

Company servers have keys. Like the key to a front door, only the person holding it can get inside. The difference is that dozens of people come and go in one house, and the keyholders change every year.

Who gets a key, where it is kept, and when access stops. This article uses the spare house key as a way to think about managing server keys.

What goes wrong when spare keys are handed out

Suppose ten people have a spare key to a house. Ten spare keys now exist in the city. You keep a list of who holds them, collect them when someone moves out, and change the lock when one is lost. Changing the lock makes every key in the house new.

Server keys work the same way. Every copy handed out adds one more chance of duplication. And with digital keys, even when someone says they have returned it, you cannot prove that no copy remains. That is the hardest part.

Before adding keys to the distribution list, sort out who needs access and which permissions they require.

Where a key you are holding should live

When you hold the keys to a customer's servers, you still need to decide where they are kept and who may use them.

  • Kept on a management server and shared by the whole team (a shared key box)
  • Placed in a designated folder on your own PC for each task (the worker's pocket)
  • Left on each person's PC (the drawer at home)

All three are the same in one respect: the key sits, in key form, somewhere it can be copied. Even if you designate a key box, a rule can forbid putting the key in a pocket but cannot guarantee that no one does.

Separating storage from usage permissions

Decide not only where keys are stored but who may retrieve them and where they may be used. Set the procedures for use and revocation at the same time.

You also need to verify who is using the key and from which device.

Record which key is used for which destination, in a form that can still be checked after the person in charge changes.

Standardizing the connection procedure

Some buildings cannot be entered from the front; you have to go through the superintendent's office at the back to reach the room you want. In the server world this is called multi-hop SSH, and the old practice was two steps: enter the office first, then go from there to the target room.

Even when the number of intermediate points grows, the connection procedure and its records have to be organized.

A record of who came and went

Who connected, when, and where. Make the record of key use available for later review.

Decide which records are needed and how they are stored, so that use can be explained if a problem occurs.

The work that management requires

When reviewing how keys are handled, organize the following work as well.

  • Define the procedures for distribution, collection, and revocation
  • Review access rights when someone leaves or changes role
  • Prepare procedures that still work after the person in charge changes
  • List key storage locations and usage permissions

Some effort and risk remain.

  • Storage locations, permissions, and change records all have to be maintained
  • If a device itself is compromised, an attacker gets in through the legitimate procedure
  • Plan for what happens if the key management system stops

Narrowing the distribution of keys does not eliminate the risk of leakage. The permissions on storage locations and the records have to be checked continuously.

Three questions to ask before adoption

Before deciding whether to build the same setup, see whether you can answer these three questions.

  1. Can you explain, in a list, which key is used for which server
  2. Can someone else get in with the same procedure after the person in charge changes
  3. Can you produce the record of key use after the fact

If any one of these is a no, the register and the procedures need work before the storage location changes. Buying a tool first does not improve key management.

How RHEMS Japan can help

RHEMS Japan helps organizations organize key storage locations, usage permissions, connection procedures, and records management.

The question is not how to hand out spare keys but whether you can avoid handing them out at all. If you are unsure how to handle keys entrusted to you, contact us.

References

The thinking behind key management and connection procedures is also covered in a column for engineers.

This article explains approaches to key management and operations design.

  • Key management
  • Security
  • Operations design
  • Internal control

Was this article useful?

Talk to us about operations for this topic.

Contact