3
3
* Version: 1
4
4
* Last-Modified: 29-Jan-2024
5
5
* Author: Marina Moore
6
- * Status: Draft
6
+ * Status: Accepted
7
7
* Content-Type: text/markdown
8
8
* Created: 19-Jan-2024
9
9
@@ -39,7 +39,7 @@ still the source of trust, but allows the role to act independently.
39
39
40
40
# Motivation
41
41
42
- Several use cases can benefit from an independent revocation mechanism:
42
+ The following use case can benefit from an independent revocation mechanism:
43
43
44
44
45
45
## Community repositories
@@ -77,30 +77,34 @@ from that proposal to support key revocation.
77
77
## Rotate file (from TAP 8)
78
78
79
79
The signed portion of a ` rotate ` file is as follows (there's also a
80
- signatures wrapper as in tuf spec , not shown here):
80
+ signatures wrapper as in the TUF specification , not shown here):
81
81
82
82
``` python
83
83
{
84
- " _type" : " rotate" ,
85
- " previous " : PREV_FILENAME
84
+ " _type" : " rotate" ,
85
+ " version " : VERSION ,
86
86
" role" : ROLE ,
87
87
" keys" : {
88
88
KEYID : KEY
89
89
, ... } ,
90
- " threshold" : THRESHOLD }
90
+ " threshold" : THRESHOLD
91
91
}
92
92
```
93
93
94
94
Where ROLE, KEYID, KEY, and THRESHOLD are as defined in the original
95
- tuf spec . The value of ROLE has to be the same as the role for the
96
- delegation. The value of THRESHOLD is its new value. PREV_FILENAME is
97
- the name of the previous rotate file in the chain, or the empty string if this is
98
- the first rotate file for this role. The keys specify the new valid keys
95
+ TUF specification . The value of ROLE has to be the same as the role for the
96
+ delegation. The value of THRESHOLD is its new value. VERSION is the index of
97
+ this rotate file, incrementing by 1 on each rotation. The keys specify the new
98
+ valid keys
99
99
and associated key ids (which may be a subset or superset of
100
100
the old ones). A rotate file does _ not_ contain an expiration date,
101
101
it is meant to be signed once and never modified. The rotate
102
102
file has to be signed with an old threshold of old keys.
103
103
104
+ This rotate file will be named ` ROLE.rotate.VERSION ` where ROLE and VERSION are
105
+ defined as above and go into a 'rotate' folder on the repository that
106
+ contains all rotate files for the repository.
107
+
104
108
105
109
## Rotation to Null
106
110
@@ -125,23 +129,30 @@ where NULL is the null key.
125
129
126
130
### Prioritizing Self Revocation
127
131
128
- Rotation files are immutable unless replaced with a revocation (rotate
129
- to null). This is the only case in which they can be replaced or
130
- modified. If a client wants to rotate to a different
132
+ Rotation files are immutable unless replaced with a revocation.
133
+ This is the only case in which they can be replaced or
134
+ modified. If a key holder wants to rotate to a different
131
135
key, without having access to their currently delegated private key,
132
136
this requires a key revocation by the delegating metadata.
133
137
138
+ ## Client workflow
139
+
140
+ Rotate files will be downloaded by clients as described in TAP 8. Once a
141
+ rotate file is downloaded and verified, the client will check for a rotation
142
+ to null. If such a rotation to null is found, the client will treat the given
143
+ role as revoked.
134
144
135
145
# Security Analysis
136
146
137
147
There should be no negative security impact. The major benefits are
138
148
that many security-sensitive revocations that require key use by
139
149
multiple parties, will now be much easier to do.
140
150
141
- Clients need to take care to check for rotation to a null key (rotate
151
+ Clients need to take care to check for revocation (rotate
142
152
files that contain a null key). This shall be handled in the
143
153
same manner as an invalid metadata signature on by the role possessing
144
- the key. The role will be invalid until it is re-delegated to with a new key.
154
+ the key. The role will be invalid until it is re-delegated to with a new
155
+ rolename and key.
145
156
Clients MUST use snapshot metadata to ensure that they receive all rotate files
146
157
in the chain.
147
158
@@ -162,7 +173,7 @@ verify the revocations.
162
173
163
174
# Augmented Reference Implementation
164
175
165
- TODO
176
+ https://github.com/theupdateframework/python-tuf/pull/2257/files
166
177
167
178
# Copyright
168
179
0 commit comments