Better HN
topnewbestaskshowjobs
Log inSign up

developer2

2,010 karma · joined Dec 27, 2015 (10y ago) · 785 submissions

Submissions

comment 6y ago · link · parent

Can you elaborate? Changing a password with Bitwarden is just editing the field or–even better–a one-click button to (re)generate a new random password (including options for length and complexity requirements). If you are logged into the browser addon, it will also (depending how javascript-hacky the website is) prompt to save the new password when you modify the password in a website's settings.

Unless you're talking about mass-replacing a single password across a bunch of different entries? Which is certainly not a limitation of any password manager; reusing a password is just horrible.

comment 6y ago · link · parent

I haven't used it in a corporate setting, but personally I've been using Bitwarden[1] since November 2017 without a single hiccup. It's amazing. The best part: it's open source, including all clients/apps (browser addons, desktop apps, smartphone apps). The server component being open source means you can host your own instance on-premise (clients let you specify a custom host to sync with to avoid using Bitwarden's public servers).

Personal use is free, with an optional $10 per YEAR (not per month) addon that adds a built-in TOTP client (ie. Google Authenticator compatible two-factor auth). There are also "Organization" accounts at extra cost for more enterprise-level usage, including sharing credentials among teams.

Note: I believe that even if you host on-premise using the open source code, it expects a paid license for the extra features (TOTP and Organization accounts), at $3-5/month per user.

[1] https://bitwarden.com/

comment 6y ago · link · parent

Yeah, that's the one. I'd done my own analysis before that came out and figured it was an unacceptable risk, and then that article came out with the actual attack vector in all its glory. The simple fact the k8s/etcd ports are exposed on a public address with no ability to firewall it off is bad enough, as you're relying on the security of the software running on those ports rather than a firewall restricting which source address(es) can even connect to begin with.

The credentials (certificates) being exposed via http://169.254.169.254/metadata/v1/user-data – from within any pod/container, not just from a physical node – was the final straw. I'd forgotten that the DO token wasn't directly listed there, but can be extracted from the etcd instance where it is stored (explained under "DigitalOcean Account Takeover" of that article).

Again, all of this may have been (and hopefully has been) mitigated since the original release. For me, it's too late to reevaluate; the fact that was considered releasable in the first place destroyed any credibility in my eyes.

comment 6y ago · link · parent

Care with DigitalOcean's Kubernetes offering. Unless they have completely revamped their entire stack since their initial release, it's a security nightmare. The way they launched it was unacceptable for any company to use. I immediately migrated my projects away and closed my account upon understanding how abysmally they screwed up the security of that offering. The fact they were willing to launch that means they cannot be trusted to host anything.

Not only are your cluster's administration ports exposed on public addresses with no ability to firewall them, but each node pulls an Admin-level auth token to manage the DigitalOcean account behind the scenes. A single http request made to an internal IP, from within any Docker container running within the cluster, grants the attacker full read/write access and control to the underlying DigitalOcean account. This includes any developer who does so from code deployed into the cluster, giving the developer full access to the business's DigitalOcean account.

comment 6y ago · link · parent

Hint: if Apple allowed apps to run indefinitely in the background, it would be less than a month before almost every app "needs to run in the background", for user-unfriendly reasons. And battery life would drop to a couple of hours.

This is why I'm an Apple user. Hate regarding Apple's policies like "use a platform that lets the app function correctly" (ie. drain battery running in background just to do more tracking, or because every developer assumes THEIR app is so special that it must never be unloaded from memory, in order to open instantly when being swapped back to... weeks after user's last interaction). With hilarious frequency, the complaints people have about Apple are precisely the reasons I prefer their products.

comment 6y ago · link · parent

You replied to a comment where their primary concern is, quote: "When a scary clown jumps out and screams, that's traumatizing". Not porn, sexual innuendo, or pedophiles looking for potential victims. Not war, or violence, or even brainwashing advertisements. It's clowns... their primary fear about YouTube's content is the possibility their sensitive child will be exposed to a clown.

It's impossible to satisfy everyone, regardless of the content rules, and no mater how curated. YouTube could spend a billion dollars curating content, along with surveys where 90% of parents have to approve a video before it is included, and the remaining 10% would still be the vocal minority ruining it for everyone.

Sure, YouTube probably doesn't do quite enough. But when you have parents looking to let YouTube babysit their 2-8 year old children without supervision, whose fault is that? YouTube's, I'm sure. /s

comment 6y ago · link · parent

Has Swift improved their text handling? Last time I looked, it took way too many lines of code and temporary variables just to extract a substring range from a string. Their convoluted idea that a string can't be directly sliced with integer indexes–by bytes, let alone by Unicode code points or graphemes–was so frustrating I swore I would never look in Swift's general direction again. It was such a joke just to try to extract x UTF-8 characters starting from position y. I liked the overall feel of the language, but the fact I ran into such a horrible wall trying to perform the most basic of string manipulations was unforgivable.

Swift came out at a time where UTF-8 was already the standard. They talked a lot of talk about grapheme clusters being the most accurate representation, and then failed to deliver a coherent API to back it up. Any chance that has changed?

comment 7y ago · link · parent

To be specific, Riot Games sold the full 100% to Tencent. Tencent owns partial shares in a lot of companies; when it comes to Riot Games / League of Legends, that percentage is the full 100.

comment 7y ago · link · parent

Would I be right to assume that your PHP was version 5.x and you didn't do the upgrade to a 7.x release? PHP made enormous leaps and bounds in terms of performance starting with 7.0, and has subsequently been improved in each of 7.1/7.2/7.3. It even has JIT coming in the next version. One fact: PHP 7.0 started to closely match–and in some cases beat–the performance of HHVM (Facebook's PHP replacement); so even Facebook could likely run on the latest PHP rather than their custom solution.

Personally, if I switched away from PHP for web development these days I would do the backend in Go. But thank you for teaching me something new today. SCGI is not a protocol I'd heard of before, what with FastCGI being the (horribly legacy) standard. I have something new to research. :)

comment 7y ago · link · parent

Why is that an opt-in option? No codebase should ever be willing to create a session id (any db/cache id/key) based on request details. The fact you have to opt in to a very basic security measure is, once again, a joke. Let's be clear: by default, Rails is willing to assign a client any session id based on its own request?!?!

Based on the other reply to my comment... no I'm not OK. I am not OK with Rails' pathetic attempts at the most basic level of security. Rails' developers are fucking amateurs. I'm sorry, but that's pure fact. Rails' developers don't know the first thing about the HTTP protocol.

NOBODY EVER CREATES A DB/CACHE KEY BASED ON THE VALUE OF A CLIENT-PROVIDED COOKIE (or unvalidated GET/POST). Anyone who argues against this should be permanently banned from IT/Technology. Just... fuck off... you have no clue.

comment 7y ago · link · parent

I'm going to stick my neck out as someone who has refused to even consider Rails over a span of many years, for one simple reason: it permits session fixation. If a client's cookie says "I am session token 'abc123'", it will create that session id out of thin air. As in, it will create that session id without it having had to be generated previously. Your memcached/redis does not have an entry for session 'abc123', but Rails will happily create it.

The developers who allowed this situation to occur should not be permitted to be employed in our industry. Yes, it's that bad and I am that serious. You can, not kidding, set your cookie's value to ANY VALUE YOU WANT, and the codebase is entirely willing to unconditionally create that session with whatever value the attacker chooses.

Hint: if a client sends session id "abc123", then you should check for the existence of that session id. If the key is not set, you either a) show an error page, or b) create a completely new session id, ignoring the client's requested session id. It is NEVER, EVER, EVER... I am saying __NEVER__, __EVER__ acceptable to create a session id based on client-provided data. And yet, this is what Rails does out of the box.

Edit: Downvote me more, I don't care. The fact is that Rails' developers are amateurs. Rails is insecure out of the box. That is a fact.

comment 7y ago · link · parent

Haha, I knew the answer was going to be obvious, and it was so obviously obvious. Thanks for answering. :)

comment 7y ago · link · parent

Wallets are a very good example of an industry overrun with inferior "leather-based" products. "Genuine Leather" may as well be the brand name of the shittiest fake leather sold on Earth, because I'd bet that a majority (>50%) of "Genuine Leather" products on the market are complete bullshit.

The cost and brand name of a product mean nothing. You can buy a $10,000+ "Genuine Leather" wallet, claimed to be "handmade" by a top-5 wallet manufacturer brand name... and chances are it's all lies. They sell too many wallets for them to be handmade, so the fact is they use sewing machines with the cheapest labour they can get away with. The company is physically incapable of tracing the chain of custody of their leather; they'll tell you to your face it's "genuine" (bonus words for "locally sourced/farmed"), but that's a game of Operator/Telephone 10 players deep to the point where nobody remembers the truth.

tldr; Most leather, including "genuine leather", is anything but. That includes the largest brand names; in fact even more so, because the demand for their products is too high to secure any kind of guarantee of quality regarding sourced materials. How many large-scale manufacturers of leather products are willing to legally sign on the dotted line that they can prove which cow and farm any given wallet came from? Exactly, and that's 21st century capitalism at its core.

comment 7y ago · link · parent

In which case do you wind up with distance=2? I figured it'd jump out at me in an obvious way, but it hasn't.

comment 7y ago · link · parent

You're assuming that "take on debt" means literally taking on debt that you don't pay back quickly. Building credit doesn't require actually going into debt; you just need to have a credit limit available to you, that you don't abuse. Absolutely nobody "_has to_ take on debt for the sole purpose of building a credit score", as you put it. Someone building credit should only use credit that they can pay off immediately. You don't "go into debt"; rather, you funnel/proxy money you already have through a creditor.

Building credit means you could put yourself thousands of dollars in debt... but you don't. 90% of building credit is demonstrating restraint NOT to use credit dangled in front of you. In the rare instance where you take advantage of the ability to use more credit than usual, you pay it off within a reasonable amount of time. The credit industry is predatory, to be sure. But that's only for the idiots who believe they're "able to" or "expected to" use all the credit afforded to them. It's about seeing all that possible "green" in front of you and NOT using it, or using it sparingly and responsibly.

>> Some of us would prefer not to utilize debt at all

So don't. Build your credit by buying groceries on a credit card, and paying it off every month. You're not really going into debt; you're just postponing paying your groceries by a week or two. You can build a near-perfect credit score without ever paying a single cent of interest.

comment 7y ago · link · parent

My gut feeling agrees with "I don't trust the Dev's explanation tbh." Companies and developers often try to get away with doing Bad Things, and cry wolf publicly without offering up specifics about what they were trying to get away with. "Spin up 10 VMs for 500k rows of data" offers no explanation to just what those 10 VMs are doing. There is a big difference between "using memory and cpu" and "saturating the network in abusive ways".

Random speculation of one possibility: each of those 10 instances were suddenly doing something unexpected and spammy with the network. Maybe sending 500k+ emails (one per row of data claimed by the developer) over SMTP in a very short period, or jumping to massive spikes in torrent traffic, or crawling sites to scrape data (maybe each row of 500k is just a top-level domain name, and they crawl every URL on those domains, possibly turning 500k rows into hundreds of million of http requests).

The postmortem will be interesting. If DO is truly at fault here, that email after the second lockout saying the account is locked after review, no further details required... bad.

comment 7y ago · link · parent

Huh? Open Netflix and play any recently added 1080p stream that contains dark scenes. Those scenes are literally unwatchable. I don't mean "not perfect". I mean they look like they were encoded with a 256 color palette. Bitrate is what matters–even with current codecs used by streaming services–and they do not provide something watchable.

comment 7y ago · link · parent

Subtitles are not a burden; downloading a single torrent with a dozen subtitle tracks adds negligible bytes to the overall download size. Audio tracks are a tad rougher; the good torrents come with multiple tracks, but you are downloading all audio tracks even if you only play a single language–and the size of those audio tracks is not as negligible. Most people with large or unlimited bandwidth simply don't care about "paying the price" for multiple audio tracks; it takes a few extra minutes, at $0 additional financial cost.

The rest is your parent justifying their job/industry as if they're a Godsend–perhaps as compared to cable? It's an indefensible position thus far. The streaming services are all trash with pathetic bitrates; all streams average the same ridiculously low bitrate over the entire stream, without accounting for dark scenes that require orders of magnitude more bandwidth. Every Netflix (and competitors') 1080p streams with dark scenes are unwatchable. It's highway robbery to deliver what looks like 180p frames for a 1080p stream. We're supposed to be at 4K these days, yet they can't even deliver acceptable 1080p. Until the streaming services are willing to stop compressing everything far beyond watchable levels, they don't deserve anyone's business. Netflix, I believe, averages ~3-5 GB for a 90-120 minute movie? That number should be, at least via opt-in to those with the bandwidth for it, 20-40+ GB.

I don't necessarily expect fully uncompressed Blu-ray quality, but the standard should be to deliver something watchable, without banding artifacts. At a minimum that would mean massively variable bitrates, where the highest bitrate of a stream should be allowed to be 10-20x+ its minimum bitrate. Compressing a 60+ GB original file into a download of than 5 GB is flat out unacceptable and unjustifiable.

comment 7y ago · link · parent

As someone who has spent the past two years delving into Kubernertes and other Docker orchestration platforms, the answer is currently... "not much".

Kong does have a certain position in the industry (they are at least "known"), but their competition has done a better job taking market share. There are many API Gateways and Service Meshes trying to get their piece of the pie, and Kong has so far failed to be one of the true front runners. Products built on top of Envoy have so far done a better job of attracting users.

That isn't to say Kong can't try to assert themselves with another injection of cash. The industry is still very much up in arms, with all of us waiting for someone to step up and take over as the defacto gateway and/or mesh; preferably BOTH the gateway AND the mesh. Kubernetes itself is effectively the defacto standard, but the things you plug into it are certainly still in flux.

comment 7y ago · link · parent

This is the whole problem. Sick and tired of people complaining about YouTube/Google. For them to "fix the problem" just for their own platform would cost hundreds of millions of dollars a year in man hours to process every single last takedown request manually with no automation. Each takedown request would take many hours of intervention to resolve properly. Who is going to pay Google's legal department $100+/hour to defend their content, when it will take 50-500+ hours to defend a single request? Maybe the 0.01% of content creators, that's who. And those issuing the takedowns are not stupid enough to go after the 0.01%.

The laws are broken. It doesn't matter how "big" Google is. They cannot afford to protect the small guy. It's a choice between "hurt the small guy" vs. "go bankrupt". Fix the laws. Don't blame Google.

comment 7y ago · link · parent

FYI, Postgresql also has DDL statements that are not transaction safe. The list is quite small compared to software like MySQL, but they still exist. I lost the list I had gathered from a handful of their developers in IRC once, so unfortunately I can't share. Just know that Postgres isn't 100% safe with DDL statements.

comment 7y ago · link · parent

> with known spies in it

Worse than a simple information "spy" would be having a security engineer with intimate knowledge of Apple's security leave the company to co-found a new company whose entire business model is to sell expensive hardware to law enforcement that bypasses Apple's security. Oh right, that actually happened[1].

An Apple security engineer discovered–or baked in–critical security flaws at one of the world's largest technology companies and instead of disclosing them to the company, co-opted that sensitive insider information to start his own lucrative business. I've been waiting for news of this man's reputation, career, finances, and perhaps even his freedom having been taken away; so far it seems he's gotten away with it. I don't buy the apologist explanation I've heard: "he's likely just so good at his profession that he reverse engineered entirely new vulnerabilities after leaving Apple, without necessarily having exfiltrated knowledge only obtainable from within Apple's own walls".

If this man had done this to a bank or the government, he'd be rotting in federal prison. But he "only" expropriated this information from a private corporation, so no big deal. /s

[1] https://www.forbes.com/sites/thomasbrewster/2018/07/26/apple...

comment 7y ago · link · parent

The problem is that a k8s cluster requires hundreds/thousands of lines of yaml configuration just for the core components, including a choice of network overlay. Everybody copies the same default configs hoping they will work out of the box, without understanding how each option actually affects the cluster. Add to this the container and yaml upgrades that should be applied per component every month or so, and it's nigh impossible for most companies to handle.

Kubernetes is far too complex to set up from scratch. The only way to reduce the complexity – or rather, to offload it – is to use managed Kubernetes via AWS or GCE. The fact that using AWS or GCE is effectively the only viable method for running a production Kubernetes cluster speaks volumes to how non-simple the stack truly is.

comment 7y ago · link · parent

For anyone else who was thinking of a dinosaur-related game, opened the article to see the screenshot at the top, got excited, but then realized that the graphics and the name "Nanosaur" just weren't clicking, perhaps you were also thinking of... "Turok: Dinosaur Hunter". While it appears to have not been a Macintosh exclusive, that's the system I encountered it on. Finding some gameplay video just brought back some memories!

comment 7y ago · link · parent

First of all, these two statements seem to be at odds:

> I/O threading is not going to happen in Redis AFAIK, because after much consideration I think it’s a lot of complexity without a good reason

vs.

> the way I want to scale Redis is by improving the support for multiple Redis instances to be executed in the same host, especially via Redis Cluster

Having to run multiple Redis instances, with a separate "Redis Cluster [proxy]", sounds like "I didn't originally use threads, and while threads are technically the correct solution (because it's the standard way to do things and not all that complicated), I don't feel like rewriting Redis to use threads the way it should have been done from the start; thus I've come up with an alternative hack that is not ideal but makes my life easier". While I have always argued that memcached is not automatically better solely because it is multi-threaded, the idea that an additional point of failure – a technically unnecessary proxy/broker – is somehow a better solution than threads seems like an attempt to save face for mistakes made during early development.

As for the ACL:

> You get a library from the internet, and it looks to work well. Now why on the earth such library, that you don’t know line by line, should be able to call “FLUSHALL” and flush away your database instantly

What can I say other than "give me a break". Every large codebase has hundreds/thousands of dependencies, and any one of them could slip in a malicious block of code. My analysis: anyone who would be concerned about some library calling FLUSHALL would never even install Redis - a C program that, for all we know, is spamming emails or running a Bitcoin miner while it runs. The fact is, all 3rd party software/dependencies come with risk; if I'm trusting your software not to screw me while I sleep, I think I can trust a basic library not to hijack my Redis server with a FLUSHALL command. Really, this is not even remotely a valid argument. Whatsoever.

Then there's this:

> maybe you just hired a junior developer that is keeping calling “KEYS” on the Redis instance, while your company Redis policy is “No KEYS command”.

Ok, now you're just making shit up. Here's an idea: you don't need ACL to restrict access to KEYS, as that command should have been deprecated and entirely removed in favour of SCAN long ago. You mentioned "I think it’s a lot of complexity without a good reason" regarding multi-threaded Redis; yet here you are advocating an entire, complex ACL layer... for what purpose? For some imaginary malicious scenario where my Redis library is going to call FLUSHALL, or a "junior developer" is allowed to call "KEYS *" – a command that should not even be available in 2019?

I started this comment intending to provide unfiltered – but polite/constructive – feedback. The more I reread your original post, the more frustrated I got at the fact you seem to have lost all common sense. You're trying to justify adding a massive amount of complexity, including a clustering/proxy strategy instead of simple threading, and ACL to save us from imaginary threats. I've previously been in the stage of development that I believe you might be in now – you've run out of truly "good ideas" that would actually benefit your user base, and are now attempting to justify new features as necessary, when the truth is you're just looking to write new code that you personally find to be "new and exciting", rather than iterating on the existing, boring codebase.

I've spent the past 4-5 years advocating that memcached is effectively dead because of Redis. The more you try to make Redis some kind of ACL-secured, clustered database – rather than the lightweight cache store we learned to love – the more likely another project will step in and replace Redis the same way Redis replaced memcached.

comment 7y ago · link · parent

The argument is that the article has nothing to do with gaming. The author just happens to be a game developer, and so this is their outlet to deal with their grief and/or guilt. The text itself talks about games, but that's not really the topic being discussed; they're just advocating for others to pay attention to their cause.

^ Also an exceptionally callous way of looking at things.

comment 7y ago · link · parent

I'm cynical enough to have gotten a similar vibe from the article. People tend to go through life never giving a second thought to others' misfortunes and suffering: disabilities, cancer, suicide, etc. Then someone they love is affected, and suddenly it becomes their lifelong "cause"; every waking moment is spent trying to make others pay attention to a topic they themselves turned a blind eye to for years because it never affected them directly. A new charity fundraising event every other week (and repeatedly harassing family/friends/coworkers for donations); or becoming a speaker who travels to "share their wisdom" - but nobody is listening because, just like the speaker's own past self, their audience won't care until they are themselves touched by the same tragic event.

tldr; Advocating to get others to give a damn about something that will be experienced by a minority of people falls on deaf ears, because people really don't - and won't - care about something until it affects them personally.

118.

Hacking DigitalOcean's New Kubernetes Service(4armed.com ↗)

15 points · by developer2 · 7y ago · 2 comments

comment 7y ago · link · parent

Honestly, it sounds like the "recruiter" may not even be arranging an interview with an interested company. Perhaps they are trying to get gullible clients to fly in on their own dime to interview with the recruiter? As other commenters have noted in large numbers, this is not normal operating procedure for any real company, and thus my intuition is they are not offering an interview with a real company.

comment 7y ago · link · parent

>> I had a theater class in school that regularly included improv exercises like described. In 11 years of it (K-10 or so), I don't think it ever went well.

My anecdote: theater/drama classes in middle and early high school don't count. You're mixed in with a bunch of teenagers who are only taking the class because either a) it's a mandatory class for all students; or b) more than half the class elected to take the class because it's "easy credit". When many/most of the students in a class aren't there because they actually want to explore the art, it ruins the entire dynamic. The same loudmouth bullies who cause trouble elsewhere in the school have an open season on the shy students; every step a socially awkward student tries to take to "open up" simply provides the bullies with more information they need to target the vulnerable.

Every participant must be present because they have a genuine interest to work with their teammates. Acceptance and cooperation are necessary in order to peel back social fear, and that means finding a group of like-minded people who show up to explore themselves and others around them.

12345
27