Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 7y ago · link · parent

Well, it's not like they're hoping it will crash. Presumably they're hoping it won't.

Wouldn't it be more irresponsible to deploy to every user without first testing it out?

comment 7y ago · link · parent

I don't see the purpose. There seems to be an assumption that A/B testing is inherently bad, therefor should be opt-in.

A/B testing is necessary for stable rollouts, that much seems self evident.

So what is the evidence that A/B testing is harmful to users?

comment 7y ago · link · parent

Not seeing any updates in `apt`.

comment 7y ago · link · parent

So when deploying changes it should just go to every single user with no incremental rollout?

comment 7y ago · link · parent

Alright, I apologize for the tone. It's unnecessary to make something like this into a heated discussion.

That said, the part I was referring to is:

> The mere fact of such a thing being possible is a usability defect. On what basis do I trust that my work is not going to disappear on me like that again?

The possibility of a bug happening is hardly a usability defect in my mind. Or if you want to call it one, it seems like a perfectly reasonable one - this was a defense born out of necessity when malicious extensions were more of a problem.

And I think that the "On what basis" question definitely implies a total lack of trust, but sure, maybe not. The basis is that this is a single instance of a failure over the course of the features' lifetime, for a feature that has existed for absolutely ages.

I pointed to Chrome as an example of similar issues cropping up across codebases to show that these sorts of bugs do happen. I don't consider that whataboutism.

All bugs are foreseeable and preventable. Systems are complex. I think you're putting the issue in a very unfair light, even though it's very reasonable to be upset about time and effort that is lost because of the issue.

comment 7y ago · link · parent

This is absurdly overdramatic. One issue with a feature in decades and you're stating that you've lost all trust in the browser.

https://bugs.chromium.org/p/chromium/issues/detail?id=952287

Chrome has bugs too.

Firefox will continue to have bugs. All software will continue to have bugs. I'm so sorry that you lost some tabs in your browser but shit really does happen and acting like this is some violation due to overzealous security controls is inane.

comment 7y ago · link · parent

So a security feature that had 0 impact for decades is "crippling" the usability of a project due to one outage?

comment 7y ago · link · parent

The national park service does this in NYC. It's a win win situation, goats eat the grass, and everyone gets to hang out with goats.

The article paints this as unusual but if the NPS was doing this in NYC that seems unlikely? It was over a decade ago when I was there and I think I was told it was somewhat standard.

comment 7y ago · link · parent

Me too. I can't say one way or the other, I can only speak to what I perceive in my career. I believe I've made it this far, in part at least, due to the extra hours I've put in. I believe I'm a much better programmer for it too.

But I also put way more in than an extra 2 hours a day.

comment 7y ago · link · parent

I agree - I think putting in the extra hours is way more important early on in your career. Eventually it isn't going to pay off the same way (though I think it still will, just less).

comment 7y ago · link · parent

Sure, I would too. Interviews are mostly stupid.

At small companies where you have more wild-west type procedures you can probably get away with saying "Github is good enough", but my experience is that even mid sized companies start to put all of their bags in the interview basket.

comment 7y ago · link · parent

I don't think any company cares that much about your github. It almost always comes down to the interview.

But programming in your free time will (likely) make you more effective in your job, garner recognition/ place you in a programming community, teach you about new problem spaces, etc.

So while that may not help you move from job to job (I'd argue, however, that it does), it'll help you accelerate your career within a company.

I don't think it's contentious to say that practice will improve your skill, and improving your skill generally leads to a better (by some definition) career.

comment 7y ago · link · parent

I always want to tell people things like this, to take care of themselves and not overprioritize work.

At the same time I've never done that and it's in large part why my career has gone so well.

It's "OK" either way, live life how you want to. But if someone asked me for career advice and said they don't know how much time they should spend outside of work on programming, I'd have a hard time telling them "no time at all".

If your goal is to advance your career, yeah, my advice is to program in your free time.

If your priorities are different - maybe your career is already set, and you want to focus on life - sure, don't program in your free time.

comment 7y ago · link · parent

There's a lot of discussion of behavior based detections, but then it seems to lean heavily on AMSI, which is just an in-memory signature system.

Even the syscall monitoring, I wonder if it's really "Given a known sequence of suspicious syscalls" as opposed to "Given a known sequence of good syscalls" eg: signatures vs baselining. Or "These syscalls semantically amount to this behavior".

From what I have seen of AMSI it's not much harder than classic AV to bypass.

I appreciate the Fileless classifications - that seems like a larger value add, but I'd love to see us also better define TTP and Behavior based detections. It implies that we are observing generalized behaviors as suspicious when in reality it's almost always some sort of combination of predefined signatures.

It is not a "behavior" (in a meaningful way) when an attacker uses specific parameters on powershell or some LOLBAS executable, it's just a very specific technique, which is subject to change. The higher level "Got a process to execute and do a thing" is what the behavior is, to me, and what we should detect.

To be fair LOLBAS and Fileless are still uncommon approaches for malware, so it is not surprising that it's taking time to hammer out how we should be building out our view of the issue.

Still, ATP is a great product, not trying to be overly negative. I think Microsoft is in a really good position to start hammering out the definitions for some of these concepts. I'll give this article another read I'm sure.

comment 7y ago · link · parent

So how do you bootstrap your company?

You choose closed source and you throw away early adopters - people are way, way less likely to try out closed source software from what I've seen. They'll even resent you for it.

You choose open source with a permissive license - you bootstrap, get users, and some larger company comes along and essentially takes it from you.

You choose GPL3 or some less permissive license and no one will ever use your software.

How do you see this working?

comment 7y ago · link · parent

Yes, this is 99.99% of the image work that I do. Take a screenshot, add a box.

On Ubuntu there is no default tool for this, to my knowledge. I installed `pinta`, and it's way overkill and far more complex than paint.

A sane, default, "draw box on image" app is a good thing.

comment 7y ago · link · parent

> It's fine to say "let's clear this question up" and proceed to clear it up.

I think the issue is that no one had the expertise to clear it up. So how do you move forward?

Someone has to get called in and there's no process for that. Or the person pushing the feature needs to explain the security implications of the feature.

Maybe some sort of 'requires security triage' tag could get applied to issues like this, and the rust security wg or whoever is qualified ot make these calls could review.

Ultimately, my opinion is that if you're making a PR with security implications, and there are people saying "I'm uncomfortable and don't understand the security implications", it's on you to explain them.

Otherwise progress should not continue.

comment 7y ago · link · parent

> and "I don't know much about it, so let's kill it" is a really bad precedent.

I feel the opposite. Where user safety is concerned, if a problem is not understood the solution should not be implemented.

In an example where it's "disable security feature X", and the developers don't know the implication, would you really want them to just say "well whatever, I don't understand the implications, but let's push forward" ?

comment 7y ago · link · parent

I disagree about the definition sliding. SOA is closer to "many small services", Microservices is SOA + a set of practices and patterns. You can do SOA and not be doing microservices.

It sounds like what they did was attempt to split a monolith into separate services, which is distinctly different from a microservice approach.

comment 7y ago · link · parent

Then you redeploy everything. But you're making that call based on risk, not due to a technical requirement.

comment 7y ago · link · parent

> But the problem with microservices is that there is nothing to prevent you from creating these types of potentially incompatible dependencies.

Sure, it's totally a matter of idiom - this is why I stated that a big problem with microservices is people jumping into it thinking it's SOA. Microservices, as a discipline, requires some care. It could be argued that the care required is too high to be worth it though.

> If you are separating functionality using functions, the compiler helps you spot problems. If using classes or libraries, the linker can help spot problems.

Maybe you could be more specific? I don't see how a compiler will help prevent coupling of modules/ internal components. What problems are you referring to?

I agree about microservices being an idea without an obvious implementation - that's a fair criticism.

comment 7y ago · link · parent

Well, I think one answer is to add another service in front of that shared business entity that exposes an interface to match the domain of the consumers. Now the shared codebase should be a stable client.

But yeah, of course there's shared code between your codebases - things like JSON libraries, etc, are always going to be shared. The issue is more about what you're sharing - if it's a very stable, small library, it's probably fine. If it's something really core that's going to change a lot, or that two services may diverge in agreement upon, duplication may be worthwhile.

comment 7y ago · link · parent

I don't think this is a "No true Scotsman" situation. I didn't defend microservices on the premise that "Good" users will do it right, I stated that what is described is not microservices.

Similarly, if I build a microservice architecture, and then say "My monolith is too hard to manage because it's in so many pieces" I think it would be fair to say "You didn't build a monolith".

comment 7y ago · link · parent

Cost is the easy answer - as with any optimization, I guess.

It can also be really annoying sometimes to scale a monolith - a big one can have a lot of different parts like multiple threadpools/ database pools. One component hits a threshold, you add more instances, now your other component is overprovisioned, maybe even failing due to too many DB connections, or you hit weird thread contention issues.

I've had some pain in the past scaling monoliths in similar situations.

comment 7y ago · link · parent

I don't think the argument that monolith should be the default is super compelling. If you are already answering "yes" to some of these questions you are likely to start benefiting in the short term from microservices - in particular for issues like "multiple teams own parts of the project and release at different cadences".

While the article mentions separate CI/repos/etc, that's not actually necessary or even super relevant to microservices. To my knowledge there is no real link between microservices and isolation of build/ deployment systems.

To me, the big issue with people adopting microservices is not understanding that it doesn't just mean SOA. If you just start splitting your service into multiple processes you gain some benefits, but you're going to incur huge overhead for releases - you probably have tons of shared code/ leaky interfaces. I think this causes most of the pain people have with microservices - and I think that a big part of people making this mistake is building a monolith (when they've answered "yes" to some of the proposed questions in the article) and then trying to split it later, often rushed, because that approach isn't going well.

Personally, my current side project is implemented using microservices. I rewrote one of them this weekend, and that service gets by far the most attention. I also use multiple languages, which is important and allows me to move really quickly (I fall back to Python for library support sometimes so that I can move faster). There's only a single shared library that virtually never updates (it's a fairly low level representation of a graph), and so I therefor virtually never have to worry about redeploying the world.

It's not perfect - I have to figure out how to deal with some of the downsides at some point, but I believe microservice-first was the right call. Oh and it uses a single repository, currently.

comment 7y ago · link · parent

You say you were using microservices, but you say that a bug in one service led to redeploying many services. That sounds really odd, and like you weren't doing microservices at all, but actually just a monolith with many pieces.

I think "Can I deploy a bugfix without redeploying the world" is one of the base criteria for determining if you have implemented microservices or not.

comment 7y ago · link · parent

The coolest part of this, to me:

> This is going to be developed live? Yup. Check out My Youtube Channel or my Twitter. I announce my streams typically a few hours ahead of time, and schedule the streams on Youtube. Further for streams I think are more impactful, I try to schedule them a few days out.

> I'm going to try to do much of the development live, and I'll try to help answer any questions about why certain things are being done. If this project fails, but I teach some people about OS development and get other excited about security research, then it was a success in my eyes.

> I have already scheduled a stream for an intro on Wednesday: Intro Video

https://github.com/gamozolabs/orange_slice#this-is-going-to-...

comment 7y ago · link · parent

I found the section on their evaluation of other potential systems like ECS to be interesting - it's something I'm currently considering myself.
1
137138139
164