-
Notifications
You must be signed in to change notification settings - Fork 2
/
draft-young-md-query-saml.txt
672 lines (383 loc) · 21.6 KB
/
draft-young-md-query-saml.txt
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
Network Working Group I.A. Young, Ed.
Internet-Draft Independent
Intended status: Informational 8 July 2024
Expires: 9 January 2025
SAML Profile for the Metadata Query Protocol
draft-young-md-query-saml-21
Abstract
This document profiles the Metadata Query Protocol for use with SAML
metadata.
This document is a product of the Research and Education Federations
(REFEDS) Working Group process.
Editorial Note (To be removed by RFC Editor before publication)
Discussion of this draft takes place on the MDX mailing list
(mdx@lists.iay.org.uk), which is accessed from [MDX.list].
XML versions, latest edits and the issues list for this document are
available from [md-query].
The changes in this draft are summarized in Appendix A.22.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 9 January 2025.
Copyright Notice
Copyright (c) 2024 IETF Trust and the persons identified as the
document authors. All rights reserved.
Young Expires 9 January 2025 [Page 1]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents (https://trustee.ietf.org/
license-info) in effect on the date of publication of this document.
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. Notation and Conventions . . . . . . . . . . . . . . . . 3
2. Request Profile . . . . . . . . . . . . . . . . . . . . . . . 3
2.1. Content Type . . . . . . . . . . . . . . . . . . . . . . 3
2.2. Identifiers . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.1. Unique Identifier . . . . . . . . . . . . . . . . . . 4
2.2.2. Transformed Identifier . . . . . . . . . . . . . . . 4
2.2.3. Additional Identifiers . . . . . . . . . . . . . . . 5
3. Response Profile . . . . . . . . . . . . . . . . . . . . . . 5
3.1. Response Cardinality . . . . . . . . . . . . . . . . . . 5
3.1.1. No Entity Descriptors Returned . . . . . . . . . . . 5
3.1.2. One Entity Descriptor Returned . . . . . . . . . . . 5
3.1.3. More Than One Entity Descriptor Returned . . . . . . 5
4. Security Considerations . . . . . . . . . . . . . . . . . . . 5
4.1. Integrity . . . . . . . . . . . . . . . . . . . . . . . . 6
4.2. Use of SHA-1 in Transformed Identifiers . . . . . . . . . 6
5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7
6. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 7
7. References . . . . . . . . . . . . . . . . . . . . . . . . . 7
7.1. Normative References . . . . . . . . . . . . . . . . . . 7
7.2. Informative References . . . . . . . . . . . . . . . . . 8
Appendix A. Change Log (to be removed by RFC Editor before
publication) . . . . . . . . . . . . . . . . . . . . . . 9
A.1. draft-young-md-query-saml-00 . . . . . . . . . . . . . . 9
A.2. Since draft-young-md-query-saml-00 . . . . . . . . . . . 9
A.3. Since draft-young-md-query-saml-01 . . . . . . . . . . . 9
A.4. Since draft-young-md-query-saml-02 . . . . . . . . . . . 9
A.5. Since draft-young-md-query-saml-03 . . . . . . . . . . . 9
A.6. Since draft-young-md-query-saml-04 . . . . . . . . . . . 9
A.7. Since draft-young-md-query-saml-05 . . . . . . . . . . . 10
A.8. Since draft-young-md-query-saml-06 . . . . . . . . . . . 10
A.9. Since draft-young-md-query-saml-07 . . . . . . . . . . . 10
A.10. Since draft-young-md-query-saml-08 . . . . . . . . . . . 10
A.11. Since draft-young-md-query-saml-09 . . . . . . . . . . . 10
A.12. Since draft-young-md-query-saml-10 . . . . . . . . . . . 10
A.13. Since draft-young-md-query-saml-11 . . . . . . . . . . . 10
A.14. Since draft-young-md-query-saml-12 . . . . . . . . . . . 11
A.15. Since draft-young-md-query-saml-13 . . . . . . . . . . . 11
A.16. Since draft-young-md-query-saml-14 . . . . . . . . . . . 11
A.17. Since draft-young-md-query-saml-15 . . . . . . . . . . . 11
Young Expires 9 January 2025 [Page 2]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
A.18. Since draft-young-md-query-saml-16 . . . . . . . . . . . 11
A.19. Since draft-young-md-query-saml-17 . . . . . . . . . . . 11
A.20. Since draft-young-md-query-18 . . . . . . . . . . . . . . 11
A.21. Since draft-young-md-query-19 . . . . . . . . . . . . . . 11
A.22. Since draft-young-md-query-20 . . . . . . . . . . . . . . 11
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 11
1. Introduction
This document profiles the Metadata Query Protocol
[I-D.young-md-query] for use with SAML metadata [SAML2Meta].
The Research and Education Federations group ([REFEDS]) is the voice
that articulates the mutual needs of research and education identity
federations worldwide. It aims to represent the requirements of
research and education in the ever-growing space of access and
identity management.
From time to time REFEDS will wish to publish a document in the
Internet RFC series. Such documents will be published as part of the
RFC Independent Submission Stream [RFC4844]; however the REFEDS
working group sign-off process will have been followed for these
documents, as described in the REFEDS Participant's Agreement
[REFEDS.agreement].
This document is a product of the REFEDS Working Group process.
1.1. Notation and Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
This document makes use of the Augmented BNF metalanguage defined in
[STD68].
2. Request Profile
2.1. Content Type
Requests compliant with this profile MUST include the following HTTP
header to indicate that the metadata returned should be SAML metadata
(see Appendix A of [SAML2Meta]):
Accept: application/samlmetadata+xml
Young Expires 9 January 2025 [Page 3]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
2.2. Identifiers
2.2.1. Unique Identifier
Each entity known to the responder MUST be associated with the unique
identifier of the entity, corresponding to the entityID attribute of
the entity's EntityDescriptor element in SAML metadata.
2.2.2. Transformed Identifier
SAML 2.0 [SAML2Core] includes profiles based on the transfer of an
"artifact" containing the unique identifier of a SAML entity
transformed by means of the SHA-1 [RFC3174] hash algorithm (see
[SAML2Bind] sections 3.6 and 3.6.4).
In order to support use cases in which clients may be in possession
of only such a transformed representation of a SAML entity's unique
identifier without any way to establish the original entity
identifier, a responder compliant with this profile MUST associate
each entity with an identifier matching the sha1id production in the
following ABNF grammar, and treat such an identifier as equivalent to
the corresponding untransformed identifier:
SHA1 = %x73 %x68 %x61 %x31 ; lower case "sha1"
DIGIT = %x30-39
HEXDIGIT = DIGIT | %x61-66 ; lower case a-f
sha1id = "{" SHA1 "}" sha1hex
sha1hex = 40*HEXDIGIT
In the above, the sha1hex component encodes the 20-octet (160-bit)
binary SHA-1 hash value as a sequence of 40 lower case hexadecimal
digits.
For example, the identifier
http://example.org/service
transformed by means of SHA-1 hashing would become
{sha1}11d72e8cf351eb6c75c721e838f469677ab41bdb
Responder implementations MAY detect malformed SHA-1 transformed
identifiers (for example where the string of characters following the
"}" contains characters other than hexadecimal digits, or is other
than exactly 40 characters in length) and return an HTTP status code
of 400 ("bad request"). Alternatively, implementations MAY process
these as normal identifiers and return an HTTP status code of 404
("not found") if appropriate.
Young Expires 9 January 2025 [Page 4]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
2.2.3. Additional Identifiers
Entities MAY also be associated with any number of additional
responder-defined identifiers naming arbitrary groups of entities.
3. Response Profile
3.1. Response Cardinality
A request may return information for any number of entities,
including none. Responses compliant with this profile MUST use the
appropriate representation described below depending on the number of
EntityDescriptor elements returned.
3.1.1. No Entity Descriptors Returned
A response which returns no EntityDescriptor elements MUST be
represented by an HTTP status code of 404 ("not found").
3.1.2. One Entity Descriptor Returned
A response which returns a single EntityDescriptor element MUST use
that element as its document element. The responder MUST NOT make
use of a EntitiesDescriptor element in this situation (see
[SAML2Meta] section 2.3).
Such a response MUST include the following HTTP header to indicate
that the metadata returned is SAML metadata:
Content-Type: application/samlmetadata+xml
3.1.3. More Than One Entity Descriptor Returned
A response which returns more than one EntityDescriptor element MUST
consist of a document element which is an EntitiesDescriptor element,
containing the returned EntityDescriptor elements as children.
Responses MUST NOT contain nested EntitiesDescriptor elements.
Such a response MUST include the following HTTP header to indicate
that the metadata returned is SAML metadata:
Content-Type: application/samlmetadata+xml
4. Security Considerations
Young Expires 9 January 2025 [Page 5]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
4.1. Integrity
As SAML metadata contains information necessary for the secure
operation of interacting services it is strongly RECOMMENDED that a
mechanism for integrity checking is provided to clients.
It is RECOMMENDED that the integrity checking mechanism provided by a
responder is a digital signature embedded in the returned metadata
document, as defined by [SAML2Meta] section 3.
Such digital signatures:
* SHOULD use an RSA keypair whose modulus is no less than 2048 bits
in length.
* MUST NOT use the SHA-1 cryptographic hash algorithm as a digest
algorithm.
* MUST NOT use the MD5 cryptographic hash algorithm as a digest
algorithm.
* SHOULD otherwise follow current cryptographic best practices in
algorithm selection.
4.2. Use of SHA-1 in Transformed Identifiers
This profile mandates the availability of an identifier synonym
mechanism based on the SHA-1 cryptographic hash algorithm. Although
SHA-1 is now regarded as weak enough to exclude it from use in new
cryptographic systems, its use in this profile is necessary for full
support of the SAML 2.0 standard.
The use of SHA-1 in section 3.6.4 of [SAML2Bind], and its resulting
use in this protocol, would be vulnerable to an attack in which
metadata was introduced into a system by an attacker capable of
creating an entity identifier with the same SHA-1 hash as that of an
existing entity's identifier.
Such an identifier is known as a _second preimage_ of the original,
and SHA-1's resistance to discovery of it is referred to as SHA-1's
_second-preimage resistance_.
Young Expires 9 January 2025 [Page 6]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
As demonstrated by the the [SHAttered] and [Shambles] attacks, the
SHA-1 algorithm is known to have weak collision resistance. However,
at the time of writing no attacks are known on SHA-1's second-
preimage resistance; a result in this area would be required to
provide the basis of an attack based on duplicating the SHA-1 hash of
an existing identifier. As a result, the use of SHA-1 in SAML and in
this protocol is not believed to introduce a security concern.
Implementations may guard against the possibility of a future
practical attack on the second-preimage resistance of SHA-1 by
treating two entities whose entityID values have the same SHA-1
equivalent as an indicator of malicious intent on the part of the
owner of one of the entities.
5. IANA Considerations
This document has no actions for IANA.
6. Acknowledgements
The editor would like to acknowledge the following individuals for
their contributions to this document:
Scott Cantor (The Ohio State University)
Leif Johansson (SUNET)
Joe St Sauver (University of Oregon)
Tom Scavo (Internet2)
7. References
7.1. Normative References
[I-D.young-md-query]
Young, I.A., Ed., "Metadata Query Protocol", Work in
Progress, Internet-Draft, draft-young-md-query-20, July
2024, <https://datatracker.ietf.org/doc/html/draft-young-
md-query-20>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
Young Expires 9 January 2025 [Page 7]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
[RFC3174] Eastlake 3rd, D. and P. Jones, "US Secure Hash Algorithm 1
(SHA1)", RFC 3174, DOI 10.17487/RFC3174, September 2001,
<https://www.rfc-editor.org/info/rfc3174>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.
[SAML2Bind]
Cantor, S., Hirsch, F., Kemp, J., Philpott, R., and E.
Maler, "Bindings for the Security Assertion Markup
Language (SAML) V2.0", OASIS Standard saml-bindings-
2.0-os, March 2005.
[SAML2Meta]
Cantor, S., Moreh, J., Philpott, R., and E. Maler,
"Metadata for the Security Assertion Markup Language
(SAML) V2.0", OASIS Standard saml-metadata-2.0-os, March
2005, <http://docs.oasis-open.org/security/saml/v2.0/saml-
metadata-2.0-os.pdf>.
[STD68] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, RFC 5234,
DOI 10.17487/RFC5234, January 2008,
<https://www.rfc-editor.org/info/rfc5234>.
7.2. Informative References
[md-query] Young, I.A., Ed., "md-query Project",
<https://github.com/iay/md-query>.
[MDX.list] Young, I.A., Ed., "MDX Mailing List",
<http://lists.iay.org.uk/listinfo.cgi/mdx-iay.org.uk>.
[REFEDS] Research and Education Federations, "REFEDS Home Page",
<http://www.refeds.org/>.
[REFEDS.agreement]
Research and Education Federations, "REFEDS Participant's
Agreement",
<https://refeds.org/about/about_agreement.html>.
[RFC4844] Daigle, L., Ed. and IAB, "The RFC Series and RFC Editor",
RFC 4844, DOI 10.17487/RFC4844, July 2007,
<https://www.rfc-editor.org/info/rfc4844>.
Young Expires 9 January 2025 [Page 8]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
[SAML2Core]
Cantor, S., Kemp, J., Philpott, R., and E. Maler,
"Assertions and Protocol for the OASIS Security Assertion
Markup Language (SAML) V2.0", OASIS Standard saml-core-
2.0-os, March 2005, <http://docs.oasis-
open.org/security/saml/v2.0/saml-core-2.0-os.pdf>.
[Shambles] "SHA-1 is a Shambles", January 2020,
<https://sha-mbles.github.io>.
[SHAttered]
"SHAttered", February 2017, <https://shattered.io>.
Appendix A. Change Log (to be removed by RFC Editor before publication)
A.1. draft-young-md-query-saml-00
Initial version.
A.2. Since draft-young-md-query-saml-00
Added REFEDS RFC stream boilerplate.
A.3. Since draft-young-md-query-saml-01
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
Rework Section 2.2 to make the role of transformed identifiers
clearer. This changes the semantics slightly (malformed transformed
identifiers may now result in a 404 return rather than 400) but this
gives implementers more latitude in the way that they handle the
feature.
A.4. Since draft-young-md-query-saml-02
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.5. Since draft-young-md-query-saml-03
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
Added an Editorial Note to help direct readers back to the
discussion.
A.6. Since draft-young-md-query-saml-04
Fix reference to the Metadata Query Protocol [I-D.young-md-query].
Young Expires 9 January 2025 [Page 9]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
A.7. Since draft-young-md-query-saml-05
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.8. Since draft-young-md-query-saml-06
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.9. Since draft-young-md-query-saml-07
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.10. Since draft-young-md-query-saml-08
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
Modernise normative language to include [RFC8174].
Improved references to RFCs.
A.11. Since draft-young-md-query-saml-09
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.12. Since draft-young-md-query-saml-10
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
Replace citations in the abstract with straight textual mentions, as
required by the ID-NITS checklist.
A.13. Since draft-young-md-query-saml-11
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
Strengthen Section 4.1 so that SHA-1 now MUST NOT be used in the
context of digital signatures. This brings the section in line with
current best practice recommendations, particularly in light of the
[SHAttered] and [Shambles] attacks.
Revised Section 4.2 on the use of SHA-1 in transformed identifiers
to:
* Make clear that this is a SAML-level issue, not one introduced by
the query protocol.
* Reference the attacks demonstrating SHA-1's weak collision
resistance.
Young Expires 9 January 2025 [Page 10]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
* Identify second-preimage resistance as the potential source of the
attack we'd be concerned about for the query protocol.
* Note that SHA-1's second-preimage resistance is at present
uncompromised.
A.14. Since draft-young-md-query-saml-12
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.15. Since draft-young-md-query-saml-13
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.16. Since draft-young-md-query-saml-14
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.17. Since draft-young-md-query-saml-15
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.18. Since draft-young-md-query-saml-16
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.19. Since draft-young-md-query-saml-17
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.20. Since draft-young-md-query-18
Formatting changes to allow rendering with xml2rfc version 3.
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.21. Since draft-young-md-query-19
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
A.22. Since draft-young-md-query-20
Bump reference to the Metadata Query Protocol [I-D.young-md-query].
Author's Address
Ian A. Young (editor)
Independent
Young Expires 9 January 2025 [Page 11]
Internet-Draft SAML Profile for the Metadata Query Prot July 2024
Email: ian@iay.org.uk
Young Expires 9 January 2025 [Page 12]