Commit 2b77c42
committed
Return the regenerated token by reading it back at the pushed revision
Motivation:
The regenerated token was passed out of the content transformer through an
AtomicReference, which is an awkward side channel.
Modifications:
- Read the app identity registry back at the revision the push produced and
return the token from it, instead of capturing the token in the transformer.
Result:
- No behavior change; the caller still always receives the secret its own
commit produced.1 parent 803ad60 commit 2b77c42
2 files changed
Lines changed: 13 additions & 6 deletions
File tree
- server/src/main/java/com/linecorp/centraldogma/server/metadata
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | 185 | | |
190 | 186 | | |
191 | 187 | | |
| |||
228 | 224 | | |
229 | 225 | | |
230 | 226 | | |
231 | | - | |
232 | 227 | | |
233 | 228 | | |
234 | 229 | | |
| |||
238 | 233 | | |
239 | 234 | | |
240 | 235 | | |
| 236 | + | |
| 237 | + | |
241 | 238 | | |
242 | 239 | | |
243 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
| |||
0 commit comments