1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
//! The events for the `CertAuth` aggregate.
use std::fmt;
use rpki::ca::idexchange::{ChildHandle, ParentHandle};
use rpki::ca::provisioning::{
IssuanceRequest, ParentResourceClassName, ResourceClassName,
RevocationRequest,
};
use rpki::crypto::KeyIdentifier;
use rpki::repository::resources::ResourceSet;
use serde::{Deserialize, Serialize};
use crate::api::admin::{ParentCaContact, RepositoryContact};
use crate::api::aspa::{
AspaDefinition, AspaProvidersUpdate, CustomerAsn,
};
use crate::api::bgpsec::BgpSecAsnKey;
use crate::api::ca::{IdCertInfo, ReceivedCert, RtaName};
use crate::api::roa::RoaPayloadJsonMapKey;
use crate::commons::crypto::KrillSigner;
use crate::commons::error::KrillError;
use crate::commons::eventsourcing::{Event, InitEvent};
use super::aspa::AspaObjectsUpdates;
use super::bgpsec::{BgpSecCertificateUpdates, StoredBgpSecCsr};
use super::certauth::Rfc8183Id;
use super::child::ChildCertificateUpdates;
use super::keys::CertifiedKey;
use super::roa::RoaUpdates;
use super::rta::{PreparedRta, SignedRta};
//------------ CertAuthInitEvent ---------------------------------------------
/// The init event of the `CertAuth` aggregate.
//
// *Warning:* This type is used in stored state.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct CertAuthInitEvent {
/// The ID certificate used by the CA for communication.
pub id: Rfc8183Id,
}
impl InitEvent for CertAuthInitEvent {}
impl CertAuthInitEvent {
/// Creates a new init event with a new ID certificate from the signer.
pub fn init(
signer: &KrillSigner
) -> Result<CertAuthInitEvent, KrillError> {
Rfc8183Id::generate(signer).map(|id| CertAuthInitEvent { id })
}
}
impl fmt::Display for CertAuthInitEvent {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"Initialized with ID key hash: {}",
self.id.cert().public_key.key_identifier()
)?;
Ok(())
}
}
//------------ CertAuthEvent ------------------------------------------------
/// The events of the `CertAuth` aggregate.
//
// *Warning:* This type is used in stored state.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[allow(clippy::large_enum_variant)]
#[serde(rename_all = "snake_case")]
#[serde(tag = "type")]
pub enum CertAuthEvent {
//--- Child events
//
// These events relate to the children of a CA. I.e., this is about the
// CA being a parent.
/// A child was added to this CA.
ChildAdded {
/// The local handle of the child CA.
child: ChildHandle,
/// The ID certificate of the child CA.
id_cert: IdCertInfo,
/// The set of resources set the child CA is entitled to.
resources: ResourceSet,
},
/// A certificate was issued to the a child of this CA.
ChildCertificateIssued {
/// The local handle the child CA in question.
child: ChildHandle,
/// The local name of the resource class the certificate is for.
resource_class_name: ResourceClassName,
/// The identifier of the key being certified.
ki: KeyIdentifier,
},
/// A child CA’s key was revoked.
ChildKeyRevoked {
/// The local handle the child CA in question.
child: ChildHandle,
/// The local name of the resource class the certificate is for.
resource_class_name: ResourceClassName,
/// The identifier of the key being certified.
ki: KeyIdentifier,
},
/// Child certificates were updated under a resource class.
ChildCertificatesUpdated {
/// The resource class for which the updates are for.
resource_class_name: ResourceClassName,
/// The updates.
updates: ChildCertificateUpdates,
},
/// A child’s ID certificate was updated.
ChildUpdatedIdCert {
/// The local handle the child CA in question.
child: ChildHandle,
/// The new ID certificate of the child.
id_cert: IdCertInfo,
},
/// The resources a child CA is entitled to have been updated.
ChildUpdatedResources {
/// The local handle the child CA in question.
child: ChildHandle,
/// The new resource set the child CA is entitled to.
resources: ResourceSet,
},
/// The resource class mapping for a child CA was updated.
ChildUpdatedResourceClassNameMapping {
/// The local handle the child CA in question.
child: ChildHandle,
/// The resource class name in the parent.
name_in_parent: ResourceClassName,
/// The resource class name in the child.
name_for_child: ResourceClassName,
},
/// A child CA was removed.
ChildRemoved {
/// The local handle the child CA in question.
child: ChildHandle,
},
/// A child CA was suspended.
ChildSuspended {
/// The local handle the child CA in question.
child: ChildHandle,
},
/// The suspension of a child CA was lifted.
ChildUnsuspended {
/// The local handle the child CA in question.
child: ChildHandle,
},
//--- Parent events.
//
// These events relate to the parents of a CA. I.e., this is about the
// CA being a child.
/// The ID certificate of the CA was updated.
IdUpdated {
/// The new ID certificate.
id: Rfc8183Id,
},
/// A parent CA was added to the CA.
ParentAdded {
/// The local handle of the parent CA.
parent: ParentHandle,
/// Information about how to communicate with the parent CA.
contact: ParentCaContact,
},
/// Contact information for the parent CA was updated.
ParentUpdated {
/// The local handle of the parent CA.
parent: ParentHandle,
/// The new information on how to communicate with the parent CA.
contact: ParentCaContact,
},
/// A parent CA was removed from the CA.
ParentRemoved {
/// The local handle of the parent CA.
parent: ParentHandle,
},
/// A resource class was added by a parent CA.
ResourceClassAdded {
/// The local name of the resource class.
resource_class_name: ResourceClassName,
/// The local handle of the parent CA.
parent: ParentHandle,
/// The name of the resource class in the parent CA.
parent_resource_class_name: ParentResourceClassName,
/// The CA key we want to use for the resource class.
pending_key: KeyIdentifier,
},
/// A resource class was removed by the parent CA.
ResourceClassRemoved {
/// The local name of the resource class.
resource_class_name: ResourceClassName,
/// The local handle of the parent CA.
parent: ParentHandle,
/// The request to revoke the certficate for the resource class.
revoke_requests: Vec<RevocationRequest>,
},
/// A certficate for a resource class was requested from the parent.
CertificateRequested {
/// The local name of the resource class.
resource_class_name: ResourceClassName,
/// The request for the certificate sent to the parent.
req: IssuanceRequest,
/// The identifier for the key for which the certificate was requested.
//
// XXX Also contained in request. Drop?
ki: KeyIdentifier,
},
/// A certificate for a resource class was received from the parent.
CertificateReceived {
/// The local name of the resource class.
resource_class_name: ResourceClassName,
/// The certificate that was received.
rcvd_cert: ReceivedCert,
/// The identifier for the key for which the certificate was received.
//
// XXX Also contained in request. Drop?
ki: KeyIdentifier, // Also in received cert. Drop?
},
//--- Key life cycle
/// A pending key was added to an exsiting resource class.
///
/// This initiates a key roll. Note that there will be a separate
/// [`CertificateRequested`][Self::CertificateRequested] event for this
/// key.
KeyRollPendingKeyAdded {
/// The local name of the resource class to which the key was added..
resource_class_name: ResourceClassName,
/// The identifier of the key that was added.
pending_key_id: KeyIdentifier,
},
/// A pending key was marked as new after it had received a certificate.
///
/// This means that the key is staged and a mft and crl will be published.
/// According to RFC 6489 this key should be staged for 24 hours before
/// it is promoted to become the active key. However, in practice this
/// time can be shortened.
KeyPendingToNew {
/// The local name of the resource class the event relates to.
resource_class_name: ResourceClassName,
/// Information about the key including its certificate.
new_key: CertifiedKey,
},
/// A pending key has become the active key without being staged first.
///
/// When a new resource class is created it will have a single pending
/// key only which is promoted to become the active (current)
/// key for the resource class immediately after receiving its
/// first certificate. Technically this is not a roll, but a simple
/// first activation.
KeyPendingToActive {
/// The local name of the resource class the event relates to.
resource_class_name: ResourceClassName,
/// Information about the now active key.
current_key: CertifiedKey,
},
/// During a key roll, a new key has been activated.
///
/// When a 'new' key is activated, i.e., it becomes the current key,
/// the previous current key will be marked as old and we will request
/// its revocation. Note that any current ROAs and/or issued certificates
/// will also be re-issued under the new 'current' key. These changes are
/// tracked in separate
/// [`RoasUpdated`][Self::RoasUpdated] and
/// [`ChildCertificatesUpdated`][Self::ChildCertificatesUpdated] events.
KeyRollActivated {
/// The local name of the resource class the event relates to.
resource_class_name: ResourceClassName,
/// The revocation request for the previous active key.
revoke_req: RevocationRequest,
},
/// A key roll has been finished.
///
/// The key roll is finished when the parent confirms that the old key
/// is revoked. We can remove it and stop publishing its manifest and
/// CRL.
KeyRollFinished {
/// The resource class for which the key roll has finished.
resource_class_name: ResourceClassName,
},
/// An unknown key was returned in a parent exchange.
/// This event is generated in case our parent reports keys to us that
/// we do not believe we have. This should not happen in practice, but
/// this is tracked so that we can recover from this situation. We can
/// request revocation for all these keys and create new keys in the RC
/// as needed.
UnexpectedKeyFound {
/// The resource class for which the key was found..
resource_class_name: ResourceClassName,
/// A revocation request for this key.
revoke_req: RevocationRequest,
},
//--- Route authorizations
/// A route authorization was added.
///
/// Tracks a single authorization (VRP) which is added. Note that (1)
/// a command to update ROAs can contain multiple changes in which case
/// multiple events will result, and (2) we do not have a 'modify' event.
/// Modifications of e.g. the max length are expressed as separate
/// 'removed' and 'added' events within a single stored command.
RouteAuthorizationAdded {
/// The ROA payload of the authorization to be added.
auth: RoaPayloadJsonMapKey,
},
/// A comment was changed for a route authorization.
RouteAuthorizationComment {
/// The ROA payload of the authorization.
auth: RoaPayloadJsonMapKey,
/// The optional comment for the authorization.
comment: Option<String>,
},
/// A route authorization was removed.
///
/// Tracks a single authorization (VRP) which is removed. See the
/// remark for [`RouteAuthorizationAdded`][Self::RouteAuthorizationAdded].
RouteAuthorizationRemoved {
/// The ROA payload of the authorization to be removed.
auth: RoaPayloadJsonMapKey,
},
/// The set of ROA objects for a resource class has been updated.
RoasUpdated {
/// The resource class for which the ROA objects are updated.
resource_class_name: ResourceClassName,
/// The updates to be made.
updates: RoaUpdates,
},
//--- ASPA
/// A new ASPA configuration has been added.
AspaConfigAdded {
/// The ASPA configuration that should be added.
aspa_config: AspaDefinition,
},
/// An ASPA configuration has been updated.
AspaConfigUpdated {
/// The customer ASN of the ASPA configuration to be updated.
customer: CustomerAsn,
/// The update to the provider ASNs of the ASPA.
update: AspaProvidersUpdate,
},
/// An ASPA configuration has been removed.
AspaConfigRemoved {
/// The customer ASN of the ASPA configuration to be removed.
customer: CustomerAsn,
},
/// The set of ASPA objects for a resource class has changed.
AspaObjectsUpdated {
/// The resource class for which the ASPA objects have changed.
resource_class_name: ResourceClassName,
/// The changes to the ASPA objects.
updates: AspaObjectsUpdates,
},
//--- BGPsec router keys
/// A BGPsec router key definition was added.
BgpSecDefinitionAdded {
/// The ASN and key identifier for the router key to be added.
key: BgpSecAsnKey,
/// The certificate signing request for the router key.
csr: StoredBgpSecCsr,
},
/// A BGPsec router key definition has been updated.
BgpSecDefinitionUpdated {
/// The ASN and key identifier for the router key to be added.
key: BgpSecAsnKey,
/// The certificate signing request for the router key.
csr: StoredBgpSecCsr,
},
/// A BGPsec router key definition has been removed.
BgpSecDefinitionRemoved {
/// The ASN and key identifier for the router key to be added.
key: BgpSecAsnKey,
},
/// The set of BGPset certificates for a resourc class class has changed.
BgpSecCertificatesUpdated {
/// The resource class for which BGPsec certificates have changed.
resource_class_name: ResourceClassName,
/// The changes to the BGPsec certificates.
updates: BgpSecCertificateUpdates,
},
//--- Publishing
/// A respository contact was added for this CA.
///
/// A repository contact is necessary for publication to commence. Because
/// communication with the repository is necessary to learn the URIs to
/// use in objects, a CA can only start requesting certificates from its
/// parents once it has a repository contact and successfully used it.
RepoUpdated {
/// The repository contact information.
contact: RepositoryContact,
},
//--- Rta
//
// Note: RTA support is deprecated and will be removed.
/// A signed RTA was added.
///
/// The RTA can be single signed, or it can be a multi-signed RTA based
/// on an existing 'PreparedRta'.
RtaSigned {
/// The name of the signed RTA.
name: RtaName,
/// The signed RTA.
rta: SignedRta,
},
/// A “prepared” RTA was added.
///
/// This declares the context of keys which need to be included in a
/// multi-signed RTA.
RtaPrepared {
/// The name of the signed RTA.
name: RtaName,
/// Information about the prepared RTA.
prepared: PreparedRta,
},
}
impl Event for CertAuthEvent {}
impl fmt::Display for CertAuthEvent {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
CertAuthEvent::ChildAdded {
child,
id_cert,
resources,
} => {
write!(
f,
"added child '{}' with resources '{}, id (hash): {}",
child,
resources,
id_cert.public_key.key_identifier()
)
}
CertAuthEvent::ChildCertificateIssued {
child,
resource_class_name,
ki,
} => write!(
f,
"issued certificate to child '{child}' for class '{resource_class_name}' and \
pub key '{ki}'"
),
CertAuthEvent::ChildCertificatesUpdated {
resource_class_name,
updates,
} => {
write!(
f,
"updated child certificates in resource class {resource_class_name}"
)?;
if !updates.issued.is_empty() {
write!(f, " issued keys: ")?;
for iss in &updates.issued {
write!(f, " {}", iss.key_identifier())?;
}
}
if !updates.removed.is_empty() {
write!(f, " revoked keys: ")?;
for rev in &updates.removed {
write!(f, " {rev}")?;
}
}
if !updates.suspended.is_empty() {
write!(f, " suspended keys: ")?;
for cert in &updates.suspended {
write!(f, " {}", cert.key_identifier())?;
}
}
if !updates.unsuspended.is_empty() {
write!(f, " unsuspended keys: ")?;
for cert in &updates.unsuspended {
write!(f, " {}", cert.key_identifier())?;
}
}
Ok(())
}
CertAuthEvent::ChildKeyRevoked {
child,
resource_class_name,
ki,
} => write!(
f,
"revoked certificate for child '{child}' in resource class \
'{resource_class_name}' with key(hash) '{ki}'"
),
CertAuthEvent::ChildUpdatedIdCert { child, id_cert } => {
write!(
f,
"updated child '{}' id (hash) '{}'",
child,
id_cert.public_key.key_identifier()
)
}
CertAuthEvent::ChildUpdatedResources { child, resources } => {
write!(f,
"updated child '{child}' resources to '{resources}'"
)
}
CertAuthEvent::ChildUpdatedResourceClassNameMapping {
child,
name_in_parent,
name_for_child,
} => {
write!(
f,
"updated child '{child}' map parent RC name '{name_in_parent}' to '{name_for_child}' \
for child"
)
}
CertAuthEvent::ChildRemoved { child } => {
write!(f, "removed child '{child}'")
}
CertAuthEvent::ChildSuspended { child } => {
write!(f, "suspended child '{child}'")
}
CertAuthEvent::ChildUnsuspended { child } => {
write!(f, "unsuspended child '{child}'")
}
CertAuthEvent::IdUpdated { id } => write!(
f,
"updated RFC8183 id to key '{}'",
id.cert().public_key.key_identifier()
),
CertAuthEvent::ParentAdded { parent, .. } => {
write!(f, "added parent '{parent}' ")
}
CertAuthEvent::ParentUpdated { parent, .. } => {
write!(f, "updated parent '{parent}'")
}
CertAuthEvent::ParentRemoved { parent } => {
write!(f, "removed parent '{parent}'")
}
CertAuthEvent::ResourceClassAdded {
resource_class_name, ..
} => {
write!(f,
"added resource class with name '{resource_class_name}'"
)
}
CertAuthEvent::ResourceClassRemoved {
resource_class_name,
parent,
..
} => {
write!(f,
"removed resource class with name '{resource_class_name}' under parent '{parent}'"
)
}
CertAuthEvent::CertificateRequested {
resource_class_name,
ki,
..
} => {
write!(f,
"requested certificate for key (hash) '{ki}' under \
resource class '{resource_class_name}'"
)
}
CertAuthEvent::CertificateReceived {
resource_class_name,
ki,
..
} => {
write!(f,
"received certificate for key (hash) '{ki}' under \
resource class '{resource_class_name}'"
)
}
CertAuthEvent::KeyRollPendingKeyAdded {
resource_class_name,
pending_key_id,
} => {
write!(
f,
"key roll: added pending key '{pending_key_id}' under resource class \
'{resource_class_name}'"
)
}
CertAuthEvent::KeyPendingToNew {
resource_class_name,
new_key,
} => {
write!(f,
"key roll: moving pending key '{}' to new state under \
resource class '{}'",
new_key.key_id(), resource_class_name
)
}
CertAuthEvent::KeyPendingToActive {
resource_class_name,
current_key,
} => {
write!(f,
"activating pending key '{}' under resource class '{}'",
current_key.key_id(),
resource_class_name
)
}
CertAuthEvent::KeyRollActivated {
resource_class_name,
revoke_req,
} => {
write!(f,
"key roll: activated new key, requested revocation of \
'{}' under resource class '{}'",
revoke_req.key(), resource_class_name
)
}
CertAuthEvent::KeyRollFinished { resource_class_name } => {
write!(f,
"key roll: finished for resource class '{resource_class_name}'"
)
}
CertAuthEvent::UnexpectedKeyFound {
resource_class_name,
revoke_req,
} => {
write!(f,
"Found unexpected key in resource class '{}', will try \
to revoke key id: '{}'",
resource_class_name, revoke_req.key()
)
}
CertAuthEvent::RouteAuthorizationAdded { auth } => {
write!(f, "added ROA: '{auth}'")
}
CertAuthEvent::RouteAuthorizationComment { auth, comment } => {
if let Some(comment) = comment {
write!(f,
"added comment to ROA: '{auth}' => {comment}"
)
}
else {
write!(f, "removed comment from ROA: '{auth}'")
}
}
CertAuthEvent::RouteAuthorizationRemoved { auth } => {
write!(f, "removed ROA: '{auth}'")
}
CertAuthEvent::RoasUpdated {
resource_class_name,
updates,
} => {
write!(f,
"updated ROA objects under resource class '{resource_class_name}'"
)?;
updates.fmt_event(f)
}
CertAuthEvent::AspaConfigAdded { aspa_config: addition } => {
write!(f, "{addition}")
}
CertAuthEvent::AspaConfigUpdated { customer, update } => {
write!(f,
"updated ASPA config for customer ASN: {customer} {update}"
)
}
CertAuthEvent::AspaConfigRemoved { customer } => {
write!(f,
"removed ASPA config for customer ASN: {customer}"
)
}
CertAuthEvent::AspaObjectsUpdated {
resource_class_name,
updates,
} => {
write!(f,
"updated ASPA objects under resource class '{resource_class_name}'{updates}",
)
}
CertAuthEvent::BgpSecDefinitionAdded { key, .. } => {
write!(
f,
"added BGPSec definition for ASN: {} and key id: {}",
key.asn, key.key
)
}
CertAuthEvent::BgpSecDefinitionUpdated { key, .. } => {
write!(
f,
"updated CSR for BGPSec definition for ASN: {} and \
key id: {}",
key.asn, key.key,
)
}
CertAuthEvent::BgpSecDefinitionRemoved { key } => {
write!(
f,
"removed BGPSec definition for ASN: {} and key id: {}",
key.asn, key.key,
)
}
CertAuthEvent::BgpSecCertificatesUpdated {
resource_class_name,
updates,
} => {
write!(f,
"updated BGPSec certificates under resource class \
'{resource_class_name}{updates}'",
)
}
CertAuthEvent::RepoUpdated { contact } => {
write!(
f,
"updated repository to remote server: {}",
contact.server_info.service_uri
)
}
CertAuthEvent::RtaPrepared { name, prepared } => {
write!(f,
"Prepared RTA '{}' for resources: {}",
name, prepared.resources()
)
}
CertAuthEvent::RtaSigned { name, rta } => {
write!(f,
"Signed RTA '{}' for resources: {}",
name, rta.resources()
)
}
}
}
}