sshkey missing in person and team RDF content

Bug #100079 reported by Brandon Holtsclaw
12
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Undecided
Christian Reis

Bug Description

We miss sshkey information to the team info rdf ( e.g. https://launchpad.net/~motu/+rdf )
something like the following would work perfect as a wot block:

                <wot:hasSSH>
                    <wot:PubSSH>
                        <wot:Count>1</wot:Count>
                        <wot:Key>ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuV5147Yu4/h0BOGfZhK7tESLpnFtycEzuNWKuInUSEV0+9jyD7+CDD//ZAzoQKiFUlQ5mqXZyuLUsW3+9E9y6k4AzJYm/XuSYLRgXQ2B00GmqkXWWWvrfNaCKe9RHVcXkigEOI4BvjmX3wqEVFts8zZva2nksSD62bRnL5Mq00Jp+wepTpfTgwJaEU0EX3lB5GN1rIRWiBBiotmD16pXbrEU4pJiGQnp5x9K7LdnwHmadW3t0omyH9DbrBfzVOVCN2+ddzMc4tgDQLu59FhK5E2nEPCE2i39A4uKTraapAev4zLmigW+FSE7mw43qQgglSHJp+sYE4Lc583tHjKwMw== brandon@horatio</wot:Key>
                    </wot:PubSSH>
                </wot:hasSSH>

Revision history for this message
Brandon Holtsclaw (imbrandon) wrote :

this would allow grabbing of sshkeys for login and various other things via rdf without screen-scrapping the html that is fragile and puts more requests ( for MOTU its 90+ vs one ) when using it for the MOTU community build network auth scripts .

Revision history for this message
James Henstridge (jamesh) wrote :

The above is not part of the web of trust RDF specification (http://xmlns.com/wot/0.1/). If we add this feature, it'd need to be part of our own RDF namespace.

Revision history for this message
Neal McBurnett (nealmcb) wrote : Re: more rdf team info - and include timezone

+1 for this bug, especially nick information. Without it, the team foaf output is really one-way - no way to get back to individual records in launchpad.

The nick information is already in the rdf output for a person, and no new rdf namespace work would
seem necessary to put it in the team output also.

For ssh, the foaf folks (or me if necessary) would probably be happy to consult on the best schema for doing this.

I'd suggest adding timezone information also to the personal rdf and perhaps to the team rdf, to help with meeting scheduling. That way we could make a mashup of the timezones of everyone on a team and the meeting planner at http://timeanddate.com/worldclock/meeting.html

ical/rdf has timezone descriptions.

Revision history for this message
Philipp Kern (pkern) wrote : Re: more rdf team info

I don't care about the SSH key information in the RDF, which is easy to get iff(!) foaf:nick support is included. It would be nice if this could be included into LP ASAP.

Revision history for this message
Philipp Kern (pkern) wrote :

Should we file a seperate bug about the foaf:nick info for team members?

Christian Reis (kiko)
description: updated
Revision history for this message
Christian Reis (kiko) wrote :

I can do this and it is easy, but is the use of hasSSH/PubSSH/Key elements standardized? I was thinking like something along the lines of:

<wot:hasSSHKeys><wot:PubSSHKey>AAAAB3NzaC1kc3MAAABBAL5VoWG5sy3CnLYeOw47L8m9A15hA/PzdX2u0B7c2Z1ktFPcEaEuKbLqKVSkXpYm7YwKj9y88A9Qm61CdvI0c50AAAAVAKGY0YON9dEFH3DzeVYHVEBGFGfVAAAAQCoe0RhBcefm4YiyQVwMAxwTlgySTk7FSk6GZ95EZ5Q8/OTdViTaalvGXaRIsBdaQamHEBB+Vek/VpnF1UGGm8YAAABAaCXDl0r1k93JhnMdF0ap4UJQ2/NnqCyoE8Xd5KdUWWwqwGdMzqB1NOeKN6ladIAXRggLc2E00UsnUXh3GE3Rgw==</wot:PubSSHKey>

With multiple stanzas for multiple keys. Incidentally, why do you screenscrape this, today?

Changed in launchpad:
assignee: nobody → kiko
status: New → In Progress
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

FWIW, you can get the sshkeys without needing to scrape at https://edge.launchpad.net/people/+me/+sshkeys

Revision history for this message
Philipp Kern (pkern) wrote :

To create an authorized_keys file on Ubuntuwire based on LP accounts.

Revision history for this message
Philipp Kern (pkern) wrote :

Yeah Michael, now as we have foaf:nick due to another bug report.

Revision history for this message
Christian Reis (kiko) wrote :

Still need some guidance here to do something actually useful. Or is this bug no longer relevant?

Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 100079] Re: sshkey missing in person and team RDF content

On Thu, 2007-12-06 at 20:53 +0000, Christian Reis wrote:
> Still need some guidance here to do something actually useful. Or is
> this bug no longer relevant?

There is no list of SSH keys for a team, as far as I can see. At the
moment, one must retrieve the nicks from /~team/+rdf, then construct and
retrieve a lot of +sshkeys URLs. If the keys were in +rdf, it would be
much quicker and simpler to do, and would have less chance of getting
hosts blocked by LP (it has happened before)...

--
William Grant
Ubuntu Developer

Revision history for this message
Christian Reis (kiko) wrote :

I asked James H. for his opinion here, and he wrote me this:

There are two ways we could export the data as valid RDF. One is to
have a string property for the public key hanging off the person:

    <foaf:Person>
        <lp:sshPubKey>ssh-rsa ....</lp:sshPubKey>
        ...
    </foaf:Person>

Or we could expose the key as an RDF resource, similar to the PGP keys:

    <foaf:Person>
        <lp:hasSSHKey>
            <lp:SSHKey>
                <lp:keyType>ssh-rsa</lp:keyType>
                <lp:keyText>...</lp:keyText>
                <lp:keyComment>...</lp:keyComment>
            </lp:SSHKey>
        </lp:hasSSHKey>
        ...
    </foaf:Person>

The nesting of elements in RDF basically goes "object, property,
object, property ...", so this defines a single SSHKey and relates it
to the given person. For multiple keys, you'd need multiple hasSSHKey
property elements (rather than multiple SSHKey elements in a single
hasSSHKey element).

For the use cases in the bug, a simple string property would be
enough. The more structured form might be more useful if someone was
actually working with RDF tools.

Revision history for this message
Christian Reis (kiko) wrote :

Have a fix in PQM...

Revision history for this message
Christian Reis (kiko) wrote :

Fixed in RF 6447. Enjoy it on edge tomorrow!

Changed in launchpad:
status: In Progress → Fix Committed
Christian Reis (kiko)
Changed in launchpad:
status: Fix Committed → Fix Released
milestone: none → 1.99
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.