7 ms·
Coding in the open: how to do it securely
- Nursie 9y agoOh look, more gov.uk pages that pull in Google Analytics. Because it's certainly not a privacy problem to have every interaction between a citizen and their government reported to an overseas megacorp. But sure, let's talk about security.
- ex3xu 9y agoSarcasm aside, I think this is an important point, and I would like to know if you or anyone here has suggestions for plug-and-play analytics solutions to look into for those of us who would prefer to avoid Google Analytics?
- antsar 9y agoPiwik[0] is the most "plug-and-play" alternative I'm familiar with. [0] https://piwik.org/ https://piwik.org/
- Nursie 9y agoGDS and Gov.uk already use Piwik for some of their pages which they consider "extra sensitive". From what I know of Piwik it's run on your own servers, so the traffic doesn't go elsewhere. I cannot claim to have worked with either one though.
- Quarrelsome 9y agonot really contributing to the discussion mate. Its analytics, its a good product, people use it because its convenient. What bearing does it have on the words in the article?
- Ensorceled 9y agoThey are implying that it's a massive security and privacy hole and they think taking security advice from somebody "who has a key under the doormat" is problematic. Not that I necessarily agree with the original comment but that's the reasoning.
- Quarrelsome 9y agocould I not make the same argument that using English is just making the NSA's job easier? I mean, they do tap the wires don't they making much of this moot.
- ChristianBundy 9y agoYou could make that argument, but I don't think it's either cohesive or convincing.
- Nursie 9y agoYup,and if you have a news website or a shop, you go ahead. I specifically object to my own government sending data about citizen interactions with that government to an overseas third party.
- robin_reala 9y agoI try to answer this every time the question is asked; my last attempt seemed to be satisfactory to most people so easiest to just link to it: https://news.ycombinator.com/item?id=15070904 https://news.ycombinator.com/item?id=15070904
- fghtr 9y agoI see no answer there, just a belief that NSA and government will not break the laws, which is doubtful.
- Nursie 9y agoAnd I try to bring it up every time gov.uk is mentioned. Safe harbour provisions and contractual agreements of this sort are effectively worthless when it comes to crossing borders, particularly where the US is involved. Using adblockers to turn it off is not acceptable, and won't protect the majority of less tech-savvy folks. If you can use Piwik for things you think must be be more secure then that tells me two things - 1. It's possible for you to use Piwik 2. You don't believe that sending sensitive data to google is always a good idea either. You just don't think that most government-citizen interactions are sufficiently sensitive for some reason.
- robin_reala 9y agoSure, it’s possible to run your own analytics achitecture but at a 100m visits a month is it practical? Point two of the GOV.UK design principles is to do less: https://www.gov.uk/design-principles#second https://www.gov.uk/design-principles#second . When GOV.UK first started it definitely had to hit the ground running which requires immediate evaluation of user data ASAP. Certainly at the time there wasn’t enough dev hours available given a limited number of people to evaluate, build and run an analytics framework of the scale necessary. Having said that, then isn‘t now, and I wouldn’t be surprised if a future Government as a Platform service isn’t a cross-government analytics system hosted from the UK. I just don’t see the pressing need for it, based on the assumption that Google actually are anonymising the data. If you want to disagree with that assumption then that’s a valid viewpoint too, but I see no evidence for it.
- rinkler 9y agoI think judiciary gov.uk cookies usage information [1] provides good detail on their usage of GA. In addition it provides a link to a Google developed Browser plug-in to 'opt you out' [2] [1] https://www.judiciary.gov.uk/cookies/ https://www.judiciary.gov.uk/cookies/ [2] https://tools.google.com/dlpage/gaoptout https://tools.google.com/dlpage/gaoptout
- vincnetas 9y agoThis was brought up before when some other gov.uk site was discussed. One of commenters mentioned that gov.uk has strict license agreement which prevents google from accessing analytics data. Do not have sources for that, but that would make sense.
- Nursie 9y agoThis is the line I've heard from them for about 5 years now, I'm not convinced it's anything but a fig-leaf.
- zeveb 9y ago> One of commenters mentioned that gov.uk has strict license agreement which prevents google from accessing analytics data. The problem is that a license agreement prevents nothing; it may establish consequences for an action, should it occur and should it be detected and should the consequences be enforced, but it is unable to prevent that action from occurring. That's the difference between 'can' and 'may.' A license agreement can't prevent something; a technical measure (e.g., not using Google Analytics or using some form of privacy-preserving analytics protocol) can. If there's anything that human history teaches us, it's that Murphy's Law (that whatever can go wrong, will) holds: if it's possible for someone to do something one would rather he not, he probably will, sooner or later.
- flukus 9y agoOnly google analytics? I tried to watch an online news stream from our national broadcaster yesterday (http://www.abc.net.au/news/newschannel/ http://www.abc.net.au/news/newschannel/) with noscript turned on and found it it had about 8 different trackers installed and refused to work unless they were enabled.
- fghtr 9y agoBtw, please sign a related petition if you didn't already: https://publiccode.eu https://publiccode.eu.
- dest 9y agoOK with public code, but with limits, some data and code should be closed [1], including: keys and credentials algorithms used to detect fraud unreleased policy [1] https://www.gov.uk/government/publications/open-source-guidance/when-code-should-be-open-or-closed https://www.gov.uk/government/publications/open-source-guida...
- dangerface 9y agoI get the others but why "unreleased policy"? The public will find out what the policy is so whats the point?
- rahkiin 9y agoMaybe it is unfinished. To prevent a media backlash over non-final policy.
- swsieber 9y agoA prime example of this would be the writing of the constitution of the U.S. It would have been dead in the water if the public was at those meetings.
- hardlianotion 9y agoTo prevent a chilling effect on in-depth analysis of policy options before they are finalised. I think this is a good thing.
- Ensorceled 9y agoIt's essentially insider trading to know policy before the policy is released. In Canada, Tax Policy Changes take effect from the day the bill is introduced to Parliment or published for discussion for exactly this reason.
- sordidasset 9y agothe tumbler-padlock analogy is broken. I know how to pick a lock mostly because the "how it works" info is open.
- Shish2k 9y agoDid you get that information from the lock company publishing specs on their website, or from people reverse engineering it?
- jononor 9y agoDo you now have a better or worse understanding over what kind of locks are not secure?
- rbcgerard 9y ago+1 And importantly, when to use a deadbolt, or deadbolt + steel frame door, or a safe. All of which are well understood but can be implemented depending on when circumstances warrant. i.e. tool shed vs bank vault.
- javajosh 9y agoSome locks with open designs are difficult, or impossible to pick. In this amusing video this guy goes over details of different locks, and explains why they are not all created equal. https://www.youtube.com/watch?v=nsJZ_kKjXcE https://www.youtube.com/watch?v=nsJZ_kKjXcE
- EGreg 9y agoIn the past I really worried about open source networked software, because however you slice it, it is missing a huge chunk of security by obscurity, making 0days very likely. Especially for new projects. All security vulnerabilities are out in the open for all to see. Sure, honeypots can help you learn about vulnerabilities, but it will take years to patch them all. In the meantime, everyone using your software is vulnerable. Then I discovered blockchains. Here, the software is run by the network and does nothing persistent unless a majority of the nodes agree. That makes it much harder to corrupt the persistence layer. Blockchains are NOT just for achieving global consensus about a ledger. They can be per-stream-of-data. That's the approach we take at Qbix. There are still many other vectors of attack besides corrupting the database. However, in Web apps, the real pernicious thing is corrupting the data. Everything else has already been secured by webserver makers and language runtime designers. PS: Finally, you can corrupt things on the client level, eg making a client sign a transaction the user didn't authorize. But at least it is localized to the corrupted clients, and not the whole network.
- jamiegreen 9y agoI know most of the comments here are about the use of GA, but I just want to comment on the main point to say I think it's pretty great they are going with an open source first attitude. I work for a big intergovernmental org, and I can say that most/all our projects are very much closed source. :/
- traitormonkey 9y agoAmber Rudd is determined to hobble security, weaken encryption. This is just illiterate propaganda.
- traitormonkey 9y agoThis the same UK gov that wants to have quantum for themselves and ROT13 for the Great Unwatched? Such breathless hypocrisy. I was too cowardly to post this comment on the site. Now it goes to to Google and to Palantir. "We only ask for your email address so we know you're a real person" - the fuck else would be commenting? 'Nobody knows your a cat on teh internetz?' or maybe expecting government propaganda blogspam?