Project

General

Profile

Actions

Idea #8936

closed

[Keepstore+API] Feed configured TTL into the real Keep block signing key

Added by Brett Smith about 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
-
Target version:
Start date:
04/18/2016
Due date:
Story points:
1.0

Description

The real signing key should be generated from both the random configured signing key, and the configured block TTL. This way, when the sysadmin changes the TTL, the effective signing key changes, and clients are in a better position to detect that and retry write operations if needed.

Update:

  • The API server key generation logic (app/models/blob.rb#generate_signature), see note-4 below. Make sure to add a test that changing the TTL causes the permission signature to change.
  • The Keepstore/SDK key generation logic (sdk/go/keepclient/perms.go). Make sure to update the "known good signature" fixture(s).
  • The install guide documentation - Where the TTL is mentioned, add a note that it effectively becomes part of the signing key, and will cause clients to retry or fail if it is changed while they are in progress.
  • The "Upgrading to master" wiki page, to note that you must upgrade both keepstore and API server at the same time, with no operations in progress and nothing in arv-put resume caches -- otherwise operations will fail.

Subtasks 3 (0 open3 closed)

Task #8989: Review branch 8936-ttl-in-signing-keyResolvedRadhika Chippada04/18/2016Actions
Task #9038: Review branch 8936-ttl-in-signing-key for proper handling of ttl in keep-block-check and keep-rsync.ResolvedTom Clegg04/22/2016Actions
Task #9039: Update the Upgrading_to_master wiki pageResolvedRadhika Chippada04/22/2016Actions
Actions

Also available in: Atom PDF