Peter 的个人资料Peter's ruminations照片日志列表更多 工具 帮助

日志


7月15日

signed XRDS, and signed XRDs.

<?xml version="1.0" encoding="UTF-8"?>
<XRDS xmlns="xri://$xrds">
<XRD xml:id="7d7b674c-7113-11de-813a-cbd5311f1a6c" xmlns="xri://$xrd*($v*2.0)">
  <Query>*peter2</Query>
  <Status ceid="off" cid="off" code="100">Success</Status>
  <ServerStatus code="100">Success</ServerStatus>
  <ProviderID>@!E459.819D.771.7990!5B62.6F13.7602.5176</ProviderID>
  <LocalID>!0</LocalID>
  <CanonicalID>@!E459.819D.771.7990!5B62.6F13.7602.5176!0</CanonicalID>
  <Service>
   <ProviderID>@!E459.819D.771.7990!5B62.6F13.7602.5176!0</ProviderID>
   <Type select="true">xri://$res*auth*($v*2.0)</Type>
   <MediaType select="false">application/xrds+xml</MediaType>
   <URI append="none" priority="2">http://localhost:80/server/resolve/ns/@!E459.819D.771.7990!5B62.6F13.7602.5176!0/</URI>
   <URI append="none" priority="1">https://localhost:443/server/resolve/ns/@!E459.819D.771.7990!5B62.6F13.7602.5176!0/</URI>
  </Service>
  <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
    <ds:Reference URI="#7d7b674c-7113-11de-813a-cbd5311f1a6c" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
     <ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
      <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
     </ds:Transforms>
     <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
     <ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">u1B1E6g9T5fiiRdLg1JS4rXOI+Y=</ds:DigestValue>
    </ds:Reference>
   </ds:SignedInfo>
   <ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
ThwZTOMnmD7XGH4fk7da++NW/G+5bXWUHDsjGLgBSveED21qNfm7UUE5vCVxmY9UZ+OZcqakrsdi
jcmDFS6+GHin5CHVZE/6e+UGtD5Ui3oOI+Id5m5tMc4CvUfPNa71XsSd0XAdV/f1nAkdM0DaZp9o
0zoBxx7DPM7TtFYWPJU=
</ds:SignatureValue>
   <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
     <ds:X509Certificate xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
MIICdjCCAd+gAwIBAgIBADANBgkqhkiG9w0BAQUFADCBgDELMAkGA1UEBhMCVVMxETAPBgNVBAgT
CE1hcnlsYW5kMREwDwYDVQQHEwhCZXRoZXNkYTENMAsGA1UEChMERXBvazEUMBIGA1UECxMLRW5n
aW5lZXJpbmcxJjAkBgNVBAMTHVNBTUwgVGVzdCBDZXJ0IC0gRE8gTk9UIFRSVVNUMB4XDTA0MDYx
NjIyMjYzNloXDTA0MDcxNjIyMjYzNlowgYAxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhNYXJ5bGFu
ZDERMA8GA1UEBxMIQmV0aGVzZGExDTALBgNVBAoTBEVwb2sxFDASBgNVBAsTC0VuZ2luZWVyaW5n
MSYwJAYDVQQDEx1TQU1MIFRlc3QgQ2VydCAtIERPIE5PVCBUUlVTVDCBnzANBgkqhkiG9w0BAQEF
AAOBjQAwgYkCgYEAtAJhWjqiydiYSNFtpdkLLuOCQhA09FGj1s9SAc63kFVqHB5BILm6kHHqFQgI
qs/qFpfT7qmaVNUNlVF3/MLMZgd+F1IkhFgjozhqV7NbGSjHSaxQJVm+U4xhPyBxWDtu/IrVzc6a
ii4m0JVkXOdv49/uK/+HwZaaPKbjdZiHD1kCAwEAATANBgkqhkiG9w0BAQUFAAOBgQBlGbHiHeRq
i5JHC/X045E9fCGZVmSWglbnxsEdQ4ZXwN1fg4WwGym/p3tGaE/XGingMcU+x5f2lkfvvBCxSKV+
e4ujatUYQvyQjqIE6ddBODkdAnNdBQrH6N7MZHShpoiy5WluogXwi9WLODPxcPwVrzXZVk6VKTTe
e8qdP3Gjtg==
</ds:X509Certificate>
    </ds:X509Data>
   </ds:KeyInfo>
  </ds:Signature>
  <Server>OpenXRI</Server>
</XRD>
<XRD xml:id="7f64247d-7113-11de-813a-cbd5311f1a6c" xmlns="xri://$xrd*($v*2.0)">
  <Query>*peter3</Query>
  <Status ceid="off" cid="off" code="100">Success</Status>
  <ServerStatus code="100">Success</ServerStatus>
  <ProviderID>@!E459.819D.771.7990!5B62.6F13.7602.5176!0</ProviderID>
  <LocalID>!0</LocalID>
  <CanonicalID>@!E459.819D.771.7990!5B62.6F13.7602.5176!0!0</CanonicalID>
  <Service>
   <Type select="true">xri://$certificate*($x.509)</Type>
   <Path match="default"/>
   <MediaType match="default"/>
   <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:X509Data>
     <ds:X509Certificate>MIICdjCCAd+gAwIBAgIBADANBgkqhkiG9w0BAQUFADCBgDELMAkGA1UEBhMCVVMx
ETAPBgNVBAgTCE1hcnlsYW5kMREwDwYDVQQHEwhCZXRoZXNkYTENMAsGA1UEChME
RXBvazEUMBIGA1UECxMLRW5naW5lZXJpbmcxJjAkBgNVBAMTHVNBTUwgVGVzdCBD
ZXJ0IC0gRE8gTk9UIFRSVVNUMB4XDTA0MDYxNjIyMjYzNloXDTA0MDcxNjIyMjYz
NlowgYAxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhNYXJ5bGFuZDERMA8GA1UEBxMI
QmV0aGVzZGExDTALBgNVBAoTBEVwb2sxFDASBgNVBAsTC0VuZ2luZWVyaW5nMSYw
JAYDVQQDEx1TQU1MIFRlc3QgQ2VydCAtIERPIE5PVCBUUlVTVDCBnzANBgkqhkiG
9w0BAQEFAAOBjQAwgYkCgYEAtAJhWjqiydiYSNFtpdkLLuOCQhA09FGj1s9SAc63
kFVqHB5BILm6kHHqFQgIqs/qFpfT7qmaVNUNlVF3/MLMZgd+F1IkhFgjozhqV7Nb
GSjHSaxQJVm+U4xhPyBxWDtu/IrVzc6aii4m0JVkXOdv49/uK/+HwZaaPKbjdZiH
D1kCAwEAATANBgkqhkiG9w0BAQUFAAOBgQBlGbHiHeRqi5JHC/X045E9fCGZVmSW
glbnxsEdQ4ZXwN1fg4WwGym/p3tGaE/XGingMcU+x5f2lkfvvBCxSKV+e4ujatUY
QvyQjqIE6ddBODkdAnNdBQrH6N7MZHShpoiy5WluogXwi9WLODPxcPwVrzXZVk6V
KTTee8qdP3Gjtg=</ds:X509Certificate>
    </ds:X509Data>
   </ds:KeyInfo>
  </Service>
  <Service>
   <ProviderID>@!E459.819D.771.7990!5B62.6F13.7602.5176!0!0</ProviderID>
   <Type select="true">xri://$res*auth*($v*2.0)</Type>
   <MediaType select="false">application/xrds+xml</MediaType>
   <URI append="none" priority="2">http://localhost:80/server/resolve/ns/@!E459.819D.771.7990!5B62.6F13.7602.5176!0!0/</URI>
   <URI append="none" priority="1">https://localhost:443/server/resolve/ns/@!E459.819D.771.7990!5B62.6F13.7602.5176!0!0/</URI>
  </Service>
  <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
    <ds:Reference URI="#7f64247d-7113-11de-813a-cbd5311f1a6c" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
     <ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
      <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
     </ds:Transforms>
     <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
     <ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">oZcRA0SbMUmlXVaqQZ3frioTvXA=</ds:DigestValue>
    </ds:Reference>
   </ds:SignedInfo>
   <ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
G9WRi3thgtvMeZeP69iKrzhkHIZt7zVrsO2qGg1797ViPy8+1rXucsQMab3XeCXp3zPm3AiCw21S
UJZxgkbA8c1q0i18BFSdwIjZZNuq4xTxRzZ0v1eL46F33B9vB0EUypwtk99hhcXgHPVe2oVA5iME
RuhbvCrvyiOePub/hoM=
</ds:SignatureValue>
   <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
     <ds:X509Certificate xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
MIICdjCCAd+gAwIBAgIBADANBgkqhkiG9w0BAQUFADCBgDELMAkGA1UEBhMCVVMxETAPBgNVBAgT
CE1hcnlsYW5kMREwDwYDVQQHEwhCZXRoZXNkYTENMAsGA1UEChMERXBvazEUMBIGA1UECxMLRW5n
aW5lZXJpbmcxJjAkBgNVBAMTHVNBTUwgVGVzdCBDZXJ0IC0gRE8gTk9UIFRSVVNUMB4XDTA0MDYx
NjIyMjYzNloXDTA0MDcxNjIyMjYzNlowgYAxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhNYXJ5bGFu
ZDERMA8GA1UEBxMIQmV0aGVzZGExDTALBgNVBAoTBEVwb2sxFDASBgNVBAsTC0VuZ2luZWVyaW5n
MSYwJAYDVQQDEx1TQU1MIFRlc3QgQ2VydCAtIERPIE5PVCBUUlVTVDCBnzANBgkqhkiG9w0BAQEF
AAOBjQAwgYkCgYEAtAJhWjqiydiYSNFtpdkLLuOCQhA09FGj1s9SAc63kFVqHB5BILm6kHHqFQgI
qs/qFpfT7qmaVNUNlVF3/MLMZgd+F1IkhFgjozhqV7NbGSjHSaxQJVm+U4xhPyBxWDtu/IrVzc6a
ii4m0JVkXOdv49/uK/+HwZaaPKbjdZiHD1kCAwEAATANBgkqhkiG9w0BAQUFAAOBgQBlGbHiHeRq
i5JHC/X045E9fCGZVmSWglbnxsEdQ4ZXwN1fg4WwGym/p3tGaE/XGingMcU+x5f2lkfvvBCxSKV+
e4ujatUYQvyQjqIE6ddBODkdAnNdBQrH6N7MZHShpoiy5WluogXwi9WLODPxcPwVrzXZVk6VKTTe
e8qdP3Gjtg==
</ds:X509Certificate>
    </ds:X509Data>
   </ds:KeyInfo>
  </ds:Signature>
  <Server>OpenXRI</Server>
</XRD>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
   <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
   <ds:Reference URI="#7d7b674c-7113-11de-813a-cbd5311f1a6c" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
    <ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">Dtgf4UFjcmuL9updN42mR6r4UPQ=</ds:DigestValue>
   </ds:Reference>
   <ds:Reference URI="#7f64247d-7113-11de-813a-cbd5311f1a6c" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
     <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
     <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
    </ds:Transforms>
    <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
    <ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">RY5l+orkMTp9/VLmQusZfvmcx3c=</ds:DigestValue>
   </ds:Reference>
  </ds:SignedInfo>
  <ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
ck6JuNwdGoEJApRzfJ7sQE+F3HPEO9kojCmQNqp58JXqQFOU/30m3OT2jn6emxoIGEcQfKQhL1iI
w+bunl9lNFl7gnjbd4Dj3yX7st89Bul+zcUzxaeVRv6nXW24Yrz1l5Nve6A4/9hmgKCU3amK+QnL
2qv1g7NCWERt+DoGR+U=
</ds:SignatureValue>
  <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
   <ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:X509Certificate xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
MIICdjCCAd+gAwIBAgIBADANBgkqhkiG9w0BAQUFADCBgDELMAkGA1UEBhMCVVMxETAPBgNVBAgT
CE1hcnlsYW5kMREwDwYDVQQHEwhCZXRoZXNkYTENMAsGA1UEChMERXBvazEUMBIGA1UECxMLRW5n
aW5lZXJpbmcxJjAkBgNVBAMTHVNBTUwgVGVzdCBDZXJ0IC0gRE8gTk9UIFRSVVNUMB4XDTA0MDYx
NjIyMjYzNloXDTA0MDcxNjIyMjYzNlowgYAxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhNYXJ5bGFu
ZDERMA8GA1UEBxMIQmV0aGVzZGExDTALBgNVBAoTBEVwb2sxFDASBgNVBAsTC0VuZ2luZWVyaW5n
MSYwJAYDVQQDEx1TQU1MIFRlc3QgQ2VydCAtIERPIE5PVCBUUlVTVDCBnzANBgkqhkiG9w0BAQEF
AAOBjQAwgYkCgYEAtAJhWjqiydiYSNFtpdkLLuOCQhA09FGj1s9SAc63kFVqHB5BILm6kHHqFQgI
qs/qFpfT7qmaVNUNlVF3/MLMZgd+F1IkhFgjozhqV7NbGSjHSaxQJVm+U4xhPyBxWDtu/IrVzc6a
ii4m0JVkXOdv49/uK/+HwZaaPKbjdZiHD1kCAwEAATANBgkqhkiG9w0BAQUFAAOBgQBlGbHiHeRq
i5JHC/X045E9fCGZVmSWglbnxsEdQ4ZXwN1fg4WwGym/p3tGaE/XGingMcU+x5f2lkfvvBCxSKV+
e4ujatUYQvyQjqIE6ddBODkdAnNdBQrH6N7MZHShpoiy5WluogXwi9WLODPxcPwVrzXZVk6VKTTe
e8qdP3Gjtg==
</ds:X509Certificate>
   </ds:X509Data>
  </ds:KeyInfo>
</ds:Signature>
</XRDS>

google web discovery



________________________________________
From: general-bounces@openid.net [general-bounces@openid.net] On Behalf Of Manger, James H [James.H.Manger@team.telstra.com]
Sent: Wednesday, July 15, 2009 12:20 AM
To: general@openid.net
Subject: Re: [OpenID] Google discovery prototype: host-meta from Google

More on the proof-of-concept of an OpenID Provider for Google hosted domains (https://sites.google.com/site/oauthgoog/fedlogininterp/openiddiscovery)...


As well as Google URIs supplying another domain's host-meta file, the domain's XRDS file, the domain's <openid:URITemplate> value, and the domain users' XRDS files -- Google also signs the XRDS files, with a certificate issued to hosted-id.google.com.

All together this means Google can masquerade as any OpenID in the world to an RP adopting this protocol. Google can masquerade not only as an OpenID for a domain for which it provides apps, but even for domains that have never had any relationship with Google. It could masquerade as an https OpenID without needing a certificate for that domain.

 

There is no "masquerading" in the architecture - that the wrong security term, I feel.

There is the case of the domain (tenant-OP) outsourcing to  a trusted "provider" of the XRDS/XRD-based discovery  service.

This is only like classical openid , where users MAY procure an XRI-form openid by "outsource" its discovery to a particular i-broker - rather than run their own openxri server. Now, domains/organizations get to do the same. For organizations, its more involved - exposing several layers of indirection.

 

Really, this is all no different in concept to todays world for organizationl "websites", which can opt to "host" their https website at a hosting site with an https wild-card cert (or a VeriSign https cert whose extension explicitly lists which domain names the hosting-ISP can speak for).

Rather than "hosting" a website's https endpoint on a wild-card https cert, Google are simply acting as an XRI "provider". But, they are apparently taking the option to run a community authority, rather than serve as an i-broker for organizations

Furthermore, when I take a good long look at the host-meta, its nothing more that a XRI "community" root hint. Also, the locator/redirector function of the initial lookup is just an XRI server offering to resolve two synonyms of a common entry- each name (the goolle path, or the domain path) allowing reoslution to a canonical entry whose (default) forwarding-SEP eventually redirects the RP to the discovery-endpoint hint file (host-meta) that locates the domain's choice of community authority. [2 levels of indirection, so far].


I would like to understand which aspects can be changed to make it viable, without crippling adoption.
Changes that could be sufficient include:
1. Removing 3rd-party URIs for a domain's host-meta file; or
2. Removing the <openid:URITemplate> element; or
3. Removing 3rd-party XRDS signers.


Rather than finding the above 3 things which cripples the infrastructure vision, I find those 3 are THAT WHICH MAKE IT ACCEPTABLE in an UCI environment. These are the elements which allow the domain to break free of Google governance/provider - if they choose their own governance/provider/trust framework. Given the choice, they may choose a third party provider other than Google, or they can be their own provider.

This WILL be VERY threatening to the traditional hierarchical/military PKI crowd and its outsourcers, as it re-engineers PKI - reaching a new level. Its only threat is actually its disruptiveness to the established order - but in a conservative crowd that will be a significant issue.

To a forward-looking "opportunistic" PKI business, its really just more of the same "trust networking" business. The space is  better than that crafted in 1995, as now there is a much bigger market space to work in., The cloud concept adds n layers of indirection -- into which MORE [outsourced] trust management is required not less.

Given the whole indirection architecture based on XRD SEPs, Dirk was correct when he said that yet another level of indirection can be put on the front, to help an RP choose between cloud providers (Google endpoints vs Microsoft endpoints) for a given domain. The domain just has a third party provider of XRDs mint another set, whose SEPs point via SEP-level redirects/referrals to the Google-hosted XRDS (or the Microsoft-hosted XRDS). The initial locator use of synonyms showed clearly how the architecture allows - per domain - this additional indirection. Choose Google synonym, you are preselecting the Google cloud as a RP. Choose the domain path for its host-meta, you eigher default back to the Google cloud, or the domain sets up the additional pointer that allows for cloud selection.

 

I get it, and I get the big picture.

 I think the government/military politics is going to be horrendous. They will do anything and everything to kill this, or modify it so ONLY TRUSTED TTPs will be allowed to act as providers.

 

The protocol documentation says "hosting one simple file on their site should be enough..., while outsourcing the rest of the work". That is a decent objective. However the protocol can operate with ZERO files on a customer's site, which seems to break a core foundation of OpenID.

I think that's a true statement. It allows and facilitates TOTAL outsourcing. But it also enables total UCI, when folks take more and more responsibility upon themselves.

 given that space of adoption, governments can also have a say, deciding how much of that space to authorize folks to operate in. China will demand total outsourcing, for example. AUS will force large corporates to only use TTP-based discovery. UK will bias towards TTPs, making UCI a disloyal act. US will first rig public services to force adoption TTPs, then give up and allow UCI -- if that's where the market takes adoption.

I ike this set of compromises, as there is a political space.

 Now, the temptation for a huge brand will be to MARKET the architecture, but rig the deliver so only the TOTAL outsourcing is viable in realty - or only certain alternate providers.

And that's our job: to show if and when they do that. As I was able to replicate in practice most of what they have done myself, in the last 2 days, if we can keep these mega-brands honest, I think we will be remembering "Google" for secure web discovery like we remember "VeriSign" for CA-based trust networks. if VeriSign can get its act together, this is a major opportunity!



James Manger
James.H.Manger@team.telstra.com
Identity and security team — Chief Technology Office — Telstra

_______________________________________________
general mailing list
general@openid.net
http://openid.net/mailman/listinfo/general

10月12日

Transnational Shibboleth communities move against PKI - in favor of validation

From Status to Validity

In an earlier post, I wrote about some of the material we didn’t include in our book on the basics of PKI. It was not included because the notion of the “Validation Authority” had yet to evolve out of one of the technologies we did discuss: OCSP. As conceived by VeriSign and Microsoft initially, OCSP was involved with the revocation of certificates and otherwise delivering “status” information.  The key word here was “status”. It can mean almost anything and can specifically mean "validity' – a subjective evaluation at best. And it is in validity that we find a story to tell; one far more interesting than the issues of revocation and compromise of certified public keys! Validity lies at the heart of a mindshare war going on between the Shibboleth and OpenID communities - 2 approaches addressing single signon.

I doubt that book talked much about it (tho I cannot really remember which control topics I wrote about, any more), Validation Authorities aimed to authorize a farm of servers listening on anycast addresses across the internet to make "status" statements on behalf of a leaf CA. The signatures could be across simple small messages (IETF), or Merkle hash trees (patented). Whereas a Validation Authority validation network might use IETF's signed OCSP messages to dynamically issue (a) signed statement(s) about a static cert to which various attributes about the subject (managed by third parties) may be attached, a SAML IDP issues signed XML "assertions"...to which various attributes about the subject (managed by third parties) may be attached (strangely enough). By fiat, attributes can be entitlements, and attribute contracts would (I grudgingly suppose) implement what a CISSP would probably call a network-/federation- wide non-discretionary security policy by controlling their release (IDP side) and acceptance (SP side).

From what I can tell, the thought-leaders of the SAML world are in a battle to the death with the thought-leaders of the OpenID2 protocol world. Both communities focus on single signon for the web, but their models of administration and management of communities could not be further apart. Grass roots OpenID wants you to be in charge of your own critical infrastructure. The Shibboleth group within the SAML world believe in the Trusted Third Party model, where you are merely a subject about which statements are made by others. You never speak for yourself. What matters is those who will act for you, in your security interests.

The Controlling Nature of Metadata

The issue at stake for the warring parties concerns the role of metadata – and its role in enforcing security policies.

Though SAML2 standards have long had an excellent metadata model to ease the setup of websso links, it is optional. It is poorly supported by commercial vendors, and except in the Shibboleth sub-community it is not viewed as security critical. For Shibboleth folk, metadata is the whole world : the means of orchestrating the security of a web-centric  distributed system, controlling the runtimes of many remote computers acting in loosly or tightly coupled meshes, including those formal high-performance computing clusters known as grids. To use terms from networking, its the "control plane" which manages the "data plane". In the core of the Internet, the Shibboleth conception of metadata is the analog of the routing algorithm that controls the convergence of the routing tables in all the reachable cooperating routers – deciding how and if packets are forwarded in a packet switched network. Just as routing protocols communicate metadata about subnets rather than hosts (normally), Shibboleth metadata describes the trustees of security policy: the IDPs and SPs of the SAML2 world (rather than the subject users).

OpenID2 is heavily invested in metadata. Its mandatory and security critical. Without going into much detail, the authority that will speak for you in any given use of the web is nominated by you, and you maintain one or more metadata files containing your "XRDS" instructions reflecting your choice of alternative providers. By your act of pointing to a particular file stored at a URL (or by using XRI name resolution to generate the "XRDS stream" on the fly), the OpenID protocols wrap themselves around your wishes and the wishes of your communicants to create a semi-secure cryptographic channel over which SSO assertions are exchanged. In a Web2.0 world, this is particularly useful as you wander through yet another enrollment for a service, which demands registration details. As you act to bind your openid to this new service provider, you also get to form fill the usual answers to the usual member registration form. Kept at one of your authorities, these attributes flow over the semi secure channel. Now, being only semi-secure and given the access to metadata is so security critical, OpenID standards recommend the use of https channels – thereby availing OpenId of the assurances that https can bring: its SSL handshake, its reliance on PKI ciphersuites, and the warranties and other financial assurances that the better CA deliver to the parties subscribing to their dispute resolution services. This "built-in" governance model for OpenID2 is delivered via the parties subscription to the relying party services of the medium assurance level,  commercial CAs – TTPs that leverage the trust model known as the “freedom to contract” – a leverage that is expected to serve OpenID as well as it evidently served e-commerce in the 1990s.

What Happens to the Metadata known as PKI?

Now, OpenID is indirectly promoting PKI-based trust networks – as an adjunct to its own metadata -- where the PKI built into https brings assurance and governance by the SSL CAs. And that is a problem for those elements of the SAML community that essentially deny PKI has any role to play in those areas. In fact, that which high-end PKI does in this area of assuring and governing asserters and consumers is that which SAML2 metadata management is viewed as more properly doing. And, there is only room for one sheriff in town.

The Shibboleth communities learn-ed view on “go” (signed) metadata and “down with”  PKI can be read at http://xml.coverpages.org/Cantor-SAML-v20-MetadataInteroperabilityProfile-WD01.pdf. For me, what is interesting is not the attack on PKI (which I find timely), but the rationale concerning why Shibboleth metadata can play PKI’s erstwhile role as a framework for trust networking. And there, finally, we get back to validity.

Assertions vs Certifications vs Validity

Any computer scientist learning formal logic learns to distinguish truthful assertions from questions about the validity of theorems linking several true statements into an argument about topic X. Students learn that two models can both be valid at the same time, given some contextual assumptions. Even in core science, high school students learn that what is true at the macro scale and expressible with Newton’s differential formulas from the 17th century is not true at the micro scale, where an entirely different branch of mathematics not only expresses the peculiar laws concerning the world of micro forces … but proves that Newton’s laws do not hold. The Newtonian calculation, even one formally certified as correct by a national observatory,  simply produces the wrong answer given actual obsevations. That is, the notion of limits in conventional calculus does not necessarily extend from the world of macro forces to the world of micro forces, given actual observations by physicists! Yet, both sets of laws are "valid" – in their respective context.

In the world of SSO, validity is more mundane than in physics – but no less interesting. For the very cryptographic keys that secure and assure the actors doing their SSO thing have a lifecycle. They must be generated (ideally in a secure manner, to create a secure initial condition), they must be used, and given their nature they must be revoked - when no longer bound to some person - or they must be quickly flashed to the world as compromised (because someone published the keying secret, or the consequences of the loss of secrecy goes beyond some tolerance for risk taking). But beyond lifecycle, certified public keys also bear value judgments. In particular, the critical element of any PKI – the signed public key – bears the judgment of its issuer, but contemplates that others will also pass meta-judgment during an act of “reliance” on the issuer. That meta-judgment is nothing more that a use of validity, acting as a metric for the user's acceptance of the issuer's original judgment.

When I wrote my PhD dissertation on validation, I tried to argue that third parties should exist to support relying parties accepting certificates issued by CAs. Known as Validation Authorities, they would apply some or other validation model to a certificate, and let the relying party know their opinion. For example, I the Validation Authority consider a public key certificate within 6 months of its expiry date as too risky for your use. I hereby give it a status of “invalid” and recommend you treat it as unreliable (for your purposes). Oh, and Ill use the IETF-standardized OCSP response data structure to communicate this status value to you, signing it even – to express my ”authority”. Since OCSP also involves you sending a request message, I'll even let you specify which validity model you want applied: mine, yours, or that community of interest over there! The more validity models the merrier!

Now, Validity as Control

The problem with the validity thesis concerns its applicability to the control sphere. Once the relying party is applying a validity model other than that of the issuer, the issuer “loses control” -- particularly if another third party is advising the end user. And, that means loss of economic value of the management service being provided by the issuer - to that other third party closer to the user. One quickly arrives at the ludicrous American situation that one can be authoritatively certified as married… but the certificate may be designated invalid depending on who applies which model of validity. You can be both married and not married, at the same time. In one state you need to rent two hotels rooms; in another, only one.

In the Shibboleth community leadership's proposal, there is a triple denial ongoing – which is radical. Not only is the certificate issuer's validity model to be ignored, not only is the third party's validity model to be ignored even if delivered by OCSP and CRLs/CKLs (or ARLs/AKLs), even the relying party's own validity model MUST be ignored. The only model that matters is that of the maintainer of the Shib metadata, as expressed in signed XML. (Note: A private memo I received states that the control characterization of the Shibboleth leadership's proposal - the final MUST clause, in particular - is far too strong.)

From Full Control to Full Distribution

The nice thing for the OpenID world is that this control paradigm is not a threat to its model of metadata, if one thinks liberally. Its an endorsement of OpenID, in fact. Nothing stops anyone assuming the role of being a "maintainer" of SAML2 (signed) metadata - which contrasts with a worldview in which only “the” maintainer (whoever that one entity may be) gets to speak authoritatively on questions of validity. In fact, that is really only what OpenID already does, in allowing me and you to publish any one of n metadata files about ourselves, and direct the SSO protocol to use a particular one.

We can now conclude. OpenID relies on metadata, and Shibboileth leadership folk are proposing the SAML world moves metadata into the same seat of power. The Shibboleth notion of shifting responsibility for expressing the validity model into a metadata "maintainer" is identical with the older Validation Authority model. My own thesis in my abortive PhD dissertation (which I did actually get formally examined by UK academics ...whereupon it recveived a "total utter fail" grade, note very well) recommended that a properly conceived infrastructure for validation would operate at the level of the individual - which aligns nicely with what the OpenID movement finds itself doing in practice and what the Shibboleth team's technical proposal can actually support. Finally, the Shibboleth leadership team's proposal recognizes that the distribution of signed metadata itself depends ultimately on PKI to verify metadata own signature, - which must be then validated using PKI-centric validity constructs. Considering earlier efforts in the same topic area, just as the IETF specified that a CA might sign a cert "authorizing" a Validation Authority to make validity statements using an OCSP responder, so a CA might issue a certificate that authorizes a Shib-styled metadata maintainer to use its certified signing key to digitally sign “SAML2 metadata”.  

* * * *

Postscript. The nice thing about all this world of validity… is that its carefully and properly patented in embodiment-free language, awaiting the market to develop to the point where it calls for the work that Validation Authorities do! As for my PhD dissertation? Oh well, it got a fail! I’m sure it was a well deserved fail, given academic standards for doctoral degrees. If I consider its thesis though (validity, and who can be an authority performing validation) perhaps I should just publish it myself!

4月27日

SemWeb authenticated data flows, concerning OpenID and ECP

"How to apply openid to linked data and semweb agents?" is a harder question to answer than I ever imagined it would be.

Over the last 12 months, I've built up a pretty complete design-history for myself, linking up a rich history of open standards SSO schemes ending at OpenID2. This started with the chained SSO model in 1986-era X.500, through Kerberos-centralist world of the NOS-based network, through distributed PKI-based military messaging a la MISSI/P.772, through RSA's inter-domain cookie issuing by isap/nsapis allow for remote reliance on SecurID tokencodes, to S2ML/SAML push/pull artifacts and websso, to recent Liberty ID-FF profiling for different classes of UAs, to OpenID1 for UCI and OpenID2 for UCI & XRI-based authority resolution environments. This of course just all leads to Henry's own profiling efforts of all that "wealth of stuff" ...for the world of the "linked data".

Since OpenID Auth v2 seems rather weak as it applies to all the various flavors of web services (or comes with rather too much javascript or DOM-centric religion, where it does apply), I've been focusing on SAML2's "ECP view" of the world - as a stepping stone between the web culture for SSO (that is now commodity) and web services SSO culture (that is emerging - in as yet heavyweight models). In parallel, I'm trying to see which bits of Liberty/SAML2 IDP discovery (via common domain cookie services) are actually useful and viable, as they MIGHT apply  to ECP trust-fabric switching. My notion is that once something all works, viably, then one can turn back to OpenID extensions standardization to bring down the bar (and the cost).

In Figure 5 of  http://www.projectliberty.org/liberty/content/download/319/2369/file/draft-liberty-idff-bindings-profiles-1.2-errata-v2.0.pdf, we see a diagram of somewhat similar complexity to your own original diagram of "OpenID2 meets Semweb agents"- to which you later drew contrasts. Of course, the Fig 5 diagram targets a custom UA (not a browser), much like a semweb UA, perhaps.

I don't fully understand the rationales of all the design elements and the messages shown in that diagram; and I don't fully understand which specs control which bits of the ECP profile's protocol stack (SAML2 contributes a bit, as does the Liberty-controlled PAOS spec, as does Liberty ID-FF - apparently). But I _have_ made some practical progress - trying to see if ECP technology from open sources is approaching commodity status - such that the likes of me ...with low-end programming skills ...can now also participate, _finally_.

On that practical path, I do now "amended" the open source Shib2 SP server src, so it essentially does steps 1 - 3, using a developer UA. And, I built Peter Pritchard's openliberty ECP plugin for Firefox - which, placed in a browser container, would do the "signal handling" assumed in the space between steps 3 and 4. With a bit more effort or help, I may even get it to work and actually talk to the Shib2 SP-side SAML server. But I'm already worried, since it brings alot of Mozilla-relegion and implementation-centric baggage.

Once all that works once, however,  I'm likely to abandon the effort to actually apply the openliberty client - since it focuses on browser-based, user-centered UI for Selecting IDPs, in a "lets-go-compete" with cardspace and JanRain's idselector.com mission). Rather, I may to back to applying my own data-centric/metadata-aware UA as the ECP agent, which is similar to your semweb user agent I suspect. And there, "trustworthy" metadata will guide the switching path chosen through the SP->IDP trust fabric, rather than users. Now, I have various patented techniques and other IP I can (privately) call on to accomplish automatic, trust-metric-based switching in an XRI-style tree walking environment, and you of course have the alternative W3C:WOT and PGP traditions to call on - addressing the FOAF tradition. Once the overall flow is right using a variety of modern, trust fabric infrastructures, perhaps the trick will be to then cast it all in terms of simple, OpenID extensions.

_________________________
Peter Williams


From: Story Henry
Sent: Mon 4/21/2008 8:07 AM
To: OpenID General
Subject: Re: [OpenID] OpenId sequence diagram
_______________________________________________
general mailing list
general@openid.net
http://openid.net/mailman/listinfo/general

sharing XRI between SAML and OpenID; extending the XRD schema

Looking for what SAML2 and OpenID2 each do best, and where they act in common with regard to security handling rules for their respective "Authentication Request protocols", I noted the following in [1]

"Note that if the <AuthnRequest> is not authenticated and/or integrity protected, the information in it MUST NOT be trusted except as advisory. Whether the request is signed or not, the identity provider MUST ensure that any <AssertionConsumerServiceURL> or <AssertionConsumerServiceIndex> elements in the request are verified as belonging to the service provider to whom the response will be sent. Failure to do so can result in a man-in-the-middle attack."

First, saml and OpenID are similar in that both characterize the fundamental controls in their handshake design in terms of "requests" (not responses).

Second, in the SAML case, metadata may be signed or not signed; and, requests be signed or not signed, similarly. As we see above, "verification" is obligatatory for the unsigned-request/unsigned-metadata cases. If I replace the term verification with the term "OP/RP discovery", we have a situation much like in OpenID2, mapping identifiers/realms into endpoints.

I'm wondering which infrastructure to use to distribute my SAML metadata (and possibly a Realtor's public FOAF data). One option is to put it in our application repository (RETS - an RDF like SPARQL server, that has a GETmetadata URI-bound transaction and that permits "community-extensions" to the (RETS) metadata schema). Another option is to put it in the XRDS/XRD, so XRI resolution can be shared when securing flows between SAML2 endpoints and also between OpenID endpoints. (I could even extend the RETS transaction model privately, to deliver XRDS documents!) Now, if I go with XRI as the data model, would I define an extension for the XRD schema, importing the SAML2 metadata schema say? If I do that, can this legitimately be done by private entities in the management model, or is this right reserved for an OASIS process?

The elements in the XRD schema are intended for generic resource description, including the metadata necessary for XRI resolution. [2]

An XRDS document is intended to serve exclusively as an XML container document for XML schemas from other XML namespaces. Therefore it has only a single root element xrds:XRDS in its own XML namespace identified by the XRI xri://$xrds. [2]

It also has a single attribute, xrds:XRDS/@xrds:ref of type anyURI that identifies the resource described by the XRDS document. The formal XML schema definition of an XRDS document is provided in Appendix A. [2]

[1] http://www.oasis-open.org/committees/download.php/22389/sstc-saml-profiles-errata-2.0-wd-05-diff.pdf

[2] http://www.oasis-open.org/committees/download.php/17293

_________________________
Peter Williams

4月5日

investement in OpenID

The discussion of using openid for age enforcement got me thinking more widely.
 
It's interesting to see how quickly an authentication benefit (leave authenticated comments, suitable for building trust via endorsement) becomes attached to the issues of enforcement and control : (i) what's the assurance level of the assertion of age, nationality or other attributed fact, by provider, and  (ii) how can one now enforce policy myXdesire based on that assured attribute. One can think more widely about the question of what focusing on mostly "control objectives" would mean for the investment prospects in relation to the budding vendor community, here.
 
The issues of enforcement and control are of course long embedded in the traditional outsourced identity management business - which already uses a myriad of proprietary and semi-standard protocols. Folks in that business will happily admit openid standards, I venture:  they could not care less about which bits and bytes are used, so long a reasonable folk think its a reasonable thing to apply when addressing the customer's "control issue". Identity management is, and always will fundamentally be, an outsourcing revenue model, fitting neatly into Wall Street's "information service bureau' category.
 
The topics of control and enforcement always trigger question in my mind about the Foundation's mission. The mission comes across as wanting to above all promote authenticated comments on blogs, leading to the creation of a scalable trust framework in which linked-backed identity becomes an endorsing feedback system that ultimately self-regulates the average contributor - once reputation is publicly attached to the gestalt of his/her public contributions. Folk such as ClaimID have built clear demonstrators of such notions, building on "authentication via linkback services" to assert qualified ownership via openid and microIDs of posted authenticated _content_, too. (Having seen it all 'brought together as a concept" in ClaimID, I'm on board, as an eary adopter type!) However, I also see an undercurent in the Foundation's tone that seems to believe that -- even in the short term -- the only significant revenue that will ever be attached to all this, with which to sustain the infrastructure, will be good ol business of classical identity management outsourcing.
 
The most traditional identity management crowd (EDS, Hughes, Reuters, CAP, etc) competing for the (non-telco) $100M+ outsourcing size revenue opportunities will probably not directly participate in generating adoption of an openID-based trust feedback system: they are not evangelists, they are simple run of the mill business folk seeking to operate policy systems dealing with "control problems" . With luck, the business development folks in such companies may view OpenID as a market expansion driver however, for core services - leading to development investment or tech sponsorship. If the movement gets critical mass beyond the social networking space, one can see a world in which such firms, in order to build market share or get to market fast in the new market of authenticated comments and endorsement systems, will purchase those privately-held OPs that (a) somehow get critical mass of participation and consumer acceptance, or (b) have VC-quality Intellectual Property assets embodying some twist that make their approach particularly suitable or cost effective when applied to the very _traditional_ control and audit problems in banking, insurance, healthcare, suppy chain,..., and then - ultimately - general enterprise.
10月1日

Designing a Strong Authentication Protocol for OpenID in Realty Applications

Work in Progress.

Topic

In Tying FOAF identity with the identity semantics of OpenID - v2.7 we discussed how the conceptual model of FOAF could augment the notions of identity present in OpenID Auth 2.0. We extend that discussion in this memo by addressing the question: Can we apply SPARQL, FOAF and WOT to assure the asymmetric keys used to strongly authenticate an OP Identity? We propose a solution to several problems that we view as characterizing the current lack of strong authentication in OpenID protocols. We outline a study of how each solution element addresses a need in a Realty application of OpenID, and state why the solution to each problem is a proper security requirement for any realty infrastructure adoption OpenID.

Background Material

[For each core technology, provide a precis of the major components. Bias the presentation towards the elements that we will actually leverage]

OpenID

SemWeb

FOAF

WOT

SPARQL

Introductory Ideas

[State the main problem - OpenID lacks strong authentication. There is insufficient protocol to gauge assurance, in general.]

State subproblem #1:  Staying close to web means use HTML discovery, applying delegation. How do we propose putting an encoded SPARQL query into the delegation field?

State subproblem #2:  FOAF provides a method for reasoning with user-centric trust lists (knows: relations). How do we propose applying knows relations to assure the strong authentication of OpenID consumers to OpenID Providers ?

State subproblem #3: OpenID Consumers and OpenID Providers are mutually suspicious. How do allow one SPARQL query from the user's delegation value to be applied by both the Consumer and the Provider?

State subproblem #4:  FOAF is not a standard part of OpenID Auth 2.0. How do we propose using namespace extensions to indicate the desire for SPARQL processing of FOAF files?

State subproblem #5:  OpenID extensions indicate the claims the Consumer wishes to receive. How do we propose using using SPARQL and FOAF to satisfy the requested claim set and perform claim transformation?

State subproblem #6:  FOAF normally contains public data. How do we apply AX, namespace extensions , SPARQL and additional FOAF classes to enforce access controls for a variety of policies?

Elements of Strong Authentication

[Outline the proposed solution components]

States

Messages

Processing

Impact of Strong Authentication on Realty Infrastructure

9月23日

DIDW panel topics: Talking about SAML2 rollout in San Francisco, while addressing OpenID in the next iteration?

Comments solicited in any inappropriateness on the material that follows - which attempts to organize how I will (hopefully) participate on an DIDW panel discussion touching on OpenID topics, Monday at 2:30.

I will amend my project description to 6 minutes. (There are 3 _optional_ picture slides to go with it.). It will highlight how 15k San Francisco Realtors all got (SAML2) SSO in February of this very year - which seems appropriate case study --  since San Francisco is our host city. This is all very concrete. If its helpful, Id be happy to go first and help warm up a cold audience.

To tune that story for an open panel forum, the last 2 minutes will be on the topic of how consumers and realtors might interact using web2.0. This will introduce how we are thinking of using OpenID on the so called "client portal" - a per-Realtor hosted collaboration site where potential homeowners work with the realtor one on one -  to find the right homes for their tastes. Either we can require homeowners to go get a Microsoft passport/hotmail/LiveID account to logon to the portal , which means we must rely on WS-Federation SSO from LiveID, or they do the same with an OpenID Provider - where we relying on OpenID SSO from the likes of Vidoop. Which would be better, given these 2 federation options could equally apply to any one of potentially 2 million people in N California who will interact with a Realtor, in the next Year? Which option could we actually see becoming a reality in a 3 month timeframe?

The opening piece would leave open the question: Why ...would one take longer than the other to make happen? Does this therefore bias the selection of SSO technology?

updates

Ok. I have 15 minute talk for you on Quattro - an actual, live deployment of WebSSO that occurred in the last 9 months - for almost 100k Realtors across N California, operating out of about 5000 brokerage offices where the state licensing regulations are enforced. I will describe why the connecting parties opted to use websso to enable all realtors to access all sources of property listing data in all 9 counties. The economic facts tell a fascinating story (monthly fees per realtor went down in most cases, the security program paid for itself, no user resentment was detected despite issuing one-time-password security tokens as the same time.)

If I can get authority to discuss certain matters that reflect backroom concerns, I will publicly state why these parties opted to address certain regionalization trends going on in N California market with this "federated" approach, rather than use alternative schemes. Additionally I can summarize the impact in general terms: who won out and who lost out by this combination of business/technology tactics.

Parallels with equivalent rollout programs on the E coast can be stated, with some discussion of how the scheme uses websso services to solve mostly state-level problems while also addressing national-scoped websso problems. For example, whilst locally focused, any one of 1.3M realtors will also need from their local portal site to get SSO access a certain service provider vendor (in CA, perhaps), who happen to operate nationally-syndicated services related to backroom management (workflow, records management, compliance,...).

This can finish by stating how critical it was that there existed a mature technology standard, a multi-vendor climate, commodity security and pricing structures, and ...proof that other industries were moving in the same direction so that the Realtor will one day have within their webSSO network access to the (mortgage banking brokers, title insurers, fiduciary escrow agents, county recorder) offices - all of which are of course necessary to close the conveyance of your real property.

As almost everyone in the room will have personally touched this process, as a buyer/seller, it usually easy to put yourself in the shoes of the Realtor and see just why such folk need such networking capabilities - to get your transaction closed by 1pm and recorded, during the window when the loan is both funded and the recorder's office is open.

Email Post on using deriving SPARQL queries from FOAF knows relations to assure PubKeys

 

From: Story Henry [mailto:henry.story@bblfish.net]

Sent: Fri 9/21/2007 3:12 AM

To: Peter Williams

Cc: OpenID General

Subject: Re: [OpenID] cryptographics web of trust

On 15 Sep 2007, at 05:16, Peter Williams wrote:

> I played more with your foaf file, its wot, its implied recommendation

> to certain public keys.

> http://yorkporc.spaces.live.com/blog/cns!5061D4609325B60!167.entry

By the way, one thing to remember about writing blogs is that people may be arriving at your blog from anywhere. So they don't have context. It is important therefore to decontextualise as far as possible what you are writing.

The query in the original reference used a java-script-like server-side scripting language, extended with a proprietary RDF query language. Its easy to learn, as its very similar to that underlying a million older Microsoft websites using Active Server Pages (ASP). A lot of programmers would relate to it (if indeed I contextualized, properly in an ezine-grade blogsite, seeking recommendations).

What matters most for now is the query design, not the language of its expression. Perhaps, continued discussion should aim to help OpenID community (a) focus on the appropriateness of its end-used identifier rules (https/http/no-fragments), (b) review how proposed wot:SigEvents documenting KeySign-ings may support OpenID Auth by adding assurance to the distribution of keying material, (c) allow optional FOAF discovery to add assurance to OpenID HTML Discovery of URIs, (d) let FOAF optionally be used as a basis of fulfilling AX queries, (e) let FOAF be a source of security policy controlling the release of attributes via AX, and (f) let FOAF/RDF document and/or define OpenID namespaces and protocol extensions.

In that vein, I can then note that FOAF cards are one of the earliest of SemWeb experiments - one that "captures its major design tenets". (I don't want to "abuse" SemWeb, as some claim SOAP abuses the "intended role" of XML.) I note that FOAF vocabulary is used most of the examples in the SPARQL Query Recommendation. I note than foaf:openid is now an experimental term. I note that versions of FOAF's own ontology have been signed using the WOT vocabulary. I note how your own FOAF card shows how one might similarly sign some byte form of a unique PersonalProfileDocument, bearing your openid assertions and a list of URI references to various friend assertions. I note that some of those friends have openids and publickeys. I note you have certified some of the openid/cardURI/pubkey bindings, essentially.

So lets perform another thought experiment - with just those elements.

Rather than experiment further with that javascript language, lets only use the SPARQL use case models shown in and around http://www.w3.org/TR/rdf-sparql-query/#specDataset .

Lets say henry's new friends include:-

<http://example.org/foaf/aliceFoaf>

<http://example.org/foaf/bobFoaf>

Can we imagine that each graph indicated the n FROM NAMED elements in the query is one of the URLs henry's card file points out - each pointing to the card of each of henry's friends?

PREFIX foaf: http://xmlns.com/foaf/0.1/

SELECT ?src ?friendopenid ?friendpka
FROM NAMED http://example.org/foaf/aliceFoaf
FROM NAMED http://example.org/foaf/bobFoaf
WHERE
{
    GRAPH ?src 
        {
          ?x wot:pubKeyAddress ?friendpka .
          ?x foaf:openid ?friendopenid
        }
}

Can we now imagine that henry's card also has a "foaf:queryme" term. Its value might the conventions of the SPARQL protocol binding for HTTP URL. The query above would presumably be encoded as the queryme object, citing a relative-URL to be resolved against the locally-scoped name #me

[ foaf:queryme #me?query=PREFIX+foaf%3a+%3chttp%3a%2f%2fxmlns.com%2ffoaf%2f0.1%2f%3e%0d%0aSELECT+%3fsrc+%3ffriendopenid+%3ffriendpka%0d%0aFROM+NAMED+%3chttp%3a%2f%2fexample.org%2ffoaf%2faliceFoaf%3e%0d%0aFROM+NAMED+%3chttp%3a%2f%2fexample.org%2ffoaf%2fbobFoaf%3e%0d%0aWHERE%0d%0a++%7b%0d%0a++++GRAPH+%3fsrc%0d%0a++++%7b+%3fx+wot%3apubKeyAddress+%3ffriendpka+.%0d%0a++++++%3fx+foaf%3aopenid+%3ffriendopenid%0d%0a++++%7d%0d%0a++%7d . ]

Can we imagine that an address book tool used to maintain Henry's friend list also rewrites the foaf:queryme?

Can we imagine the query might reference an inference rulebase, that allows the query to prefer to pickup henry's copy/endorsement of Alice's pubkey from henry's website (rather rather than the copy from Alice's own website?)

Is there an existing "standard" SPARQL query that takes a PersonalProfileDocument card, and reduces the list of knows relations to a set of named graphs in a "template" SPARQL query - one that gets specialized by some kind of internal GRAPH "join" to then lookup the friends' current openids, or pubkeys, or other "X" terms that a particular FOAF applications focuses on?

Just a few ideas, to play with.

9月21日

FOAF, property listings, updating shows relations, subProperty (pun) searches, federate data, friend datameshes, openid CCA

From: 
Peter Williams

Sent:
Thu 9/20/2007 12:18 PM

To:  

Cc: 
foaf-dev

Subject: 
FOAF, property listings, updating shows relations, subProperty (pun) searches, federate data, friend datameshes, openid CCA

Attachments:

 

Folks:-
 
I now have a RDF proxy agent that scrapes 2 or more sources of XML (about house forSale listings), and constructs a RDF model. Ive even build a demo rulebase that defined subProperties. The intersection of FOAF/OpenID/SPQRQL seems interesting, as -- or whatever socio-political reason -- folks in almost every locality where houses are bought/sold insist on using local names for the 200 properties of the homes actually for sale. Similarly, the govt land records also express yet more properties, in yet more local names.The rules in my rulebase are thus aiming to allow inferences based on SubProperty (pun) declarations. This would seem to nicely allows a standard query expressed in standard names to be executed against in a wide-area geopgraphy comprising several data sources, each using local names.
 
I'm thinking of orchestrating things such as a Person's PersonalProfileDocument can have a seeAlso link to the  FOAF file of a house listing (yes a FOAF file, tho not necessarily a PersonalProfileDocument ). The home's FOAF would itself be dynamically generated, based on the "screen scraping" of (dynamically generated) XML datasets that can be produced on demand. This notion of a home listing is distinct from the advertisements for homes you would still see all over the place, on the search portals - where snippets of the data is let go into certain various google-style syndication channels - for marketing properties  -- much as folks have done for a couple of thousand years!
 
I'm then thinking about having the Realtor who lists the property be the first friend the house listing FOAF file "knows". When managed by this Realtor denoted as the  listing file's "owner", other friends would be added to note who is the broker in charge of that listing Realtor, who are the realtors of the buyer making offers (the brokers of those realtor could be inferred by inspecting the realtors' own FOAF files, as could data about the buyers from any FOAF files they maintain), who is the nominated third party escrow person (and inferred office), who is/are the nominated mortgage person(s) (and inferred bank(s)), who is the formal contact at the govt land office, who is the inspector/fixer/gardener, who is the title agent (and the inferred insurance company), who is the planned moving company. And of course, who is/are the seller(s) - if that data is published!
 
Am I mad and going in the wrong direction with such an application of FOAF?
 
If its a sane concept, I think I'm missing know-how on how the know's relations are updated. I think I need the equivalent process to how trackbacks work in the cross-blogging world. For all those friends in the network that we just viewed from the perspective of a home listing record, a similar view exists rooted in the record systems of each of the friends. Unlike the predictions made by information system theory, each record maintained at each friend's IT system will actually have its own slave copy of the data that COULD have been auto-inferred from the friend network (e.g. the home's long/lat, address, school district). While the values may be inferred the first time to make the slave copy (saving incorrect data entry of the same value in  multiple IT systems), the nature of records retention and legal rules insist that slave copies exist in locally maintained records systems, for long term records retention obligations in regulated industries. Of course the datamesh is specific to one and only transaction. The next home in closing has a different data mesh of friends/records systems, involved in its particular instance of the process.
 
The above is of course just exploiting what is commodity-grade know-how at this point: a federated dataset (from RDF data merging), and a data mesh (from the FOAF friends). Adding openid to the mix would allow any one (licensed) friend to access the other's formal private records management system (operated by the organization in charge) and make inferences for data properties that are not standardized in the FOAF vocabulary. Ideally, the linkup between the FOAF datamesh and openid would allow the know's relation to act as a definition of a whitelist - representing those mutually federating OP who will allow the friends identified as OpenID to perform what OpenID calls Cross Company Authentication (aka federated webSSO). There is a role of the WOT too, that would take too long to express here.
 
Just as it took a year to bootstrap webSSO into practice within US organized Realty, it will take at least the same amount of time to get such an idea about web-listings to be primed, get deployable to v1 standard, in put into operation at an early adopter locality. Obviously, the idea wont fly if the technologies undelrying it don't actually work efficiently, or are not mature enough to be deployable in production by the like of  folks like me!
 
Is RDF, FOAF (WOT) and OpenID ready for this kind of critical-infrastructure grade application?
 
 
9月18日

N3 Additional material to http://yorkporc.spaces.live.com/blog/cns!5061D4609325B60!212.entry

N3 Analysis

If we store the stream as a file on my computer's Desktop file folder, rather than explore the rdf+xml media used as a wire-transfer syntax for the RDF model, we can explore it more usefully using the highly readable N3 notation.

@prefix desktop: <file://C:/Users/pwilliams/Desktop/>.
@prefix peter: <file://C:/Users/pwilliams/Desktop/foaf.rdf#>.
@prefix ns10: <http://>.
@prefix ns11: <http://bblfish.net/>.
@prefix ns12: <http://bblfish.net/blog/>.
@prefix ns4: <http://bblfish.net/people/henry/card#>.
@prefix ns13: <http://blogs.sun.com/bblfish/>.
@prefix ns14: <http://del.icio.us/>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix rel: <http://purl.org/vocab/relationship/>.
@prefix admin: <http://webns.net/mvcb/>.
@prefix ns9: <http://www.ldodds.com/foaf/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

desktop:foaf.rdf a foaf:PersonalProfileDocument;
    dcterms:modified "2007-08-28T05:59:11Z";
    admin:errorReportsTo <mailto:leigh@ldodds.com>;
    admin:generatorAgent ns9:foaf-a-matic;
    foaf:maker peter:me;
    foaf:primaryTopic peter:me.

<file://C:/Users/pwilliams/Desktop/foaf.rdf#> owl:imports
    <http://xmlns.com/foaf/0.1/>, <file://C:/Users/pwilliams/Desktop/>,
    <http://purl.org/dc/terms/>, <http://purl.org/vocab/relationship/>,
    <http://webns.net/mvcb/>, <file://C:/Users/pwilliams/Desktop/foaf.rdf#>.

peter:me a foaf:Person;
    rel:acquaintanceOf [ a foaf:Person;
                                     rdfs:seeAlso <http://bblfish.net/people/henry/card#>;
                                     foaf:aimChatID "unbabelfish";
                                     foaf:homepage <http://bblfish.net/>;
                                     foaf:mbox <mailto:henry.story@bblfish.net>,<mailto:henry.story@gmail.com>, <mailto:henry.story@sun.com>;
                                     foaf:name "Henry J. Story"; foaf:nick "bblfish";
                                     foaf:weblog <http://bblfish.net/blog/>, <http://blogs.sun.com/bblfish/>, ns14:bblfish
                                ];
    foaf:family_name "Williams"; 
    foaf:givenname "Peter";
    foaf:mbox <mailto:pwilliams@rapattoni.com>;
    foaf:name "Peter Williams";
    foaf:nick "pe";
    foaf:openid <http://openid.sun.com/peter>;
    foaf:title "Mr";
    foaf:workplaceHomepage ns10:www.rapattoni.com.

A number of interesting identity "deep" semantics of the FOAF file become apparent. They appear to take into consideration the location of the file and the just who is doing the (possibly self) documentation.

In the statements given above, we see that the FOAF file knows itself to be located at a file: URI reference, showing how this documentation makes FOAF no longer quite so http-centric. Clearly, in the general case the space of identity semantics must go beyond the HTTP Protocol, and http-specific security schemes such as https. For example, if we look at ns10:www.rapattoni.com one sees from @prefix ns10: <http://>. that the "http" URI scheme is just another namespace.

From the fact we as readers now know that the RDF statements refer to a document tied to a particular location, we also know that it is a third party issuing this document. The FOAF file is a historical document set at a point in time and at a particular location, rather than an active document being made here and issued as a set of assertions.

This FOAF file contrasts with self-documenting FOAF statements that are assertions (such as that in the resource representing Henry Story's card). As the nature of such assertions requires the notion of realtime references, we can only refer to them via an act of linking, here. To display them in this post would be to convert the assertion that Henry's agent makes here and now into a mere document, made in the past.

9月17日

Tying FOAF identity with the identity semantics of OpenID - v2.7

This post updates "Tying FOAF identity with the identity semantics of OpenID".

Draft 2.7 addresses core organizational issues, most stylistic comments, uses correct RDF terminology and relationships,  and has removed large pictures (which Live Spaces decided to sample to save file space). Typo removal is ongoing. Phrasing polishing continues. RDF+XML in Appendices has been augmented with N3 notation.

Introduction

One of the features of is its reliance on discovery schemes to validate identity. One of the features of FOAF is its reliance on the RDF's formalism of the notions of identity, assertions (of identity) and claims (about identity). In this article we discuss how these 2 features might be combined to harmonize the intuitive notion of identity used in OpenID with the formalized concept of identity used in FOAF.

The aim of our discussion is put OpenID Auth 2.0 on a more solid formal footing -- one that is grounded in RDF Semantics. Once formalized, the security properties of OpenID Auth protocol will be amenable to formal, reasoning-based security analysis. As a valuable side-effect, we would hope to characterize how what we call a "FOAF-aware" Relying Party Agent may exploit a FOAF file during discovery.

Simplifying Assumptions

Identity

Though the end user typing a "User-Supplied Identifier" into a website's login page may be either a URI or an XRI, we simplify the discussion by eliminating the case of the user supplying an XRI -- unless it takes the form of an HXRI (see wiki). To further simplify, we eliminate the need for considering normalization by requiring the user to supply an Absolute URI. We shall assume that simple form-filling browser modules will populate OpenID login fields, automatically.

An absolute URI contains the name of the scheme being used (<scheme>) followed by a colon (":") and then a string (the <scheme-specific- part>) whose interpretation depends on the scheme. [See section 3, URI]

Discovery

defines several discovery methods involving what the authors' refer to as an "Identifier". This URI reference is used to discover "identity" (amongst other names such as the OpenID Provider Agent endpoint, and the "OP Identifier" name of the Agent itself).

Discovery is the process where the Relying Party uses the Identifier to look up ("discover") the necessary information for initiating requests.[OpenID Auth 2.0]

We concern ourselves only with the first method: HTML-based discovery. By imposing this restriction we stay close to the web. Staying close to the web will allow us to more consistently apply the notions of identity that FOAF inherits from RDF.  Thus, we opt to eliminate those methods of discovery that rely on XML documents that are not a concrete representation of RDF resources, such as XRDS documents (see YADIS Protocol). Discovery shall involve only relying on the HTTP protocol, HTML documents and resources denoted by an RDF document.

Defining a Test for "Assurance" of Identity

While performing the OpenID Auth 2.0 protocol, we will require a Relying Party Agent that is "FOAF-aware" to "validate"  -- via "FOAF-enhanced HTML-based discovery" -- that the Absolute URI supplied by an end user must be a person's legitimately-asserted OpenID.  This validation is characterized as a "test" that there are adequate "assurances" that the identity assertions and associated claims are true, before OpenID Auth 2.0  attempts to perform its basic service of authenticating the user citing the identity  -- using passwords, smartcards, biometrics, etc.

We define two tests of legitimacy. The test of "Basic legitimacy" is determined by confirming that the openid Property is present in the instance of Person class of an authentic FOAF file that contains a single PersonalProfileDocument. The test for "WOT legitimacy" is similar, but confirms that the same PersonalProfileDocument asserts an authentic public-key based identity of the FOAF file's author.

Having determined Basic legitimacy, a FOAF-aware Relying Party Agent need not determine WOT legitimacy. The Agent will normally opt to determine WOT legitimacy only when (i) there is no "foaf:openid" property, or (ii) when specifically seeking to rely on WOT-based assurances to the exclusion of other assurances. In contrast to WOT-based assurances, Basic legitimacy derives its assurances from either the security of the Association obtained when using the openid Property in OpenID Auth 2.0 or when using the Record Layer of the SSL protocol leveraged in some OpenID Auth 2.0 exchanges. 

Using Existing Ontologies to Characterize Legitimacy

1. FOAF Ontology: "Inverse Functional" & Basic Legitimacy

In an article posted to the foaf-dev discussion group, the author proposes adding a "foaf:openid" Property to the FOAF vocabulary and explains its objectives:

The foaf:openid property is "inverse functional", meaning that anything that is the foaf:openid of something, is the foaf:openid of no more than one thing. FOAF is agnostic as to whether there are (according to the relevant OpenID specifications) OpenID URIs that are equally associated with multiple Agents. FOAF offers sub-classes of Agent, ie. foaf:Organization and foaf:Group, that allow for such scenarios to be consistent with the notion that any foaf:openid is the foaf:openid of just one foaf:Agent. [article]

It is the "inverse functional" nature of the definition that particularly interests us. That a given Agent may refer to itself using multiple OpenIDs (and that the vocabulary is designed for this scenario) is currently of secondary interest. The inverse functional property of any one of these OpenIDs is what is most important and its nature confirms what the author describes as its potential to address the much wider problem of trust management:

In this way, FOAF and OpenID complement each other; neither provides a stand-alone approach to online "trust", but combined they can address interesting parts of this larger problem space. [article]

OWL discusses the meaning of an InverseFunctionalProperty in highly abstract way:



image
4.3.2 owl:InverseFunctionalProperty

If a property is declared to be inverse-functional, then the object of a property statement uniquely determines the subject (some individual). More formally, if we state that P is an owl:InverseFunctionalProperty, then this asserts that a value y can only be the value of P for a single instance x, i.e. there cannot be two distinct instances x1 and x2 such that both pairs (x1,y) and (x2,y) are instances of P. [OWL] 

This abstract definition does not explain how the uniqueness property of the relation is actually maintained. Though clearly needing refinement in a domain-specific vocabulary addressing the missing assurances, the specification already clearly helps formalize the objective of distinguishing a particular Person (or more generally any subclass of Agent) declared in a PersonalProfileDocument located at a particular URL by the assertion of an openid Property.

2. WOT Ontology: "Key Signing" & WOT Legitimacy

The author of a proposed web of trust ontology describes the problem that neither RDF nor RDF Semantics solves the problem of determining who is making RDF statements, such as the foaf:openid statement discussed above.

RDF documents can make any number of statements. Without some kind of signature or other similar verification mechanism, there is no way to understand who made these statements. One way to document who made a set of statements is via the use of Digital Signatures: signing a document using Public Key Cryptography. The WOT, or Web Of Trust, schema is designed to facilitate the use of Public Key Cryptography tools such as PGP or GPG to sign RDF documents and document these signatures.[WOT ontology]

Two terms stand out: "identity" and "User". As the following table shows, identity is a Property, whereas User is a class.

Property: wot:identity
Identity - A property linking a public key to the user of the key.

Status:
testing

Domain:
wot:PubKey

Range:
wot:User

A term identifying the wot:User of a wot:PubKey - the inverse of wot:hasKey. Useful for providing identifying information about the owner of a Key.

Class: wot:User
Key User - A user (agent, person, group or organization) of a PGP/GPG public key.

Status:
stable

in-range-of:
wot:identity

in-domain-of:
wot:hasKey

No detailed documentation for this term.

In the context of the WOT, identity is a relationship notion that is tied to public keys and the user of the associated public key pair - known normally as the "owner". What is critical about the definition is its use of a linking (as in "binding") concept between a public key and some owning user.

The term for user contrasts with that for identity. It conceives a non-naming notion of user. It seems to attempt to capture the usage and utility of a public key, once placed in the hands of an end-user. The User markup is not itself a name and is not an identifier of a user - that role is reserved for the identity term discussed above. Rather, user is a bag of user/usage related facts, bearing some relationship to a public key.

The distinctions being drawn can be seen using an example, shown in the figure below (an amended excerpt from the WOT vocabulary). Here, the public key has been signed as represented by a key signing event statement. The concept of the key owner is conveyed by citing properties of the User/usage of the public key - rather than by introducing a URI reference for that user. In this case, expressed as user properties the identity of the public key takes the arbitrary form of two distinguished properties : a foaf:name and a foaf:mbox. Presumably, a domain-specific vocabulary will further refine User.

<?xml version="1.0" encoding="UTF-8"?>
<PubKey rdf:nodeID="KeyA">
    <hex_id>3756EA0B</hex_id>
    <length>1024</length>
    <fingerprint>04FFF3AC57DF217C6D383DBC0110FB923756EA0B</fingerprint>
    <pubkeyAddress rdf:resource="http://foaf.dk/key.asc"/>
    <identity>
         <User>
               <foaf:name>Web Service (foaf.dk)</foaf:name>
               <foaf:mbox_sha1sum>
a714a83db77c6ce85211beb56599adf2c4eaa62f
               
</foaf:mbox_sha1sum>
         </User>
    </identity>
    <signed>
        <SigEvent>
              <signer rdf:nodeID="KeyB"/>
              <sigdate>2004-02-18</sigdate>
        </SigEvent>
    </signed>
</PubKey>

Asymmetric Keys as Unique Identifiers

Though above we focused on identity and user statements, the example also documents a SigEvent - the RDF statement documenting a realworld act of counter-signing a public key. As shown below, this class is an involved element of the WOT ontology :

 
image image

A signed public key is of course fundamental to the theory of PKI as used in when binding HTTP Protocol to SSL to form https. Prevailing theory on PKI teaches that the assurance of secure communications protocols inevitably relies on a more basic assurance - produced by some identity protocol that addresses the uniqueness of public keys and their "authoritative" binding to a given User. Prevailing wisdom holds that once bound to the name(s) of an owner user who uniquely controls the private key, a signed public key is regarded as a "certified key" (or "Certificate"). The certificate has all required properties necessary for assuring inverse functional properties, such as those attached to foaf:openid (see above).

An interesting question then arises. If a certified public key has a foaf:openid in its User relation, does testing for the authenticity of the certificate becomes the assurance required to test for the WOT legitimacy of that OpenID?

A Protocol for testing WOT Legitimacy?

Testing for WOT legitimacy may be able to build upon the procedures for testing Basic legitimacy. As shown below, SPARQL queries can be used as a request/response protocol. (These queries were crafted by Henry Story, referring originally to an emulation of the SAML Attribute Request/Response protocol.)

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX wot: <http://xmlns.com/wot/0.1/>

SELECT * WHERE {
    <http://bblfish.net/people/henry/card#me>
        foaf:mbox ?mbox;
       
foaf:openid ?openid
    OPTIONAL {
       
[] a wot:PubKey;
          
wot:identity
              <
http://bblfish.net/people/henry/card#me>;
          
wot:pubkeyAddress ?pubKey .
     }
}

 

In this query, a Relying Party Agent does not send a classical checkid immediate message to an OP Provider endpoint. Rather, it makes a SPARQL request of the OP Provider -- listening on an SPARQL Protocol endpoint -- attempting to obtain a resultset establishing Basic legitimacy. Confirmation takes the form of the query responding with the foaf:openid value).

Optionally, WOT legitimacy may also be tested by attempting to recover the user's certified public key. (The query only shows an attempt to recover an uncertified public key)

 

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX wot: <
http://xmlns.com/wot/0.1/>

SELECT * WHERE {
   
?g trust:level ?t .
   
GRAPH ?g {
       
<http://bblfish.net/people/henry/card#me>
            
foaf:mbox ?mbox;
            
foaf:openid ?openid .
       
OPTIONAL {
            
[] a wot:PubKey;
            
wot:identity
                 <
http://bblfish.net/people/henry/card#me>;
            
wot:pubkeyAddress ?pubKey .
        
}
   
}
}


 

In this query, the SPARQL Protocol Agent receiving the previous query is then asked by the Relying Party Agent to return a set of claims about the cardholder. The query selects a graph satisfying the requested claim set, and also "signs" this result by affixing a trust level "t". Presumably the form of this query could be enhanced so that a dynamically generated digital signature is also affixed.

Conclusions and Further Study

No conclusions have yet been drawn, in what is a "study in progress".

Appendix A

In the course of researching the issues underlying this post, we considered actual FOAF files live in the wild. In this first appendix, we look at a FOAF file produced by the foaf-a-matic web-service.

We requested and obtained a FOAF file as described below:-

GET http://gkt09w.bay.livefilestore.com/y1pmOlfD-enEo3DFPaTyVPMHffJ_xgq_aF9xOxx5VBU8yARDbhL0lusFImbriUIc35pM7UoMdWwnDcCKdhiP9qOIA/foaf.rdf

HTTP/1.0 200 OK
Content-Disposition: attachment; filename="foaf.rdf"
Content-Type: application/octet-stream

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:admin="
http://webns.net/mvcb/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <foaf:PersonalProfileDocument rdf:about="">
    <foaf:maker rdf:resource="#me"/>
    <foaf:primaryTopic rdf:resource="#me"/>
    <admin:generatorAgent rdf:resource="
http://www.ldodds.com/foaf/foaf-a-matic"/>
    <admin:errorReportsTo rdf:resource="mailto:leigh@ldodds.com"/>
    <dcterms:modified xmlns:dcterms=
http://purl.org/dc/terms/
                      xmlns:rel="
http://purl.org/vocab/relationship/">2007-08-28T05:59:11Z</dcterms:modified>
  </foaf:PersonalProfileDocument>
  <foaf:Person rdf:ID="me">
    <foaf:name>Peter Williams</foaf:name>
    <foaf:title>Mr</foaf:title>
    <foaf:openid>
http://openid.sun.com/peter</foaf:openid>
    <foaf:givenname>Peter</foaf:givenname>
    <foaf:family_name>Williams</foaf:family_name>
    <foaf:nick>pe</foaf:nick>
    <foaf:mbox rdf:resource="mailto:pwilliams@rapattoni.com"/>
    <foaf:workplaceHomepage rdf:resource="
http://www.rapattoni.com"/>
    <rel:acquaintanceOf xmlns:dcterms=
http://purl.org/dc/terms/
                        xmlns:rel="
http://purl.org/vocab/relationship/">
      <foaf:Person>
        <foaf:nick>bblfish</foaf:nick>
        <foaf:name>Henry J. Story</foaf:name>
        <foaf:aimChatID>unbabelfish</foaf:aimChatID>
        <foaf:homepage rdf:resource="
http://bblfish.net/"/>
        <foaf:mbox rdf:resource="mailto:henry.story@bblfish.net"/>
        <foaf:mbox rdf:resource="mailto:henry.story@gmail.com"/>
        <foaf:mbox rdf:resource="mailto:henry.story@sun.com"/>
        <foaf:weblog rdf:resource="
http://bblfish.net/blog/"/>
        <foaf:weblog rdf:resource="
http://blogs.sun.com/bblfish/"/>
        <foaf:weblog rdf:resource="
http://del.icio.us/bblfish"/>
        <rdfs:seeAlso rdf:resource="
http://bblfish.net/people/henry/card#"/>
      </foaf:Person>
    </rel:acquaintanceOf>
  </foaf:Person>
</rdf:RDF>

The FOAF file has a PersonalProfileDocument element. The rdf:about attribute value ("") ties the document to the URL from which the document is retrieved via the HTTP protocol. It is thus describing itself, assuming one can believe HTTP when it indicates the URL from where it recovered the web page. To address doubts, one can determine the authenticity of the FOAF file by infering that one "relies on" the properties of either (i) the https security mode of the HTTP protocol or, (ii) other means such as a WOT assurance Property.

The document also contains a single Person class instance. The rdf:ID of the Person corresponds to the foaf:maker Property of the PersonalProfileDocument.

The Person resource has an openid Property whose value is unrelated to the URL from which the document may be retrieved. However, by the inverse functional definition of this property, the value is very specifically related to the document itself

The openid Property value is of course an arbitrary URI: http://openid.sun.com/peter. As I am the author of the file, I control the content of the FOAF file and I am able to edit the file to have any value I choose for my openid. I may also store the FOAF file at any URL. These facts contrast with the next FOAF file show in the following appendix.

N3 Analysis

If we store the stream as a file on my computer's Desktop file folder, rather than explore the rdf+xml media used as a wire-transfer syntax for the RDF model, we can explore it more usefully using the highly readable N3 notation.

@prefix desktop: <file://C:/Users/pwilliams/Desktop/>.
@prefix peter: <file://C:/Users/pwilliams/Desktop/foaf.rdf#>.
@prefix ns10: <http://>.
@prefix ns11: <http://bblfish.net/>.
@prefix ns12: <http://bblfish.net/blog/>.
@prefix ns4: <http://bblfish.net/people/henry/card#>.
@prefix ns13: <http://blogs.sun.com/bblfish/>.
@prefix ns14: <http://del.icio.us/>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix rel: <http://purl.org/vocab/relationship/>.
@prefix admin: <http://webns.net/mvcb/>.
@prefix ns9: <http://www.ldodds.com/foaf/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

desktop:foaf.rdf a foaf:PersonalProfileDocument;
    dcterms:modified "2007-08-28T05:59:11Z";
   
admin:errorReportsTo <mailto:leigh@ldodds.com>;
    admin:generatorAgent ns9:foaf-a-matic;
   
foaf:maker peter:me;
   
foaf:primaryTopic peter:me.

<file://C:/Users/pwilliams/Desktop/foaf.rdf#> owl:imports
    <http://xmlns.com/foaf/0.1/>, <file://C:/Users/pwilliams/Desktop/>,
    <http://purl.org/dc/terms/>, <http://purl.org/vocab/relationship/>,
    <http://webns.net/mvcb/>, <file://C:/Users/pwilliams/Desktop/foaf.rdf#>.

peter:me a foaf:Person;
   
rel:acquaintanceOf [ a foaf:Person;
                          
rdfs:seeAlso <http://bblfish.net/people/henry/card#>;
                           foaf:aimChatID "unbabelfish";
                          
foaf:homepage <http://bblfish.net/>;
                           foaf:mbox <mailto:henry.story@bblfish.net>,
                                    
<mailto:henry.story@gmail.com>, <mailto:henry.story@sun.com>;
                           foaf:name "Henry J. Story";
                          
foaf:nick "bblfish";
                          
foaf:weblog <http://bblfish.net/blog/>, <http://blogs.sun.com/bblfish/>, ns14:bblfish
                       ];

    foaf:family_name "Williams";
   
foaf:givenname "Peter";
   
foaf:mbox <mailto:pwilliams@rapattoni.com>;
    foaf:name "Peter Williams";
   
foaf:nick "pe";
   
foaf:openid <http://openid.sun.com/peter>;
    foaf:title "Mr";
   
foaf:workplaceHomepage ns10:www.rapattoni.com.

A number of interesting identity "deep" semantics of the FOAF file become apparent. They appear to take into consideration the location of the file and the just who is doing the (possibly self) documentation.

In the statements given above, we see that the FOAF file knows itself to be located at a "file://" URI reference, showing how this documentation makes FOAF no longer quite so http-centric. Clearly, in the general case the space of identity semantics must go beyond the HTTP Protocol, and http-specific security schemes such as https. For example, if we look at "ns10:www.rapattoni.com" one sees from "@prefix ns10: <http://>." that the "http" URI scheme is just another namespace.

From the fact we as readers now know that the RDF statements refer to a document tied to a particular location, we also know that it is a third party issuing this document. The FOAF file is a historical document set at a point in time and at a particular location, rather than an active document being made here and issued as a set of assertions.

This FOAF file contrasts with self-documenting FOAF statements that are assertions (such as that in the resource representing Henry Story's card). As the nature of such assertions requires the notion of realtime references, we can only refer to them via an act of linking, here. To display them in this post would be to convert the assertion that Henry's agent makes here and now into a mere document, made in the past.

Appendix B

We requested and obtained a FOAF file generated by LiveJournal (an OpenID-enabled website), for which the PersonalProfileDocument element is absent.

GET http://homepw.livejournal.com/data/foaf.rdf

HTTP/1.0 200 OK
Content-Type: application/rdf+xml; charset=utf-8

<?xml version='1.0'?>
<!--  If you are running a bot please visit this policy page outlining rules you must respect.
http://www.livejournal.com/bots/  -->
<rdf:RDF
   xml:lang="en"
   xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:foaf="http://xmlns.com/foaf/0.1/"
   xmlns:ya="http://blogs.yandex.ru/schema/foaf/"
   xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
   xmlns:dc="http://purl.org/dc/elements/1.1/">
  <foaf:Person>
    <foaf:nick>homepw</foaf:nick>
    <foaf:name>homepw</foaf:name>
    <foaf:openid rdf:resource="
http://homepw.livejournal.com/" />
    <foaf:dateOfBirth>1965-02-01</foaf:dateOfBirth>
    <foaf:page>
      <foaf:Document rdf:about="
http://homepw.livejournal.com/profile">
        <dc:title>LiveJournal.com Profile</dc:title>
        <dc:description>Full LiveJournal.com profile, including information such as interests and bio.</dc:description>
      </foaf:Document>
    </foaf:page>
    <ya:blogActivity>
      <ya:Posts>
        <ya:feed rdf:resource="
http://homepw.livejournal.com/data/foaf" dc:type="application/rss+xml" />
        <ya:posted>1</ya:posted>
      </ya:Posts>
    </ya:blogActivity>
    <foaf:weblog rdf:resource="
http://homepw.livejournal.com/"/>
  </foaf:Person>
</rdf:RDF>

The Person resource has an openid Property whose value is obviously highly related to the URL from which the document must be retrieved.  The property is similarly no fully related to the ID of the Person instance, which has no local ID.

As far as we can tell, someone simply invented an XML format that foaf files will be obtained from a URL with pattern: */data/foaf. The main purpose in making these FOAF files available is suggested by the ya:feed markup, which denotes the FOAF URL as a resource associated with a blogging feed. Unlike the use of a Person class in the context of a PersonalProfileDocument, the Person instance in this example is merely some ready-specified markup that helps indicate some information about a blog feed (the number of posted items). This FOAF file would not seem suitable for use in an identity protocol of the type discussed in the paper. It uses the FOAF vocabulary, but it is not a "FOAF file".

9月15日

An extended OpenID Auth Req

 

 

Build a query on henry's foaf file, querying the foaf files of those of his friends whose public keys he has trusted/endorsed .

 

import "/std/http.rql";
import "/std/ns.rql";
session.namespaces["bblfish"] = "
http://bblfish.net/people/henry/card";
session.namespaces["wot"] = "http://xmlns.com/wot/0.1/";
session.namespaces["peter"] = "http://rapattoni.com/people/peter/card#";

DROP TABLE henry;
var req = new HttpRequest("
http://bblfish.net/people/henry/card");
var ds = req.getResponseData();
CREATE TABLE henry AS TEMP;
var rshenry = (INSERT {?p ?s ?o} INTO henry USING #ds WHERE {?p ?s ?o});

DROP TABLE friendkeys
CREATE TABLE friendkeys AS TEMP;
var rsfriendkeys = (INSERT {[rdf:Property] ?identity ?pka} INTO friendkeys USING #rshenry WHERE
    {[foaf:givenname] ?me ?u} AND
    {[foaf:knows] ?me ?identity} AND
        ({[rdf:type] ?anon [wot:PubKey] } OR {[rdf:type] ?anon [wot:Pubkey] }) AND
            {[wot:identity] ?anon ?identity } AND
                {[wot:pubkeyAddress] ?anon ?pka });

var Ienum = ( SELECT ?identity ?pka  USING #rsfriendkeys WHERE {?predicate ?identity ?pka} );
while (!Ienum.EOF) {
    var req = new HttpRequest(Ienum["identity"]);
    var ds = req.getResponseData();
    var openid  = (SELECT ?friendsopenid USING #ds WHERE {[foaf:openid] ?s ?friendsopenid})["friendsopenid"];
    Response.write("openid.ns.peter.pka="+Ienum["pka"] + "&openid.identity="+(openid==null ?
Ienum["identity"] : openid));   
      Ienum.moveNext()
}

 

 

Have query output the beginnings of an extended check_id openid (request) message, indicating the
public key and identity to the OpenID server.

If the friend's foaffile has an foaf:openid , use it as the identity value in the message; otherwise use
the wot:identity.

Assume a new Openid Auth extension namespace openid.ns.peter, of which the pka extension is comsec
signal of the publickeyaddress determined from Henry's recommendation.

Query produces:-

openid.ns.peter.pka=http://danbri.org/danbri-pubkey.txt&openid.identity=http://danbri.org/

openid.ns.peter.pka=http://bblfish.net/people/henry/timbl.pubkey.asc&openid.identity=http://www.w3c. -
org/People/Berners-Lee/card#i"

9月8日

Crypto anarchism?

 

> In version 1.1 of OpenID, which is what is widely deployed today, the

> OP

> wasn't actually ever sent the claimed_id. The thinking behind this was

> that OPs would then be unable to "tell" that they are being delegated

> to, and thus can't make delegation a premium service or whatever.

 

This comment from a related thread strongly suggests that there was an explicit design intent to create a bias against certain commercialization practices.

 

Meritocracy also obviously lies at the heart of the OpenID community. And, meritocracy is of course a well established means for executing a political agenda (e.g. a praxis of "anti commercialization" aimed at certain forms of identity management).

 

Perhaps this kind of intent needs -- and these underlying agendas need -- to be much more obvious in the marketing of the OpenID Foundation. The meaning of the OpenID Trademark may need to more clearly associated with such goals, in the mind of the average user. If the OpenID Auth 2.0 design cell decided, for example, to liberalize inherited proscriptions against certain commercializations, we the plebs need to know clearly this shift of intent occurred, for example. We cannot be expected to infer it from an engineering spec.

 

Once again, Peter the pleb finds no flaw in pursuing a social agenda by meritocracy politics, so long as it's mostly overt. But, the engineering specs today bear little rationale material - material that succinctly characterizes why the mechanisms are constructed so as to realize the particular set of (social/political) goals. This makes it hard to perform an analysis of the strength of the security services and hard to outline their impact.

 

----------

 

Now, playing devil's advocate:-

 

Would it be appropriate to characterize "OpenID" -- the movement -- in the same terms as the early-phase PGP movement? That is, its anti-RSA, anti-USG, freedom from Russian apparatchiks..., long live crypto anarchism, liberty for the web, Richard Stallman is only ever left?

 

If the overriding goal is to use counter-culture adoption dynamics (from the blogworld) to "let crypto be free", or "be free from CALEA spying by VOIP companies (outsourced to VeriSign)", "ensure no one can make money from offering id mgt services" ....then can we please make this more clear - in the marketing material issue by the OpenID Foundation?

 

If I was supposed to immediately associate the OpenID Foundation and the term OpenID with crypto-anarchism, then I didn’t get it! The clear association with blogging did raise my suspicions, early on, tho.

 

If it is anarchistic in spirit, then the anarchist community would need counter-assurance, given corporations like Microsoft and VeriSign are now highly lauded for their involvement in OpenID. Partly by my design, VeriSign is a company that commercially exploits a TTP brand that sells assurance of trust. Without my involvement, the business of trust marketing later evolved to mean that your certificate fee subsidizes the operation of the infrastructure for spying on your secure communications (as and when necessary, as decided by in secret by folks selected using much the same kind of meritocracy criteria that probably orchestrate the OpenID design cell).

 

I'd be a bit surprised if a fundamentally crypto-anarchist OpenID brand (if it is indeed crypto-anarchist in nature) would countenance associating with the particular political balance built into the modern VeriSign brand - a crafted balance between privacy and spying that allows strong consumer crypto to be determined as a "trustworthy" and "responsible" use of what was only 10 years ago a proscribed (military) munition