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
|
<pre>Network Working Group G. Camarillo
Request for Comments: 5361 Ericsson
Category: Standards Track October 2008
<span class="h1">A Document Format for Requesting Consent</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Abstract
This document defines an Extensible Markup Language (XML) format for
a permission document used to request consent. A permission document
written in this format is used by a relay to request a specific
recipient permission to perform a particular routing translation.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Definitions and Terminology . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-3">3</a>. Permission Document Structure . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3.1">3.1</a>. Conditions . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3.1.1">3.1.1</a>. Recipient Condition . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3.1.2">3.1.2</a>. Identity Condition . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3.1.3">3.1.3</a>. Target Condition . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-3.1.4">3.1.4</a>. Validity Condition . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.1.5">3.1.5</a>. Sphere Condition . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.2">3.2</a>. Actions . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.2.1">3.2.1</a>. Translation Handling . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4">4</a>. Example Document . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-5">5</a>. XML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-6">6</a>. Extensibility . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-7">7</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-7.1">7.1</a>. XML Namespace Registration . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-7.2">7.2</a>. XML Schema Registration . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-8">8</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-9">9</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-10">10</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-10.1">10.1</a>. Normative References . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-10.2">10.2</a>. Informative References . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<span class="grey">Camarillo Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The framework for consent-based communications in the Session
Initiation Protocol (SIP) [<a href="./rfc5360" title=""A Framework for Consent-Based Communications in the Session Initiation Protocol (SIP)"">RFC5360</a>] identifies the need for a format
to create permission documents. Such permission documents are used
by SIP [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>] relays to request permission to perform
translations. A relay is defined as any SIP server, be it a proxy,
B2BUA (Back-to-Back User Agent), or some hybrid, which receives a
request and translates the Request-URI into one or more next-hop URIs
to which it then delivers a request.
The format for permission documents specified in this document is
based on Common Policy [<a href="./rfc4745" title=""Common Policy: A Document Format for Expressing Privacy Preferences"">RFC4745</a>], an XML document format for
expressing privacy preferences.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Definitions and Terminology</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
This document uses the terms defined in [<a href="./rfc5360" title=""A Framework for Consent-Based Communications in the Session Initiation Protocol (SIP)"">RFC5360</a>]. For completeness,
these terms are repeated here. Figure 1 of [<a href="./rfc5360" title=""A Framework for Consent-Based Communications in the Session Initiation Protocol (SIP)"">RFC5360</a>] shows the
relationship between target and recipient URIs in a translation
operation.
Recipient URI:
The Request-URI of an outgoing request sent by an entity (e.g., a
user agent or a proxy). The sending of such request can have been
the result of a translation operation.
Relay:
Any SIP server, be it a proxy, B2BUA (Back-to-Back User Agent), or
some hybrid, that receives a request, translates its Request-URI
into one or more next-hop URIs (i.e., recipient URIs), and
delivers the request to those URIs.
Target URI:
The Request-URI of an incoming request that arrives to a relay
that will perform a translation operation.
Translation logic:
The logic that defines a translation operation at a relay. This
logic includes the translation's target and recipient URIs.
<span class="grey">Camarillo Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
Translation operation:
Operation by which a relay translates the Request-URI of an
incoming request (i.e., the target URI) into one or more URIs
(i.e., recipient URIs) that are used as the Request-URIs of one or
more outgoing requests.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Permission Document Structure</span>
A permission document is an XML document, formatted according to the
schema defined in [<a href="./rfc4745" title=""Common Policy: A Document Format for Expressing Privacy Preferences"">RFC4745</a>]. Permission documents inherit the MIME
type of common policy documents, 'application/auth-policy+xml'. As
described in [<a href="./rfc4745" title=""Common Policy: A Document Format for Expressing Privacy Preferences"">RFC4745</a>], this type of document is composed of three
parts: conditions, actions, and transformations.
This section defines the new conditions and actions defined by this
specification. This specification does not define any new
transformation.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Conditions</span>
The conditions in a permission document are a set of expressions,
each of which evaluates to either TRUE or FALSE. Note that, as
discussed in [<a href="./rfc4745" title=""Common Policy: A Document Format for Expressing Privacy Preferences"">RFC4745</a>], a permission document applies to a
translation if all the expressions in its conditions part evaluate to
TRUE.
<span class="h4"><a class="selflink" id="section-3.1.1" href="#section-3.1.1">3.1.1</a>. Recipient Condition</span>
The recipient condition is matched against the recipient URI of a
translation. Recipient conditions can contain the same elements and
attributes as identity conditions.
When performing a translation, a relay matches the recipient
condition of the permission document that was used to request
permission for that translation against the destination URI of the
outgoing request. When receiving a request granting or denying
permissions (e.g., a SIP PUBLISH request as described in [<a href="./rfc5360" title=""A Framework for Consent-Based Communications in the Session Initiation Protocol (SIP)"">RFC5360</a>]),
the relay matches the recipient condition of the permission document
that was used to request permission against the identity of the
entity granting or denying permissions (i.e., the sender of the
PUBLISH request). If there is a match, the recipient condition
evaluates to TRUE. Otherwise, the recipient condition evaluates to
FALSE.
Since only authenticated identities can be matched, this section
defines acceptable means of authentication, which are in line with
those described in <a href="./rfc5360#section-5.6.1">Section 5.6.1 of [RFC5360]</a>.
<span class="grey">Camarillo Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
The 'id' attribute in the elements <one> and <except> MUST contain a
scheme when these elements appear in a permission document.
When used with SIP, a recipient granting or denying a relay
permissions is considered authenticated if one of the following
techniques is used:
SIP Identity [<a href="./rfc4474" title=""Enhancements for Authenticated Identity Management in the Session Initiation Protocol (SIP)"">RFC4474</a>], as described in <a href="./rfc5360#section-5.6.1.1">Section 5.6.1.1 of
[RFC5360]</a>. For PUBLISH requests that are authenticated using the
SIP Identity mechanism, the identity of the sender of the PUBLISH
request is equal to the SIP URI in the From header field of the
request, assuming that the signature in the Identity header field
has been validated.
P-Asserted-Identity [<a href="./rfc3325" title=""Private Extensions to the Session Initiation Protocol (SIP) for Asserted Identity within Trusted Networks"">RFC3325</a>] (which can only be used in closed
network environments) as described in <a href="./rfc5360#section-5.6.1.2">Section 5.6.1.2 of
[RFC5360]</a>. For PUBLISH requests that are authenticated using the
P-Asserted-Identity mechanism, the identity of the sender of the
PUBLISH request is equal to the P-Asserted-Identity header field
of the request.
Return Routability Test, as described in <a href="./rfc5360#section-5.6.1.3">Section 5.6.1.3 of
[RFC5360]</a>. It can be used for SIP PUBLISH and HTTP GET requests.
No authentication is expected to be used with return routability
tests and, therefore, no identity matching procedures are defined.
SIP digest, as described in <a href="./rfc5360#section-5.6.1.4">Section 5.6.1.4 of [RFC5360]</a>. The
identity of the sender is set equal to the SIP Address of Record
(AOR) for the user that has authenticated themselves.
<span class="h4"><a class="selflink" id="section-3.1.2" href="#section-3.1.2">3.1.2</a>. Identity Condition</span>
The identity condition, which is defined in [<a href="./rfc4745" title=""Common Policy: A Document Format for Expressing Privacy Preferences"">RFC4745</a>], is matched
against the URI of the sender of the request that is used as input
for a translation.
When performing a translation, a relay matches the identity condition
against the identity of the sender of the incoming request. If they
match, the identity condition evaluates to TRUE. Otherwise, the
identity condition evaluates to FALSE.
Since only authenticated identities can be matched, the following
subsections define acceptable means of authentication, the procedure
for representing the identity of the sender as a URI, and the
procedure for converting an identifier of the form user@domain,
present in the 'id' attribute of the <one> and <except> elements,
into a URI.
<span class="grey">Camarillo Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
<span class="h5"><a class="selflink" id="section-3.1.2.1" href="#section-3.1.2.1">3.1.2.1</a>. Acceptable Means of Authentication</span>
When used with SIP, a request sent by a sender is considered
authenticated if one of the following techniques is used:
SIP Digest: the relay authenticates the sender using SIP digest
authentication [<a href="./rfc2617" title=""HTTP Authentication: Basic and Digest Access Authentication"">RFC2617</a>]. However, if the anonymous
authentication described on page 194 of [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>] is used, the
sender is not considered authenticated.
Asserted Identity: if a request contains a P-Asserted-ID header
field [<a href="./rfc3325" title=""Private Extensions to the Session Initiation Protocol (SIP) for Asserted Identity within Trusted Networks"">RFC3325</a>] and the request is coming from a trusted element,
the sender is considered authenticated.
Cryptographically Verified Identity: if a request contains an
Identity header field as defined in [<a href="./rfc4474" title=""Enhancements for Authenticated Identity Management in the Session Initiation Protocol (SIP)"">RFC4474</a>], and it validates
the From header field of the request, the request is considered to
be authenticated. Note that this is true even if the request
contained a From header field of the form
sip:anonymous@example.com. As long as the signature verifies that
the request legitimately came from this identity, it is considered
authenticated.
<span class="h5"><a class="selflink" id="section-3.1.2.2" href="#section-3.1.2.2">3.1.2.2</a>. Computing a URI for the Sender</span>
For requests that are authenticated using SIP Digest, the identity of
the sender is set equal to the SIP Address of Record (AOR) for the
user that has authenticated themselves. For example, consider the
following "user record" in a database:
SIP AOR: sip:alice@example.com
digest username: ali
digest password: f779ajvvh8a6s6
digest realm: example.com
If the relay receives a request and challenges it with the realm set
to "example.com", and the subsequent request contains an
Authorization header field with a username of "ali" and a digest
response generated with the password "f779ajvvh8a6s6", the identity
used in matching operations is "sip:alice@example.com".
For requests that are authenticated using [<a href="./rfc3325" title=""Private Extensions to the Session Initiation Protocol (SIP) for Asserted Identity within Trusted Networks"">RFC3325</a>], the identity of
the sender is equal to the SIP URI in the P-Asserted-ID header field.
If there are multiple values for the P-Asserted-ID header field
(there can be one sip URI and one tel URI [<a href="./rfc3966" title=""The tel URI for Telephone Numbers"">RFC3966</a>]), then each of
them is used for the comparisons outlined in [<a href="./rfc4745" title=""Common Policy: A Document Format for Expressing Privacy Preferences"">RFC4745</a>]; if either of
them match a <one> or <except> element, it is considered a match.
<span class="grey">Camarillo Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
For requests that are authenticated using the SIP Identity mechanism
[<a href="./rfc4474" title=""Enhancements for Authenticated Identity Management in the Session Initiation Protocol (SIP)"">RFC4474</a>], identity of the sender is equal to the SIP URI in the From
header field of the request, assuming that the signature in the
Identity header field has been validated.
SIP also allows for anonymous requests. If a request is anonymous
because the digest challenge/response used the "anonymous" username,
the request is considered unauthenticated and will not match the
<identity> condition. If a request is anonymous because it contains
a Privacy header field [<a href="./rfc3323" title=""A Privacy Mechanism for the Session Initiation Protocol (SIP)"">RFC3323</a>], but still contains a P-Asserted-ID
header field, the identity in the P-Asserted-ID header field is still
used in the authorization computations; the fact that the request was
anonymous has no impact on the identity processing. However, if the
request had traversed a trust boundary and the P-Asserted-ID header
field and the Privacy header field had been removed, the request will
be considered unauthenticated when it arrives at the relay, and thus
not match the <sender> condition. Finally, if a request contained an
Identity header field that was validated, and the From header field
contained a URI of the form sip:anonymous@example.com, then the
sender is considered authenticated, and it will have an identity
equal to sip:anonymous@example.com. Had such an identity been placed
into a <one> or <except> element, there will be a match.
<span class="h5"><a class="selflink" id="section-3.1.2.3" href="#section-3.1.2.3">3.1.2.3</a>. Computing a SIP URI from the id Attribute</span>
If the <one> or <except> condition does not contain a scheme,
conversion of the value in the 'id' attribute to a SIP URI is done
trivially. If the characters in the 'id' attribute are valid
characters for the user and hostpart components of the SIP URI, a
'sip:' is appended to the contents of the 'id' attribute, and the
result is the SIP URI. If the characters in the 'id' attribute are
not valid for the user and hostpart components of the SIP URI,
conversion is not possible and, thus, the identity condition
evaluates to FALSE. This happens, for example, when the user portion
of the 'id' attribute contains UTF-8 characters.
<span class="h4"><a class="selflink" id="section-3.1.3" href="#section-3.1.3">3.1.3</a>. Target Condition</span>
The target condition is matched against the target URI of a
translation. The target condition can contain the same elements and
attributes as identity conditions.
When performing a translation, a relay matches the target condition
against the destination of the incoming request, which is typically
contained in the Request-URI. If they match, the target condition
evaluates to TRUE. Otherwise, the target condition evaluates to
FALSE.
<span class="grey">Camarillo Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
<span class="h4"><a class="selflink" id="section-3.1.4" href="#section-3.1.4">3.1.4</a>. Validity Condition</span>
The <validity> element is not applicable to this document. Each
<permission> element has an infinite lifetime and can be revoked
using an independent mechanism, as described in <a href="./rfc5360#section-5.8">Section 5.8 of
[RFC5360]</a>. In any case, as discussed in <a href="./rfc5360#section-4.1">Section 4.1 of [RFC5360]</a>,
permissions are only valid as long as the context where they were
granted is valid. If present, <validity> elements MUST be ignored.
<span class="h4"><a class="selflink" id="section-3.1.5" href="#section-3.1.5">3.1.5</a>. Sphere Condition</span>
The <sphere> element is not applicable to this document and therefore
is not used. If present, <sphere> elements MUST be ignored.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Actions</span>
The actions in a permission document provide URIs to grant or deny
permission to perform the translation described in the document.
Note that the <trans-handling> element is not an action, as
defined in Common Policy [<a href="./rfc4745" title=""Common Policy: A Document Format for Expressing Privacy Preferences"">RFC4745</a>], but rather an informational
element. Therefore, the conflict resolution mechanism does not
apply to it.
Each policy rule contains at least two <trans-handling> elements; one
element with a URI to grant and another with a URI to deny
permission.
<span class="h4"><a class="selflink" id="section-3.2.1" href="#section-3.2.1">3.2.1</a>. Translation Handling</span>
The <trans-handling> provides URIs for a recipient to grant or deny
the relay permission to perform a translation. The defined values
are:
deny: this action tells the relay not to perform the translation.
grant: this action tells the server to perform the translation.
The 'perm-uri' attribute in the <trans-handling> element provides a
URI to grant or deny permission to perform a translation.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Example Document</span>
In the following example, a client adds 'sip:bob@example.org' to the
translation whose target URI is 'sip:alices-friends@example.com'.
The relay handling the translation generates the following permission
document in order to ask for permission to relay requests sent to
'sip:alices-friends@example.com' to 'sip:bob@example.org'. The
<span class="grey">Camarillo Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
target URI is 'sip:alices-friends@example.com', and the recipient URI
is 'sip:bob@example.org'. The sender's identity does not play a role
in this example. Therefore, the permission document does not put any
restriction on potential senders.
+--------+ +--------------------------------+ Permission
| | | | Request
| Client | | Relay | with
| | | sip:alices-friends@example.com | Permission
+--------+ | | Document
| |+-------+ |-------------+
| ||Transl.| | |
|Manipulation ||Logic | | |
+------------>|+-------+ | |
Add +--------------------------------+ |
sip:bob@example.org V
+---------------------+
| |
| Recipient |
| sip:bob@example.org |
| |
+---------------------+
<span class="grey">Camarillo Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
<?xml version="1.0" encoding="UTF-8"?>
<cp:ruleset
xmlns="urn:ietf:params:xml:ns:consent-rules"
xmlns:cp="urn:ietf:params:xml:ns:common-policy">
<cp:rule id="f1">
<cp:conditions>
<cp:identity>
<cp:many/>
</cp:identity>
<recipient>
<cp:one id="sip:bob@example.org"/>
</recipient>
<target>
<cp:one id="sip:alices-friends@example.com"/>
</target>
</cp:conditions>
<cp:actions>
<trans-handling
perm-uri="sips:grant-1awdch5Fasddfce34@example.com"
>grant</trans-handling>
<trans-handling
perm-uri="https://example.com/grant-1awdch5Fasddfce34"
>grant</trans-handling>
<trans-handling
perm-uri="sips:deny-23rCsdfgvdT5sdfgye@example.com"
>deny</trans-handling>
<trans-handling
perm-uri="https://example.com/deny-23rCsdfgvdT5sdfgye"
>deny</trans-handling>
</cp:actions>
<cp:transformations/>
</cp:rule>
</cp:ruleset>
<span class="grey">Camarillo Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. XML Schema</span>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
targetNamespace="urn:ietf:params:xml:ns:consent-rules"
xmlns:cr="urn:ietf:params:xml:ns:consent-rules"
xmlns:cp="urn:ietf:params:xml:ns:common-policy"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- Conditions -->
<xs:element name="recipient" type="cp:identityType"/>
<xs:element name="target" type="cp:identityType"/>
<!-- Actions -->
<xs:simpleType name="trans-values">
<xs:restriction base="xs:string">
<xs:enumeration value="deny"/>
<xs:enumeration value="grant"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="trans-handling">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="trans-values">
<xs:attribute name="perm-uri" type="xs:anyURI"
use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Extensibility</span>
This specification defines elements that do not have extension points
in the "urn:ietf:params:xml:ns:consent-rules" namespace. Instance
documents that utilize these element definitions SHOULD be schema
valid. Applications processing instance documents with content that
is not understood by the application MUST ignore that content. IETF
extension documents of this specification MAY reuse the
"urn:ietf:params:xml:ns:consent-rules" namespace to define new
elements.
<span class="grey">Camarillo Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. IANA Considerations</span>
This section registers a new XML namespace and a new XML schema per
the procedures in [<a href="./rfc3688" title=""The IETF XML Registry"">RFC3688</a>].
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. XML Namespace Registration</span>
URI: urn:ietf:params:xml:ns:consent-rules
Registrant Contact: IETF SIPPING working group <sipping@ietf.org>,
Gonzalo Camarillo <Gonzalo.Camarillo@ericsson.com>
XML:
BEGIN
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"<a href="http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd</a>">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type"
content="text/html;charset=iso-8859-1"/>
<title>Consent Rules Namespace</title>
</head>
<body>
<h1>Namespace for Permission Documents</h1>
<h2>urn:ietf:params:xml:ns:consent-rules</h2>
<p>See <a href="http://www.rfc-editor.org/rfc/rfc5361.txt"><a href="./rfc5361">RFC 5361</a>
</a>.</p>
</body>
</html>
END
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. XML Schema Registration</span>
URI: urn:ietf:params:xml:schema:consent-rules
Registrant Contact: IETF SIPPING working group <sipping@ietf.org>,
Gonzalo Camarillo <Gonzalo.Camarillo@ericsson.com>
XML: The XML schema to be registered is contained in <a href="#section-5">Section 5</a>.
<span class="grey">Camarillo Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Security Considerations</span>
<a href="./rfc5360">RFC 5360</a> [<a href="./rfc5360" title=""A Framework for Consent-Based Communications in the Session Initiation Protocol (SIP)"">RFC5360</a>] discusses security-related issues, such as how to
authenticate SIP and HTTP requests granting permissions and how to
transport permission documents between relays and recipients, that
are directly related to this specification.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Acknowledgements</span>
Jonathan Rosenberg provided useful ideas on this document. Hannes
Tschofenig helped align this document with common policy. Ben
Campbell and Mary Barnes performed a thorough review of this
document. Lakshminath Dondeti provided useful comments.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. References</span>
<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC2617">RFC2617</a>] Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S.,
Leach, P., Luotonen, A., and L. Stewart, "HTTP
Authentication: Basic and Digest Access Authentication",
<a href="./rfc2617">RFC 2617</a>, June 1999.
[<a id="ref-RFC3261">RFC3261</a>] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
A., Peterson, J., Sparks, R., Handley, M., and E.
Schooler, "SIP: Session Initiation Protocol", <a href="./rfc3261">RFC 3261</a>,
June 2002.
[<a id="ref-RFC3323">RFC3323</a>] Peterson, J., "A Privacy Mechanism for the Session
Initiation Protocol (SIP)", <a href="./rfc3323">RFC 3323</a>, November 2002.
[<a id="ref-RFC3688">RFC3688</a>] Mealling, M., "The IETF XML Registry", <a href="https://www.rfc-editor.org/bcp/bcp81">BCP 81</a>, <a href="./rfc3688">RFC 3688</a>,
January 2004.
[<a id="ref-RFC4474">RFC4474</a>] Peterson, J. and C. Jennings, "Enhancements for
Authenticated Identity Management in the Session
Initiation Protocol (SIP)", <a href="./rfc4474">RFC 4474</a>, August 2006.
[<a id="ref-RFC4745">RFC4745</a>] Schulzrinne, H., Tschofenig, H., Morris, J., Cuellar, J.,
Polk, J., and J. Rosenberg, "Common Policy: A Document
Format for Expressing Privacy Preferences", <a href="./rfc4745">RFC 4745</a>,
February 2007.
<span class="grey">Camarillo Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
[<a id="ref-RFC5360">RFC5360</a>] Rosenberg, J., Camarillo, G., and D. Willis, "A Framework
for Consent-Based Communications in the Session Initiation
Protocol (SIP)", <a href="./rfc5360">RFC 5360</a>, October 2008.
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>. Informative References</span>
[<a id="ref-RFC3966">RFC3966</a>] Schulzrinne, H., "The tel URI for Telephone Numbers",
<a href="./rfc3966">RFC 3966</a>, December 2004.
[<a id="ref-RFC3325">RFC3325</a>] Jennings, C., Peterson, J., and M. Watson, "Private
Extensions to the Session Initiation Protocol (SIP) for
Asserted Identity within Trusted Networks", <a href="./rfc3325">RFC 3325</a>,
November 2002.
Author's Address
Gonzalo Camarillo
Ericsson
Hirsalantie 11
Jorvas 02420
Finland
EMail: Gonzalo.Camarillo@ericsson.com
<span class="grey">Camarillo Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc5361">RFC 5361</a> Permission Document Format October 2008</span>
Full Copyright Statement
Copyright (C) The IETF Trust (2008).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Camarillo Standards Track [Page 14]
</pre>
|