Better HN
topnewbestaskshowjobs
Log inSign up

peterangular

2,869 karma · joined Dec 7, 2017 (8y ago) · 728 submissions

Submissions

comment 6y ago · link · parent

Windows 10 is/was the slap in the face it took to finally migrate all of my development workflow to Linux, and my Adobe workflow to OSX.

comment 6y ago · link · parent

Second this... As someone who's a very small start-up the GitLab CI/CD pipelines are SO much more simple/manageable vs. anything I've ever done with Jenkins.

I self-host GitLab on Linode with a single runner in the cloud (and sometimes use runners on my local machines to speed processes up).

With 15-ish hours of configuration I have my GitLab hosting my SCM, my CI/CD, all of my static HTML sites, my artifact storage, my Docker registry, and even my documentation (I've almost switched 100% over to using their Web IDE to edit markdown).

I've been running this way for over a year and it's incredibly easy to keep maintained. GitLab's upgrade cycles are some of the smoothest around and are always packed with useful features. Overall I've been self-hosting GitLab for about 7 years - it's one of the best software products I've ever used.

Although I love to shill for them - I have no affiliation with GitLab outside of being an enthusiastic user.

comment 6y ago · link · parent

PCI environment for a household name ecommerce application with millions of users.

Also we didn't use stock Ubuntu - I/we had to get it to not phone-home... it was just extra layers of "we shouldn't have to do this" in regards to managing the OS.

I left the company when it was apparent that "security culture" were just buzzwords they would repeat in meetings to make themselves feel better vs. an actual core competency. They had more resources assigned to migrating our WordPress blog to K8s than they did for the credit-card handling infrastructure.

Honestly Ubuntu was one of the least of my worries, but after the experience of getting it to "shut up" and stop phoning home I made the decision to never recommend it moving forward as a security best practice.

comment 6y ago · link · parent

I still consider originating IP address to be a leak - what about private intranets, processing-only infrastructure etc? Not everything is a traditional public-hosting model.

In the screenshot posted you can see the following data is being sent out:

```bash

USER_AGENT="curl/$curl_ver $lsb $platform $cpu $uptime cloud_id/$cloud_id"

```

This is 100% not acceptable. That data is NOT to leave my environments.

comment 6y ago · link · parent

For sure, but in the case of Debian/Ubuntu the configuration to make Debian a bit more friendly is not difficult at all...

ie: Enabling non-free and installing sudo gets you most of the way there for the majority of users.

comment 6y ago · link · parent

As someone who's worked heavily with both Debian and Ubuntu - they do.

There are differences between them but I am 100% confident that I can do everything that an Ubuntu system can, especially if we're talking about infrastructure.

comment 6y ago · link · parent

> I don't think anyone uses a Canonical distro and is genuinely upset or surprised about this particular benign case.

I've had to use Ubuntu in an environment with high security needs/regulations. I've had to disable this exact feature because leaking OS versions, network information, etc. externally via that user agent string was unacceptable from a security standpoint.

I was upset that something as simple as a motd had been retooled to leak data.

> and my sense is that virtually nobody cares about this particular case of telemetry.

And in my real-world experience I've been paid to care. When forced to work with Ubuntu (which is everywhere these days) I have to "reign it in" with custom images/scripts/etc.

> I dislike the idea of tying particular political or economic philosophies together with a tech stack like Linux.

This isn't "political or economic philosophies" this is security 101. Leaking data like my OS version, IP addresses, when admins are doing their work, etc to the public internet is a hard "no" for anyone who's operating in any semblance of "best practices".

comment 6y ago · link · parent

> Alternatively: Why not let the people actually making the distros decide what and what not to throw in them?

I'll argue that utilization of Linux comes with certain "expectations" which is why so many of us decide to use it in the first place. Some of those expectations include (but are not limited to) rock-solid stability, "be good at one thing", lack of bloatware, sane update/upgrade cycles/policy, privacy, and security.

I've been using Linux professionally for just over 15 years now, sometimes in highly compliant/systems-critical infrastructure. The privacy and security bullet points above are the most important factors to me when designing and/or hardening systems.

> I don't use Ubuntu, and you don't have to either! It's almost like there are millions of Linux distributions!

Actually - I had to at my last position. When people make technology decisions they often go with the most popular/"safe" options and then dictate the decision to those implementing it. Welcome to corporate America (which is where the jobs are). Everything new was spun-up with Ubuntu as a base distro and you better believe I manually opted-out of this "feature".

---

There's a big problem when the most popular distro starts making moves like this as it sets precedent that it's OK. Canonical has made the decision against privacy/security in regards to their motd and that's a huge issue, and I argue it goes against the ethos of Linux and OSS.

comment 6y ago · link · parent

I find features like this to be useful as well - as long as I've opted-in. This is not a "sane default" - this is telemetry enabled out-of-box which is something that I'm vehemently against with Linux.

comment 6y ago · link · parent

This isn't even an idealist "purists" thing - this is a "I don't want my distro leaking telemetry" thing.

comment 6y ago · link · parent

> The "adverts" are benign. Right now it says to check out microk8s and also to look at livepatch.

My distro shouldn't be advertising to me. Call me "old school" but this has no place in Linux. Also, if you're in a position of trusted compute then you don't want this sort of information leaving your network.

> Also if you're in the position to care about motd, you're going to have the skill to change it yourself.

Yeah - and I feel I shouldn't have to add it to my images/recipes/whatever to fix this. I use Linux for a lot of reasons, and some of the most important ones are that it doesn't advertise to me and/or leak data. This is telemetry and it's unacceptable.

comment 6y ago · link · parent

I've done it in the past but I'll admit it's been years since I've used it. The cloud sync thing works just fine for me and fits well with the subscription model etc.

Looks like they may have gone off the deep-end with the configuration files - I remember the ability to export to a MUCH smaller file but this was probably 4 years ago at this point.

comment 6y ago · link · parent

Gotcha - it's times like that that I go with an old-fashioned raw HTTP request and parse it with a DOM parsing engine. Sometimes the "web-facing API" (so-to-speak) is better than the official API.

Super cool project!

comment 6y ago · link · parent

Looking at the API request counter/how it renders it seems like you're pinging the API for every news item? 43 for just the "news" and "show" sections seems pretty high.

If that were the case I'd be worried about hitting an API limit, etc.

Great concept though! Looks clean =)

comment 6y ago · link · parent

I'm with you that the defaults aren't my favorite... but as a heavy Sublime user I was able to migrate the bindings over that made sense to me... Intellij products are insanely configurable.

Also - I would either use their cloud sync and/or VCS to back-up your customizations. It sucks switching to a new computer and losing a day re-configuring your IDE back to baseline =|

comment 6y ago · link · parent

> Does writing backend Javascript mean you're a better developer?

Absolutely not. But as someone who does write backend Javascript I don't tolerate Microsoft development tooling because I don't tolerate Microsoft. Period.

When their core product offering is literally adware/spyware (Windows 10) to the point I have to use special builds that are difficult/expensive to get a hold of (LTSB/LTSC) I get pretty turned off in regards to the whole ecosystem.

Microsoft tooling may be right for you, but it is not for me... and Node is an outstanding tool for rapid application development with solid async capability that's open source.

I can also find/hire way ECMA devs way easier vs C#.

Also before someone rips me saying "well Visual Studio is better than everything else" - Intellij offers the same general "nice-to-haves" and doesn't come with a dependency on a broken OS.

comment 6y ago · link · parent

> Please, don't judge what others (dis)like and make sweeping generalizations.

It's still adware/spyware if you're not running a LTSC/LTSB build of the software. I'll judge it all I like: Windows 10 is what we historically considered to be malware.

comment 6y ago · link · parent

> I think a lot of the rip is from WordPress generally being insecure.

That too - I put adware on my wp-admin pages in the same boat.

I've seen the JSON publishing route and I'm not 100% impressed with how it operates. In most WP situations you want to give people who are non-devs the capability to manage content which local setups like this don't accommodate well.

comment 6y ago · link · parent

I agree and disagree all at the same time ha...

> I personally would prefer WordPress to allow whoever wants to make an app and give the users the responsibility to choose what to add and what not

I'm totally with you but that assumes that WP devs have the responsibility to make responsible decisions. The range of skill for a typical WP dev is outstanding, where on one end you have people who can't write a for loop adopting the "dev" title, and on the other end you have skilled engineers.

I've seen WAY too many people call themselves "devs" when all they do is try to install plugins to piece together a website. In relation to Apple and FF - average users are not savvy at all and have been shielded from the nuts-and-bolts decisions that we make on a daily basis. Trusting them with the responsibility to make good decisions is precarious.

comment 6y ago · link · parent

When people rip on WordPress development this is the sorta crap they're talking about.

In many ecosystems this would warrant the plugin getting pulled from the ecosystem but WP just lets it fly.

comment 6y ago · link · parent

I'd say don't use it until there are more than two contributors. The last thing you want to do is rely on something like this without support. Tightly binding dynamic logic in your HTML like this would be something I'd see as a "critical path dependency" for an application.

I've seen a TON of projects with huge teams of contributors go belly-up just because they fell out of style, after a ton of people had implemented it because "cool!" This is almost a trope in the JS/ECMA world.

If you're looking to make something informal then all of what I just said goes out the window, but usually even my hobby stuff has a potential support cycle/lifespan.

comment 7y ago · link · parent

Totally agree but the thing is it's a TON of sophistication to pull that off and block proactively to the point that I'd say the only people who employ methods like that are Amazon (that I've encountered). Typically when you do that you will spoof a crawler and it gets you by just fine.

comment 7y ago · link · parent

This is an excellent question!

When it comes to a web "interaction" there's a ton of differences depending on the job at-hand. If it's jumping on a Nike drop you're not going to run into those sort of methods where-as if it's scraping hundreds of thousands of SKUs there's a huge chance you will.

When a human opens a "conversation" with a website usually it's for a specific action which is a small burst of data, ie: looking at a few products on Amazon. So as long as you can design your bot's "conversation" with said website in the same way you can totally bypass ML detection (and everything else for that matter).

Basically if you think of ALL of the unique variables that are happening back and forth in that conversation it's a finite list. If you can check off each and every one of those you can get past anti-bot measures no-problemo, it's just a matter of budget/time. ML can HELP to identify bot traffic, but if you're sending perfect headers/traffic/browser metrics/CC numbers/shipping addresses (this list gets long) you're still going to squeak by with an acceptable risk score without a problem. The other thing is going raw-HTTP request often bypasses almost all of that crap, way more than one would think! I will often get "fingerprinted" with a very valid browser, then continue my work after treating their site as an API; ie: talking directly to the backend (or rendered HTML page) and no one else.

The #1 thing I'd say where bot classification works is network reputation... so I use services that allow me to proxy-out to VERY reputable networks that are actually business/residential ISP connections. This lets me get past the majority of countermeasures because if they start blocking those sort of IP addresses/ranges they're going to block real users at some point. Unfortunately, highly reputable proxy services do cost money - but for someone who does this professionally it's all about budgeting etc.

To implement these systems well takes a really keen implementation between your front-end and back-end and most companies (even the big ones) don't have the development sophistication to pull it off. Those that do are just more expensive because you'll be bouncing around between 40 different "origins" with unique browser profiles.

Sorry for the essay =)

comment 7y ago · link · parent

I'm an open book! Ask any question that you would like!

Here's the thing - all of this info is out there (largely in other HN threads on this topic) and I'm nothing special in my field-of-knowledge ;)

I'm confident if people fully prevented my "abuse" they'd start to block actual users... simple as that.

comment 7y ago · link · parent

Yep - and as someone who's ran a lot of conversion-based online solutions this is 100% true. Even when you account for automated sign-ups etc. the inclusion of a CAPTCHA will ding your rates.

comment 7y ago · link · parent

Answered further up in the thread: https://news.ycombinator.com/item?id=21631112

It's a cat and mouse game for sure, but the answer is usually nothing if the person is sophisticated enough. You can only increase the difficulty/cost (covered in that comment).

comment 7y ago · link · parent

I sorta disagree on this being tribal knowledge - a lot of this stuff is out there if you're willing to dig a bit. Tons of it comes down to network reputation and having a legitimate-looking bot. If you're scraping at scale it's an infrastructure problem just as much as it is a fingerprinting one.

Stuff like https://news.ycombinator.com/item?id=20479015 is a goldmine for me and it usually is a fun weekend working around said methods in a lab-like environment.

> resident old wise one

He's just invested the time in picking this skillset up - it's definitely not just something you're an expert on after a few small projects. It takes years of having things break over, and over, and over [...]

There's a small Discord server that I setup for people who do a lot of RPA/web scraping if you're interested in joining a "tribe". My contact info is accessible through my profile if you're interested =)

comment 7y ago · link · parent

It increases the barrier and cost for sure! But the thing is if you get someone who's even remotely sophisticated we can get past this sorta stuff in short order.

For something that's highly desirable like tickets, Nike drops, or apparently campsites there are many people with sufficient ability to bypass this stuff.

1
151617
25