start	end	text
0	5420	All right. So with that in mind, welcome to the stage, Ben.
6280	14240	Thank you. Hello, everyone. I'm going to be that annoying guy for the person behind the
14240	19640	camera. I like moving a lot, hence I've got the handheld. I don't like to be stuck behind a
19640	25280	podium. But the main reason I'm here today is because I'd like to talk to you about some
25280	29520	security matters that interest me. Who here is familiar with access control within web
29520	33960	applications in some way or form? About half of you. That's cool. Who knows what RBAC is?
34460	40500	ABAC? Rebac? Cool. Increasingly dropping numbers of hands. That's kind of what I
40500	44520	expected. I think we've got about 10% people here who know Rebac. So we're going to dive in
44520	48680	and we're going to go a little bit deep dive into how Rebac works. Now, normally this is a
48680	54120	45-minute to one-hour conversation. So excuse me if I skip over some bits, but please come
54120	57140	and ask me questions afterwards. But we're going to go a little bit deep on how the data
57140	61900	actually gets stored so that we as developers understand how Rebac was going to help us and
61900	65980	how the relationship-based access control actually works or may not work for you. It's not
65980	70860	always the right solution. But who am I? I'm a guy who develops slides that have really bad
70860	76660	contrast on LED screens. Also, I've been a software engineer for too many years. I used to
76660	80140	put the number up there. It made me feel old, so now I just do a sentence. You can do the
80140	84280	maths in your head. I love working with developer and open source communities. I've been
84280	88980	doing that for about 20 years. I'm really passionate about security and privacy. If you want
88980	93080	to talk to me about any of those things, those are my jam. Come talk to me afterwards. I'm
93080	97520	currently working as a developer advocate for a company called ArcJet, hence the branding
97520	103260	across my chest here. We're a middleware security solution for your web applications. If you
103260	107220	are writing any kind of web application at all, check out ArcJet.com and just plug it in. It's
107220	111960	free. Give it a try. We'd love to hear what you think about it. If you want to contact me, I've
111960	117260	got the X logo on there, although I still like to call them Twitter. I feel some ways about an
117260	123060	organization whose community does not accept certain people's desire to change their
123060	126880	identity, so I will not allow Twitter to change their identity either. So my Twitter handle
126880	134180	is at BenDekarai. My DMs are open. Contact me. If you like. It's not an instruction. It's an
134180	138940	offer. So let's get into it. Access Control 101. Basics and understandings thereof. First
138940	143520	thing we're going to have a look at is the caricatures we're going to be looking at. So
143520	146780	whenever it comes to access control, the dog wants the bone, right? So we're going to look at
146780	150540	ways that we can stop or allow the dog from accessing the bone. First one is going to be
150540	154320	using RBAC, Role-Based Access Control. It's probably one of the simplest access control
154320	158520	mechanisms, so we'll skip through this very quickly. Basically, we have a number of roles.
158580	162440	You've got an admin, you've got a manager, employee, and a guest. And in our case, our dog,
162440	168080	this is Shadow. Shadow has a blue hat on. Blue hats are employees. And the door is locked to
168080	172640	all but the admins, managers, and employees. We don't want guest dogs getting to the bones.
172640	178620	Only employee, manager, and admin dogs, my analogies fall apart a little bit sometimes, are
178620	183260	going to get access to the bone. So because Shadow has access, the door opens. Role-Based
183260	189060	Access Control. Nice and simple. Next one, Attribute-Based Access Control. This is kind of
189060	192060	like role-based, because you could say, well, a role is an attribute of a person, but
192060	196920	attribute puts so many more layers on top of this. So we've got four attributes here of the
196920	202400	dog. This is Min. This is a white Siberian husky. These are actual real dogs in my life. I
202400	206620	like to relay them into my talks. There are four characteristics. Service dog, good boy,
206620	211840	loyal, and fierce. I can tell you while Shadow is a service dog, Min will never be a service
211840	214680	dog. If you've ever seen one of those dogs that just cannot control itself because it's
214680	219180	always so bloody happy, that's Min. So she will never ever be a service dog. But she is
219180	225220	usually a good boy or a loyal. She is not fierce. We've decided in this case that we're
225220	228640	going to make her a loyal dog, and the door will open if you are a good boy or a loyal
228640	234320	dog. Now, as an aside, I go on tangents occasionally. You might be asking yourself, but
234320	238100	why doesn't a service dog get a bone? Because a service dog is good, right? Service dogs
238100	243080	deserve bones. Anybody agree with that? Nobody agrees with that? You all hate service
243080	247900	dogs. That's what I'm learning about you lot. Jesus. Rough crowd. No, service dogs are
247900	252220	working. They don't get to eat. But we're going to layer an attribute on top of this, because
252220	256160	you could say, well, that's just a role, right? The attribute here we're going to put in is
256160	263300	time. Who does have a dog? Wrong audience. Who has cats? Okay. Let's pretend your cat likes
263300	270440	eating bones. Or for those of you who have dogs. Who lets their dog sleep in their bedroom
270440	276640	with them at night? Who would like the sound of a crunching bone at 3 a.m.? No, I certainly
276640	281240	don't like the sound of a crunching bone at 3 a.m., so if it's outside of 9 p.m. to 9 a.m.,
281240	287540	no bone for you. So sadly, men get no bone. But there are plenty of other things we can do
287540	292080	attributes on. We've got actual identity, physical location, network location, the time, the
292080	295340	weather, whether or not you're authenticated to a system. There are lots of things you can
295340	299080	layer on top of this as an attribute of whether or not somebody should get access to a
299080	304100	resource. So a bit more complexity, a bit more flexibility about how we can control our
304100	308060	resources, which brings us on to relationship-based access control. And this changes the
308060	315520	paradigm quite significantly as I lose my balance. So this dog doesn't actually have a name.
315540	321600	Who here had a dog? What was your dog's name? Liam. This is Liam. Thank you. Liam is
321600	326620	actually a dog. Dali designed Liam. I thought it came out a little bit like a cat, but that's
326620	332240	what we're going with. So Liam has an owner. You are the mad scientist. Congratulations.
332720	337100	So Liam's owner is a mad scientist. The mad scientist is friends with a farmer. The
337100	340360	farmer has a whole lot of sheep. And for the vegetarians in the audience, I apologize, but
340360	348380	sheep have bones. Ten minutes? Oh, I need to stay back. This is not good for me because, A,
348380	353320	I'm going to fall off the back of the stage. Not too far. Okay. Just right here. Okay. The
353320	359580	guy who likes to roam may no longer roam. That's okay. So we have this chain of
359580	366460	relationships, as you can see. So we can see here that Liam may or may not have access to the
366460	371040	rules that you can see. Now I'm getting feedback. Based on the rules you can see on the door
371040	376920	there. Oh, sorry. Let's just zoom in a little bit. The rules you can see on the door there. So
376920	381700	with relationship-based access control, we don't actually have a concept of users anymore. We
381700	394270	just have a concept of entities and relationships. Entities and relationships. I'll keep
394270	398990	going unless they actually stop me or unless too many people in the audience cringe. So here
398990	403950	we've got an action. Can the action eat be completed on the bone? So note that we're looking
403950	409370	here at what can be done to the bone. We're not looking at what Shadow or Liam can do. We're
409370	412970	looking at what can be done to the bone, what actions can be taken place. If it's the
412970	417030	animal owner or the friend of the owner of an animal or the pet of a friend of the owner of the
417030	422870	animal, they can eat the bone. Technically I suppose you could argue, no, I probably wouldn't
422870	426690	want the owner of the bone, the sheep, to be eating the bone. That would be a little bit
426690	430890	weird. But you can see we just find here a set of relationships that allow us to decide
430890	435710	whether or not the bone can be accessed by the dog. And because through those green lines
435710	439550	there, which are really terrible on this background, you can see that the flow does actually
439550	446030	go all the way through. Liam gets a bone. Good for Liam. So the door opens. Now, say one
446030	451550	day the farmer and the mad scientist break friends. They're no longer friends with each
451550	455150	other. Suddenly that relationship is broken. Now, nothing has changed about the bone and
455150	458930	nothing has changed about Liam. But the relationship is broken, therefore the friend
458930	463610	component of that rule there breaks. So the only rule that allowed Liam to get access to
463610	468410	that bone is now broken and the door shuts. So that's what a relationship-based access
468410	473670	control is about. It's not so much about defining what somebody or some user can do. It's
473670	479090	about what actions can be performed on a resource based on a set of rules that relates lots
479090	485710	of resources together. Does that make sense? Cool. So under the hood, who here is familiar
485710	490470	with the entity attribute value model of designing? So if you've ever done any kind of
490470	494110	content management systems or anything like that where you've got an undefined at the
494110	497390	beginning of your project, you have an undefined number of entities, you want a way to be
497390	501050	able to create new entities in your system without having to do a database deployment
501050	505310	because they are nasty, especially when you have a lot of data. So the entity attribute
505310	510850	value model of data storage basically says you have a table that defines entities and you
510850	514830	have another table that defines the attributes and values for that entity. So if you want to
514830	519330	add another entity, it's just another row in a table. Nice and simple. Let's have a quick
519330	524190	look at how that works. So we've got a user and an article. So we'll be looking at a blog
524190	528050	post system, for example. So we've got a user and an article and on this right hand side
528050	531570	here we've got a whole jumbled load of mess. You can see we've got the entity ID, the
531570	537250	second column. So the first, second, and the last two rows in the attribute table belong to
537430	545050	a user. And because the second column has number twos in it, the third and fourth rows belong
545050	549370	to an article. So you can see the user's username is Robin and the user's password is
549370	554890	password. Down there we have username Morgan and password, for some reason they like using
554890	559810	JSON Web Tokens for their passwords, but that's their password. And then in the middle
559810	563290	through there you can see that we've got an article, one article, instance ID of the article
563290	568490	is one. We've got a title of Rebec for the win and content is can has FGA, fine grained
568490	577430	access control. So now if we want to pull stuff out we can use a fairly simple-ish join within
577430	582150	an SQL table to say, well, pull all these things out and I can pull out, for example, get me
582150	588150	all of the articles that you have. Give me the title and the content. Or maybe rather than
588150	591870	getting information about one entity you can say give me a list of all the users and just give
591870	598710	me their usernames. So this table set up basically allows you to get really varied views
598710	601830	across the data you have without having to change your database schema, without having to
601830	605950	know what that schema looks like to start with. And you can store arbitrary data in there
605950	611610	and pull it out in whichever way you want. It's complicated and expensive to pull out. And
611610	616850	it's somewhat complicated to set up and use within more so than if you had like an article
616850	620910	table and a user table and a comment table. So if we want to add a comment, for example, we
620910	625750	just add an extra row over there and then we can add some extra columns here saying, okay, so
625750	631750	we've now got this entity ID3, instance ID1, this is comment number one, the article ID is
631750	636630	number one, author is Sam, comment was first and here's the date Sam. So without making any
636630	642430	database schema change, I've added a whole new entity to the system. The only reason I tell
642430	647170	you about EAV is because this is very similar to the way that Reback is managed under the
647170	651950	hood. So let's have a look at how that works. We've got entities on the left-hand side,
651950	657670	Robin is a user, Acme Co is an organization and Reback for the win is an article. And down
657670	662210	here we have some relationships. So we're now looking at just subject ID and I apologize for
662210	666470	the color scheme, we've got a relationship ID which is just arbitrary for this table, we've got
666590	671830	a subject entity ID and an object entity ID. So how does a subject relate to an entity? A
671830	676510	subject is an entity, it's just a primary entity within a relationship. So we're saying subject
676510	683550	one, the user, entity ID three, the article, relationship type is owner. Therefore we know
683550	690330	that Robin is the owner of the Reback for the win article. We can then add in that Robin, user
690330	698050	one, is a member of organization Acme Co. And we can add in that Morgan, user four, is a
698050	704470	member of the organization Acme Co as well. So we now know that both Robin and Morgan are
704470	708910	members of Acme Co. Now we have another one here where we say the organization is a
708910	714770	viewer of the Reback article. But organizations can't view things. So we're able to extend
714770	719170	that slightly and put an extra entity relation on there. How do the entities relate to each
719170	724250	other? Through this member relation. So if we dial that back, if we see here we've got
724250	730750	member in the middle two rows here, we've got a relationship of members. So what we now know
730750	740310	is that members of organization two can view the Reback for the win article. So now if I add
740310	744790	another member into that organization, they automatically inherit that because the
744790	750190	relationship exists already. Does that make sense? This is where it gets a little bit murky.
750470	753750	You don't need to know all of this. I just want you to understand how the data sits in
753750	759110	there so that when we start pulling it out, you can see what's going on. So the other thing
759110	763070	we can do is define permissions on all of these. So we've got the relationships, but what
763070	767190	does that actually mean they can do? So permission ID one, again, arbitrarily for the
767190	773210	permissions table, relates to relationship ID one. So relationship ID one was Robin is the
773210	778310	owner of the Reback article. So we're saying here, well, one of the permissions is read.
779850	786690	Relationship ID one is also that Robin is the owner of the article. Robin also has write
786690	793930	access. And then we have relationship ID four, which is this, this inferred down here,
793930	800610	members of organization two, members of organization two have read permissions. So even
800610	804970	over here we've got relationship types and entities like viewer is just a label. It
804970	808810	doesn't mean anything to the system. But when you look at that, you see what that means is
808810	815930	the permission for viewer for any member of organization two has read access on article
815930	823750	one. So there's one extra table here compared to the AV, but this allows us to define a
823750	828470	multitude of relationships and permissions and how they relate to each other and to other
828470	832290	entities. And more importantly, they allow you to chain those identities. Remember how we
832290	837310	went from Liam to the mad scientist to the farmer to the sheep to the bone? It's not just
837310	841430	one-to-one. You can define these huge big chains and if any part of that chain gets broken,
841430	848030	then the relationship breaks. So querying the Reback model, how does this work? Let's say we
848030	854710	come in here and we want to find out who can read. We can see here that the read, sorry,
854710	867640	who can write, the permission ID there is two. So if we... I think I've got the wrong one
867640	873340	highlighted there. I want to find out who can write to Reback article two. So first thing we
873340	877620	do is we look at the, and the highlighting isn't working so great here, the object entity ID
877620	881740	three there is the Reback article. So we say, okay, within the relationships, let's find out
881740	886300	everything we know about the article. And we can see here that the fourth one there can be
886300	891160	excluded straight away because the relationship ID number four is not in the permissions
891160	898800	table. However, relationship ID one is in that table. That is related to the object identity
898800	906140	two. So we can pull out the user Robin has write access to the article. So you can look at
906140	909940	things in other directions as well. And then further to that, you could even say, okay, well,
909940	913400	tell me everything about the article rather than starting from the permissions. We look at
913400	920480	article number three. We know that Robin is the owner of that article already. And if we
920480	924440	look at the viewer here, we can then, and this is what I was talking about before, how
924440	929880	member gets extrapolated to infer relationship status. So we can see that the member
929880	937460	here of organization two has access to the article. And if we then fold those in, you see
937460	941380	how before this one here was highlighted, what we're now doing is saying the subject is now
941380	946960	the object. So where the object is now entity ID two, where also the relationship type is
946960	951240	member, that's where this one basically gets folded out. So that's probably one of the most
951240	958740	complicated lookups. It's really diving straight into the depths of the Reback schema. But
958740	962480	essentially what we're doing there at that point is we're saying this permission or this
962480	965200	relationship here doesn't make sense from a permission sense because you don't give
965200	970400	permissions to inanimate objects like organizations necessarily. I mean, you do. But
970400	975520	that doesn't really help an end user. How do we then unfold that and then extrapolate that
975520	980880	to refer to the actual user entities? And this is where it gets complicated because Reback,
980880	985840	as I said, doesn't have a concept of a user necessarily. You could actually ask Reback what is
985840	990620	the relationship between this organization and that network. Neither of them really do
990620	993640	anything. They're system entities. They're not user entities. But they still have
993640	1003940	relationships. So it's powerful, but also complex. So implementation details. Let's have a
1003940	1007640	think about how we might do something in code, which is probably the way most of us do
1007640	1013080	the more complicated business logic like this. So if we want to allow editing an article, if
1013080	1019120	a user is an admin or an editor, if an editor is allowed to edit this particular article, if
1019120	1023160	the article is sensitive, then we also want to make sure that the person is on site and we
1023160	1027620	want to make sure that they're doing it during office hours. Seems like a fairly robust
1027620	1034260	kind of setup that you might have in a large organization. So if. If the user is admin or
1034260	1041660	if the user is editor. Cool. So we know what role the user has. Also, if the user is an
1041660	1046340	editor and the list of document editors contains the current user. So we don't want any
1046340	1050740	editor to be able to edit this. Only if the list of editors for this particular article
1050740	1055700	includes the current user. So we can compound those two together. Then also we want to
1055700	1059760	say, well, if the document isn't sensitive, then we can carry on. Otherwise, we're going to
1059760	1066540	check to see if the user's location is on premises or if the user's location is currently in
1066540	1071020	office hours. And I say the user's location because in a world like today, who knows when
1071020	1075140	it's 9 to 5 for somebody. So as long as it's within the location they're in, it's working
1075140	1080420	hours and they're on premises or the document is not sensitive and they meet the user
1080420	1084680	requirements, they're going to get access to this document. Imagine if you had to come
1084680	1090680	back and change those rules three months later. So instead what we're going to do is we're
1090680	1095120	going to define entities within our relationship-based access management tool of
1095120	1099680	choice. We're going to define a document. The document has an owner and an editor. The
1099680	1106020	owner is a user and the editor is a member of an organization with the member type editor.
1106400	1111060	So you can have different types of people within groups. And then we're going to have a
1111060	1114460	sensitive document. So that's the definition of a normal document. A sensitive document is
1114460	1119820	going to extend document. It's also going to have an edit action on it that says if it's
1119820	1124860	within working hours and the document ‑‑ it's the document owner who's trying to do this
1124860	1128000	action. Because remember, we're defining actions on an entity and who's allowed to
1128000	1133260	perform it. So can edit be done on a sensitive document? Yes, you can if you are the
1133260	1138820	document owner and you are the document owner and you're on premises. Or if you're an
1138820	1143460	editor and you're on premises. So this gets tied into your relationship-based access
1143460	1151600	model schema and permission systems. So now your code can change from this to that. And
1151600	1157700	now your business logic isn't restricted or it doesn't include the permissions check
1157700	1161240	because there's no real reason for that to be there. The permission for who should
1161240	1165660	access an entity within your system should not be dependent on what's in the business
1165660	1171120	logic. There's a fast and firm rule for that. This gives you two benefits. One from a
1171120	1175320	clean code, easy to read perspective. That is much easier to read. You know exactly what's
1175320	1179600	going to happen. You don't have to think about it. Also from a permissions and access
1179600	1183820	control management perspective, your security team can manage the rules and the
1183820	1188840	schema separately from your development team and it puts the responsibility in the right
1188840	1197620	place. So demo time. This is the fun part. So the first part was all about dogs. Then we went
1197620	1202500	to document access management which is important but boring. So we're going to go back to
1202500	1208000	dogs. I have tried a number of products. There are all these products up on the screen
1208000	1212820	here. There are many more. These are relationship-based access management tools. Some
1212820	1215900	of them are open source and free to use. Some of them are paid for. I'm going to be using
1215900	1222080	Permify in this demo. And I'm not going to annoy anybody by switching over to this on the
1222080	1225880	AV team because they didn't mic check me on this one. So I apologize in advance. But I'm
1225880	1233060	going to need both hands. So I'm just going to stop screen sharing. Let's jump over here
1233060	1240220	and we're going to have a first look at Postman. So let's make this a bit bigger. Can you
1240220	1246240	all read that okay? Excellent. So let's have a look from the beginning. We're going to
1246240	1250380	create a tenant. In fact, the first thing I'm going to do, because like all developers,
1250380	1257340	I decided to test this before I started the talk. So I'm just going to restart Permify
1257340	1260880	in the background. So we're starting from a bank slate. So now over here what we're
1260880	1265100	going to do is we're going to create a new tenant. So Permify allows you to have multiple
1265100	1270080	tenants in your system. So you can sandbox or isolate certain areas of your organization
1270080	1279040	or even certain organizations within a larger system. So we're going to create a tenant
1279040	1285460	over here called Dog and Bone. If I hit send on that, we'll see down here that we get a
1285460	1288880	positive response back, a 200, and we've got our tenant. So the next thing I'm going to
1288880	1294440	do is create the schema. Now this schema, for some reason, Permify wants it in a single
1294440	1302520	string. So to make it easier, I have it over here. And this is very similar to what we
1302520	1307180	saw in the slides. Basically we've got a definition of a dog. A dog has an owner, which is a person.
1307440	1311760	We've got a sheep. A sheep has an owner that is also a person. A sheep also has a bone,
1311760	1316080	which is an entity type bone. We've got a person. A person can have a friend, would
1316080	1320160	be another person. A person can also have sheep and a person can have dogs. So we've
1320160	1325640	got bidirectional rules here. And then we've got a relationship between the bone. The
1325640	1328960	bone has an owner, and that's a sheep. And then we've got a permission. Can the owner's
1328960	1339260	friend's dog eat? And eat is true if that comes out as a relationship that exists. So let's
1341160	1345560	submit that through and we should find that that has now worked. If I now create some
1348720	1358960	relationships... come on, get bigger. Where's the handle? It's always hiding. I'll just
1358960	1363920	scroll through this a little by little. Actually if I make this slightly smaller, is that still
1363920	1368240	readable at the back? Yep, okay. So at least we can see a bit more at a time. So we can
1368240	1371880	see here we've got a relationship between a subject and an entity. Remember I said a
1371880	1375740	subject is also an entity, but it's just the primary entity in a relationship. Is the microphone
1375740	1381620	cutting in? A little? I'll go back to this one. Because I don't need to type as much now. So we
1381620	1386800	can see the subject, mad scientist, is the owner of Shadow the Dog. We can see here that
1386800	1391620	Shadow the Dog is also a dog belonging to the scientist. And then we've got the farmer has
1391620	1398760	Dolly the sheep. The sheep belongs to the farmer. And we've got Dolly is a sheep to the
1398760	1404540	femur. And the femur is a bone to the sheep. So we've got these relationships built up
1404540	1410820	now. So if I come through and I ask what friends does the scientist have, because we
1410820	1416700	haven't defined those relationships yet, if I execute that, we'll see down here that the
1416700	1423280	result is nothing. We have no, he has no friends. He's a sad scientist. As it happens, the
1423280	1427560	farmer is also a sad farmer. Although the farmer has sheep, so a little bit happier,
1427560	1433020	probably. I know, sheep are better than dogs. I digress yet again. So can Shadow eat the
1433020	1440080	bone? What do we reckon? No. So if I hit that, it comes through. Result denied. So
1441300	1449060	it's a very low energy kind of reaction that I'm getting. But it's also a very low energy
1449060	1453940	kind of output. So I thought I've got these two requests here that I can make. The first
1453940	1459940	one calls data right. What I'm going to do is I'm going to say, okay, the mad scientist
1459940	1463420	is now friends with the farmer. And then I've got another one here, break friends.
1463600	1467540	It's data delete. And in here I'm defining the mad scientist is no longer a friend with
1467540	1477460	the farmer. So to make this a little more exciting, I decided to show you all my sister's
1477460	1484220	Facebook page. And also let's bring this back in over here. I have a dog and a bone. Let's
1484220	1489440	just refresh this, because it doesn't like having the lid shut on it. And for some reason
1489440	1495200	I'm getting an image rendering error. There we go. What demos go perfectly. So doors closed.
1495200	1503760	Dog can't get a bone. So what happens if the farmer makes friends with the scientist? What
1503760	1515340	do you think? No, it didn't work. Did I call the right one there? Looks like you're offline.
1515340	1525880	Yeah, but I'm doing everything locally. So did I call the wrong one? Did I call break
1525880	1536180	friends? Let's double click on that one. Darn it. Well, I will show you that if we come
1536180	1543940	over here and look at friends of mad scientist, we should now have, there we go, the
1543940	1549760	friendship is now in here. So now if I call can shadow eat the bone, it comes back as still
1549760	1554760	denied. So this is where the demo fails. I'm more than happy to work out why the demo
1554760	1559000	failed. It was probably something to do with keeping my Wi-Fi off at DEF CON and closing my
1559000	1563640	laptop lid between testing demos. But the theory is there. The results should have come
1563640	1567520	back immediately. I had a little bit of a cheat in my app. It was basically polling every
1567520	1572780	second. But there are plenty of ways of connecting to databases and getting a full time
1572780	1577660	stream of data back. So you can get almost like a push notification or an immediate
1577660	1581820	notification of permission changes if that's something you need in your environment. Most of
1581820	1584800	the time it's probably something you only need every time you make a request to make sure
1584800	1591080	that request should be honored. But one of the things that I want to caution is that while
1591080	1597760	this is complicated and exciting and perhaps when it comes to permission systems, dare I say
1597860	1603920	a little bit sexy, I'm not sure, it's not always the right solution. As I said, there's a lot
1603920	1607180	more computation power required for doing things like checking whether or not a
1607180	1611320	permission should be granted. Role based access control is always going to be your easiest.
1611320	1615980	That's always simply like, is this person an admin, yes or no? In fact, in some
1615980	1619700	situations, if you think of your home internet router, you don't even have permission
1619700	1624360	systems like are they logged in, yes or no? That's technically the simplest. So work out which
1624360	1631640	level of permissions complexity or the way that your data is modeled and how you want to
1631640	1636200	define whether or not access should be allowed. Work out what level of complexity you can
1636200	1639940	get to at a minimum while still meeting your requirements. Because if you go for the
1639940	1644980	full thing, straight out, re-back all the way, baby, absolutely it's fun. You will
1644980	1649340	probably create a situation where your job is now indispensable. You will not be fired
1649340	1653920	because nobody knows what the hell you did. But it's not always the right solution, okay?
1653920	1657640	Pick the right one for you. If you are currently going through a situation where you want
1657640	1662560	to implement some kind of permission control, more than welcome to come up and talk to me
1662560	1666900	afterwards and tell me a story. I'll let you know if I've got any clue at all as to what you
1666900	1672400	may or may not consider. I'm certainly not going to tell you I know your system inside
1672400	1675660	out and can tell you what the answer is, but I'm happy to have a chat and go through that
1675660	1682960	with you. But I would like to finish by just saying thank you. If I can even find my slides.
1686830	1691430	Let's just get that back up there. So again, that's my contact details at the top there.
1691890	1696350	ArcJet are currently running a contest. If you want to try our product out, there's some
1696350	1700890	prizes we're giving away as well. Challenge.arcjet.com. Give it a try. Let us know. We would really
1700890	1705770	love to know from you how you find the product, how easy it is to use, and what we can do
1705770	1710210	to make it easier for you to make your websites better. But this talk was about permission
1710210	1714810	systems. Come talk to me. Thank you for your time. Have a great rest of your DEF CON. Thanks.
