how to survive the zombie apocalypsehow to survive the zombie apocalypse ian a. young sdss, edina,...

41
How to Survive the Zombie Apocalypse Ian A.Young SDSS, EDINA, University of Edinburgh [email protected] FAM10, Cardiff, 06-Oct-2010

Upload: others

Post on 15-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

How to Survivethe Zombie Apocalypse

Ian A. YoungSDSS, EDINA, University of Edinburgh

[email protected]

FAM10, Cardiff, 06-Oct-2010

Page 2: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

From an image by Watt_Dabney on Flickr, licensed CC-BY-SA 2.0

Page 3: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Quick AnswerBuy this book

Page 4: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

How to SurviveInterfederation

Ian A. YoungSDSS, EDINA, University of Edinburgh

[email protected]

FAM10, Cardiff, 06-Oct-2010

Page 5: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

What to expect

• Interfederation recap

• How to protect yourself

• Understanding trust

• How to benefit

• Understanding interoperability

Page 6: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Interfederation

Page 7: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Alice Bob

Bob’s Request

Alice’s Response

Page 8: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Alice Bob

Alice’s Metadata

Bob’s Metadata

Bob’s Request

Alice’s Response

Publish

Page 9: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Alice Bob

Alice’s Metadata

Bob’s Metadata

Bob’s Request

Alice’s Response

Exchange

Page 10: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Alice Bob

Alice’s Metadata

Bob’s Metadata

Bob’s Request

Alice’s Response

Consume

Page 11: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Federation Metadata

Alice Bob

Alice’s Metadata

Bob’s Metadata

Bob’s Request

Alice’s Response

Page 12: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

OracleOracle

Alice Bob

Alice’s Metadata

Bob’s Metadata

Bob’s Request

Alice’s Response

Page 13: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Fed B metadataFed A metadata

Alice BobA B

Page 14: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Fed B metadataFed A metadata

Alice Bob

A B

Register

Page 15: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Fed B metadataFed A metadata

Alice Bob

A B

Exchange

B A

Page 16: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Fed B metadataFed A metadata

Alice Bob

A B

Consume

B A

Page 17: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Fed B metadataFed A metadata

Alice Bob

A B

Bob’s Request

Alice’s Response

B A

Page 18: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Federation Services

Alice

R P

A

Page 19: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

RegA

Page 20: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Trust Issues

Page 21: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

We're all friends here.

Aaargh!Zombie horde!

Interfederation

Page 22: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Alice Bob“Trust”

Monolithic Trust

Page 23: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Alice Bob

“This is Bob”

“I like Bob”

“Trust”

Page 24: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Alice Bob

“Behaviouraltrust”

“Technicaltrust”

“Trust”

Page 25: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Note, however, that presence in the federation metadata alone should not be taken to imply particular behavioural guarantees. In particular:

• it is the responsibility of each identity provider to establish appropriate policies for attribute release based on their knowledge of individual service providers;

• it is the responsibility of each service provider to decide how much trust to place in the attributes presented by an identity provider based on their knowledge of the individual identity provider.

UK federation TRP section 4

Page 26: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

• Review default Attribute Release Policy

• Be selective about what you release

• Assume that default ARP releases to hostiles

• Significant attribute release only to specific entities

• Keyed on entityID

• These are friendlies

IdP Trust Actions

Page 27: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

• Don’t assume the truth of claims from all entities

• Assume IdPs are hostile by default

• Accept claims from:

• Known entities (keyed on entityID)...

• ...where you have a specific basis for behavioural trust (friendlies)

SP Trust Actions

Page 28: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

• TRP section 4 paraphrased:

• “Treat everything as hostile by default”

• If you already do this, nothing needs to change

• If you don’t, you should review IdP and SP policies

Trust Summary

Page 29: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Interoperability Issues

Page 30: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Data: 01-Oct-2010 00:00:00

250

500

750

1000

1250

Dec 06 May 07 Oct 07 Mar 08 Aug 08 Jan 09 Jun 09 Nov 09 Apr 10 Sep 10

Total Entities

Page 31: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Metadata Size

• Expect to have to handle somewhat more metadata

• Shibboleth 1.3 is not very good at this

• Use something else!

Page 32: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

SAML 1.1 vs. 2.0

• In the UK, still many entities only capable of SAML 1.1

• In newer federations, many entities only capable of SAML 2.0

• Best chance of interoperability from software which can do both

• I’m looking at you again, Shibboleth 1.3

Page 33: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Data: 01-Oct-2010 00:00:00

0%

10%

20%

30%

40%

50%

60%

Jan 08 May 08 Sep 08 Jan 09 May 09 Sep 09 Jan 10 May 10 Sep 10

SAML 2 Support

IdP SP

Page 34: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Data: 01-Oct-2010 00:00:00

0

100

200

300

400

500

600

Jan 08 May 08 Sep 08 Jan 09 May 09 Sep 09 Jan 10 May 10 Sep 10

Transition from Shibboleth 1.3

Entit

ies

Shib 1.3 Shib 2.X

Page 35: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Key Material

• Originally, UK federation based on PKIX credentials (<KeyName> elements)

• This doesn’t work for SAML 2.0 encryption

• This doesn’t work cross-federation due to inconsistent trust roots

• If you want to interfederate, make sure you supply embedded key material

• This is an option even for Shibboleth 1.3

Page 36: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

<EntitiesDescriptor Name="http://ukfederation.org.uk">

<Extensions> <shibmd:KeyAuthority> <ds:X509Data> <!-- trust root here, as X.509 certificate --> </ds:X509Data> <ds:X509Data> <!-- trust root here, as X.509 certificate --> </ds:X509Data> </shibmd:KeyAuthority> </Extensions>

<EntityDescriptor entityID=”https://sp.example.org/entity”> <SPSSODescriptor> <KeyDescriptor ...> <ds:KeyInfo> <ds:KeyName>sp.example.org</ds:KeyName> <ds:KeyInfo> </KeyDescriptor> </SPSSODescriptor> </EntityDescriptor>

</EntitiesDescriptor>

Page 37: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

<EntitiesDescriptor Name="http://ukfederation.org.uk">

<Extensions> <!-- KeyAuthority trust roots ignored --> </Extensions>

<EntityDescriptor entityID=”https://sp.example.org/entity”> <SPSSODescriptor> <KeyDescriptor ...> <ds:KeyInfo> <!-- KeyName still valid but ignored for interfed --> <ds:KeyName>sp.example.org</ds:KeyName> <ds:X509Data> <!-- public key here, as X.509 certificate --> </ds:X509Data> <ds:KeyInfo> </KeyDescriptor> </SPSSODescriptor> </EntityDescriptor>

</EntitiesDescriptor>

Page 38: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Data: 01-Oct-2010 00:00:00

0%

20%

40%

60%

80%

100%

Dec 06 May 07 Oct 07 Mar 08 Aug 08 Jan 09 Jun 09 Nov 09 Apr 10 Sep10

Direct Key Trust Available

IdP SP

Page 39: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Interoperability Summary

• Stop using Shibboleth 1.3 please!

• Deploy software capable of SAML 2.0

• Provide embedded key material

Page 40: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Miscellaneous Interoperability

• Be careful about ePSA values (see TRP 7.1.2.3)

• Sign up to section 6

• Be prepared to stand up and be counted

Page 41: How to Survive the Zombie ApocalypseHow to Survive the Zombie Apocalypse Ian A. Young SDSS, EDINA, University of Edinburgh ian@iay.org.uk FAM10, Cardiff, 06-Oct-2010 Note, however,

Questions?