Ask HN: Why are law documents (GDPR) so difficult to understand?
https://gdpr-info.eu/
As an engineer, I found it is very difficult to translate from the regulation text to code, to actual implementation.
Taking the following statement as an example:
https://gdpr-info.eu/art-5-gdpr/
>>>
(Personal data shall be) processed in a manner that ensures appropriate security of the personal data, including protection against unauthorised or unlawful processing and against accidental loss, destruction or damage, using appropriate technical or organisational measures (‘integrity and confidentiality’).
===
"In a manner". In what manner?
What's "appropriate security" and "appropriate technical measures"? How to interpret it? There seems to be much flexibility?
Every website has some security measures to protect data to certain degree. How do I know if that's "appropriate" or enough to meet GDPR?
Do I need symmetric encryption? Or Do I need asymmetric encryption? Which kind of crypto hash is considered "appropriate"? What if I use a database which is insecure by flaws, but I don't know or don't have the technical strength to know it? What if encryption on my backend caused performance penalty? What if I run a hosted, non-profit BBS based on certain open source BBS program that might be insecure? Should I patch the server with OS Update JKB8948, which is known to fix a security hole but opens another? is it an "appropriate measure"?
I found this regulation put too much burden on small businesses. Just to understand this GDPR text may require consulting cost. What if this law will be abused as a tactic to attack business competitions? I'm worried.
How do you understand this "security appropriateness" of the above text? How can you be sure your understanding is correct?
84 comments
[ 2.4 ms ] story [ 169 ms ] threadrecent advances in AI endanger many jobs at law firms and medical practices and may result in fewer jobs - at law firms at least. I expect the medical and legal lobbyists will bribe our elected criminals to limit this. It has already made it hard for new lawyers to get any jobs at all.https://www.nytimes.com/2015/08/25/opinion/too-many-law-stud...
It stood me in good stead because I made many Jewish friends in Toronto in high school and college, because in those days there was a major barrier to many Jewish people in business circles. No brokers etc. This all changed in the mid 60's after a few prosecutions, and now it is wide open to all.
https://en.wikipedia.org/wiki/Craft
And programmers do the same thing, using a secret language called "code" to make their work incomprehensible to mere mortals. /s
More seriously, I've heard it stated that there are actually a lot of similarities between legalese and software code, as they're both constrained languages to meant to make certain kinds of statements more precise.
Why is it that way? When you're writing a contract or a law, having words that let you state precisely what you mean saves a lot of trouble and confusion. We can go to court about people actually breaking the law or the contract, rather than about what the definition of "is" is.
And, as that snarky example illustrated, sometimes it doesn't work. Sometimes you wind up arguing exactly about the definition of words. But the precision of words in the legal community means that that happens a lot less often than it otherwise would.
The answer is simple: the law will stand for a long time, and legislators know their limits. Unlike many engineers, unfortunately.
Having courts interpret laws, with help from experts, is not a bug, but a feature!
This analogy puts us into a place where we mix intent and implementation and make them the same. It doesn’t allow for bugs in a sense.
This is why I dislike analogous thinking!
Imagine a law mandating SHA-1 in 1999; it would end up enforcing a security problem today.
Another approach some countries have taken is to have laws cite some set of government regulations, which some part of the government is supposed to update. That tends to be even messier as the courts still get involved, but at least you get faster updates.
More general, it's difficult to understand because it's in legalese, which is aimed at people that studied it for years - it's the English programming language. And like code, there's lots of holes in it that it doesn't cover, despite lots of manyears of effort.
So, you should expect the "appropriate" part to mean the current state of the art to keep something secure.
An "appropriate" hashing algorithm today would be bcrypt, scrypt, or potentially still a salted SHA512 with many rounds.
An "appropriate" protection against unauthorised access would probably be a strict permissions setup in your AWS rules, proper firewalling, and potentially at-rest encryption.
An "appropriate" encryption would be AES 256 GCM.
"Appropriate" always just refers to the current state of the art for what is considered secure.
In that kind of situation, you'll probably end up getting measured against something between 'industry normal practice', and 'industry ideal practice'.
If you don't expect to actually get prosecuted or audited for compliance by a client or whatever, this probably doesn't matter much.
If you do, then you should probably look at whether an infosec consultant would pay for themselves in terms of avoidng fines or winning contracts.
1.) Make sure your software has all vendor-supplied patches.
2.) When personal data is being processed, keep it in RAM.
3.) When personal data is at rest, ensure that it's on a locked-down system and safe. Encryption at rest is called out in GDPR, but it's not required. (The definition of "locked-down" can fill a couple paragraphs, but consider it like SOX - only give access to employees that need it as part of their job title. Block off all access for everyone else - network, physical, logins).
4.) Make sure that all systems that store/receive/transmit personal data are audited and logged, and do not give out access to people unless they absolutely require it. (Anonymize data for BI, developers, business reports when able)
It's not. You are wrong.
What if this law will be abused as a tactic to attack business competitions?
Why would that happen?
How do you understand this "security appropriateness" of the above text? How can you be sure your understanding is correct?
You use your knowledge or regulation to read and make decisions. If you don't have the required experience, you hire a consultant or a lawyer. Just like you do when complying with any other piece of legislation.
> For example, Business A has a competitor startup B who has less resources to hire security consultant. Business A hence hired person C to register the service provided by B with a weak password and hire D to breach C's account. C claims that he has been hacked, so he brings startup B to court. B goes bankrupt because it runs out of money to hire lawyers.
You use your knowledge or regulation to read and make decisions. If you don't have the required experience,
> How do I know I have required experience (what experience is required is not said in the regulation text)? I know md5 is insecure and you need salting on password. I'm self learned, garage based entrepreneur with $1000 in my bank to either buy food or hire a consultant, is that required experience?
Right, that's like any other malicious lawsuit – i.e. this is totally irrelevant.
I'm self learned, garage based entrepreneur with $1000 in my bank to either buy food or hire a consultant, is that required experience?
Yes. If you don't have the knowledge or resources to correctly comply with appropriate regulation, then you should not be operating in a space. "I didn't know that I needed to keep raw and cooked meat separate" would not be a valid excuse in food prep; why would "I didn't know I needed to use a secure hash" a valid excuse for an engineer?
There are active, observable, and semi-quantifiable costs to society when lawmakers create arcane, incomprehensible laws meant to prevent entry into markets by making the barrier of compliance too high for most people to afford to compete.
[1] http://money.cnn.com/2016/09/08/news/economy/us-startups-nea...
[2] https://www.washingtonpost.com/news/on-small-business/wp/201...
Many things might cause low levels of business creation. I am entirely unconvinced that the cost of regulation is one of them.
For example, the FDA Food Safety and Modernization Act[1] doesn't include specifics about how food should be handled. It specifies some areas where the FDA is supposed to issue rules and then the FDA makes rules based on the authority that the law gives it.
GDPR has Data Protection Offices that issue more specific guidance about how to comply. For instance, the UK Data Protection Office issued this guidance[2] about how to prepare for GDPR.
[1] https://www.fda.gov/NewsEvents/PublicHealthFocus/ucm239907.h...
[2] https://ico.org.uk/media/1624219/preparing-for-the-gdpr-12-s...
I wonder if this means we’ll start to see sites/services start out as US only and only become available in Europe once finances are no longer an issue.
If something goes wrong, Facebook can easily hire an army of lawyers and "prove" that they "processed [data] in a manner that ensures appropriate security".
But a small player can't do that. This has the follow advantages for big corps and governments:
1. Big companies can use the laws to destroy small companies (they just need to push the enforcers of regulations in the right direction, maybe with a little gift or something wink wink) 2. People don't even try to create a small company, because it's too risky, so big companies don't have to face any competition at all 3. Governments and other institutions can use the laws to stop people who spread informations or products that go against their interest. In fact the main reason for GDPR is stopping the spreading of true informations about the current political situation in Europe (what they techinically call "fake news"). It's much easier to control the web if you only have Facebook, Youtube and other channel you can easily manipulate. Good luck instead controlling hundreds of thousands of small blogs, mailing lists, chat rooms, etc
Treat every paragraph like a great big chain of boolean logic. The confusing parts of law are normally due to long paragraphs of 'and' and 'or', all mingled together. Parsing those in legal documents isn't any different than parsing them in code. But we normally don't have to think that way when reading, so it feels more confusing than it really is.
Try re-reading it specifically looking for the ands/ors, and envision how they really operate on the words of the paragraph, and legal reading will suddenly become far more clear.
Please note that we have no obligation to delete any of stories, favorites or comments listed in your profile or otherwise remove their association with your profile or username.
I presume this is based on the theory that European law can't be enforced against HN since it operates from California. On the other hand, it might be possible to convince a judge to take action against YC companies instead? Not sure.
HN probably would not be considered to be targeting EU users because it is an English-only forum based in the US that does no marketing towards EU users. If they added a German-language forum, then they would probably need to start following GDPR because that would be interpreted as targeting users in the EU.
This is based on CJEU's interpretation of previous regulations[1]. Factors that they listed were:
> Use of the language of a Member State (if the language is different than the language of the home state);
> Use of the currency of a Member State (if the currency is different than the currency of the home state);
> Use of a top-level domain name of a Member State;
> Mentions of customers based in a Member State; or
> Targeted advertising to consumers in a Member State.
[1] https://www.wileyrein.com/newsroom-newsletters-item-May_2017...
There's a very simple way around that problem - don't ask for your user's data.
The GDPR is about making sure you do your best to protect what they share with you. If they don't need to share anything then there is no burden on you to protect anything. In my opinion this is the ideal outcome. If you gather their data then there really should be a burden on you and your business to do the necessary work to make sure you've done at least the minimum to protect what they've shared, especially if you're profiting from that data.
From what I have read on this topic, email address is considered a personal information.
> the necessary work to make sure you've done at least the minimum to protect what they've shared, > especially if you're profiting from that data.
The OP was willing to comply, she asked what "necessary work" means and how to define "minimum".
Also it seems to me that GDPR applies to non-profit sites.
There are plenty of options available if you don't want the "burden" of securing your users private data, but ignoring if isn't one of them any more. This is a good thing.
> email address is considered a personal information.
As another poster mentioned - just don't use email.
Or if you must then just make sure you only do the minimum you have to with it - e.g. Don't send it to a third party, have a way to delete it when a user wants to close their account (unless you have a good reason to keep it - e.g. to match to a financial transaction).
What's the difficulty?
GDPR shouldn't be a burden for a small business unless the business is in the personal data space.
Look at any profession -- accounting for instance -- and they have all sorts of stuff like this. As an example, there's a concept in accounting of "materiality" - basically, something that's big enough to matter. Materiality is what lets fortune 500 companies present their financial statements rounded to the nearest thousand dollars. When you're talking about tens/hundreds of millions, individual dollars just don't matter.
Whether or not something is "material" is a matter of professional judgment, to be made in the context of a large body of professional knowledge, history, prevailing industry standards, economic/cost considerations, etc, basically that thing called "experience" that we so often toss under the bus in SV.
Perhaps the biggest difference between law and code, which are in many ways quite similar, is that law is highly reliant on context. For a court to determine whether "appropriate security" and "appropriate technical measures" are followed, they would solicit testimony from experts in the field (people like us) to determine whether they felt whether someone took "appropriate security". So ultimately it's a matter of opinion, but one made with context and expertise.
It works surprisingly well.
EDIT: For really complicated stuff, implementation is often delegated to an agency, such as the FCC, to create specific guidelines like you want. But this is the job of executive action, which is easy to change, not statute (on-the-books laws), which is much harder to modify once passed.
I am just wondering what happens when there is a vested interest in attacking or suppressing the company involved.
For example, if a company becomes unpopular on social media and by "public opinion" (such as Facebook right now), a court can feel pressured into a slanted decision. Given that so much is now based on opinion, what defense does the company have?
It seems that if someone had the intention to nail a company on GDPR as a PR attack, regardless of the amount of effort the company put in, they almost certainly could.
(I don't work for Facebook)
"Pressuring a judge" would be an impressive feat. They are generally obnoxiously aware of their untouchable status.
And if society's stance really changes, we want the courts to take that into account. Again. feature, not bug.
Just because popular opinion (aka the vocal social media / news / social media echo chamber) approves of something, it doesn't mean it is correct.
Governments and courts have definite pressure to legalize marijuana, for example. That pressure is based on popular public opinion. Therefore approving it gives that legal body or state acceptance / goodwill. This is an incentive that goes quite far.
It can also be popular to smash a company.
I also think this point resonates fairly well in smaller courts (read as maybe more rural areas) where the legal system is closely tied with the social system of the area and there are indeed LOTS of incentives to introduce, we’ll calm them, ‘alternative judgements’.
All that said, I think law has to be appropriately ambiguous in order to remain relevant and applicable through change and societal adaptation in norms. Hence, case by case context.
This is why it looks to contain so much flex in the language. Right and wrong is implicitly an ambiguous and ever changing notion, described and defined only by the same body of individuals that mutually agree to uphold it. It’s fluid.
However, I also see the perspective that the fluidity of societal definitions and the increasing ease through technology to greatly influence a vast chunk of that populations opinion, can make these things misalign with ethical appropriateness. See the Nissan.com website case or any other number of court cases that clearly concluded under the coercive pressure of the more powerful/wealthy party.
I often see comments like this, abstract what ifs without any details on what.
So, try to illustrate what might happen. Also, describe what protections the judges might have against this. It’s a useful mental exercise and you might realize that it’s a fair bit harder than posting on 4chan or Twitter.
A contrived example: I could try to look up some tax information on the IRS website. An error occurs, and the server spits out a bunch of log data not meant for the public. This data happens to contain sensitive URLs. I navigate to one, and it gives me unfettered access to the server. So long as I stop here and report it, I should be in the clear.
I don't. I look around a bit to see if I can help include additional details when I contact the proper person. I haven't actually done anything bad per se, but now I'm knowingly accessing a government computer system without proper authorization. A law with proper specificity would say that I should be jailed for looking around. Common sense says that though I should have close the tab, but I was only doing my best to help. And since I never did anything detrimental, I should be in the clear.
If you start at around article 43 and work your way onwards, over the next 20 or so articles the GDPR document goes on to specify that all nations should set up organizations to perform this task and that these organizations have a responsibility to create and make available such specific guidelines.
Then, according to your interests/knowledge/SOW, you can act as a security consultant who gives proactive advice, or as a contractor that develops a solution from a set of specs.
https://blog.varonis.com/gdpr-requirements-list-in-plain-eng...
In general I think legislatures putting out goals/guidelines instead of detailed specifications is a feature not a bug. Tech moves faster than they can possibly keep up with and to call out things down to the patchnote level just isn't feasible.
Try to think of it more like: "jury of your peers". If a dozen fellow sysadmins / devops / programmers would consider what you're doing to be reasonable then you're probably ok.
One big caveat to that with GDPR is that the legislature is very purposefully pushing for what many would consider fairly innocuous "personal data" to be treated more how many developers today would treat something like credit card numbers or banking info including pins and passwords.
If the format/style of the article feels familiar to you, it's probably because you read "AWS in Plain English" which I also wrote and which periodically blows up on HN.
You might want to put a disclaimer in your blogpost that this is not legal advice.
The law itself is not written for engineers as an audience. Not even for non-specialist-data-protection-lawyers as an audience.
That said, as an engineer, I found a book targeted to non-specialist lawyers to be enormously helpful: Peter Carey's _Data Protection: A Practical Guide to UK and EU Law_: https://www.amazon.com/gp/product/B00VU5XJHK/ref=oh_aui_sear....
It's not cheap, but if understanding GDPR is a professional concern, consider it a resource for explaining the history and motivation for the requirements that Michael extracts.
In the wake of the data protection issues we're having here in the US, I would love to have a GDPR-influenced regime.
And for small business, it mostly just means- be careful and respectful of people's personal data- which can be done without it being a burden.
https://techblog.bozho.net/gdpr-practical-guide-developers/
"In a manner" means that you're absolutely free to use whichever means (i.e. technologies, systems, ...) you want to do your data processing with, as long as you make sure you keep the data secure.
"Appropriate security" is indeed a very vague term, but it is vague on purpose: As you probably know firsthand, technologies change rapidly these days, and what's considered "state of the art" today might be a "legacy system" in five years. Therefore, laws often do leave the interpretation of terms like the "appropriateness" above open to interpretation by the executive branch. In case of the GDPR, this means that at the highest level it will be the European Court that will decide if a given measure/technology was appropriate or not. In practice we can't (and do not want to) fight out each definition in court of course, so in addition to that last instance the member countries try to release guidelines that should help companies to judge what measures are appropriate. Unfortunately, there's not always consensus between individual countries here so you will have to find a compromise or look at the guidelines of the country you're based in (as that's where complaints about your company will be handled in the first instance). For Germany, the BSI (Bundesamt für die Sicherheit in der Informationstechnik) would be the relevant instance to look for guidance when it comes to IT security best practices, and the standard that they define will (usually) be followed by the federral data protection agencies.
As a final remark, what helped me a lot in understanding the intent behind the law is to read the "motivations" section, which is where the lawmakers write down the actual intent they had when creating a given law. These are used by courts to interpret laws in case of ambiguity and can (in my opinion) greatly help to gain a better understanding of some of the more cryptic articles. Here's the link:
https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=celex%3A...
If you have any specific questions about appropriate measures or the GDPR please feel free to reach out to me (contact info in my profile), I'm always eager to learn about your problems and will be glad to give you free advice wherever I can.
I guess the difference is that the law doesn't have to implement code. Code has to implement the law.