Better HN
topnewbestaskshowjobs
Log inSign up

oneplane

6,912 karma · joined Jan 3, 2016 (10y ago) · 2,790 submissions

self-hosting toolbox
Submissions

comment 1d ago · link · parent

That's correct, but it won't behave the way people expect their GPEdit changes to propagate, even just a delay or inconsistency depending on which DC you happened to hit is going to sting a little. It's using something like unison or syncthing under the hood which doesn't handle it the same way as the whole "if the file isn't here yet we'll refer to where it actually is" mechanism in DFS.

It's similar to multiple instances of the editors being open and then having conflicting saves on a non-shared filesystem. You can do some of this with Ceph etc. but you always run into the assumptions that the MS tools make vs. what is actually implemented when you run a non-MS backend.

For a use case where you don't really use it that way and thus don't really care about that, you'll usually also get away with just a single node and solving HA with snapshots and virtualisation (or containers). If you can make a backing store for the SYSVOL that can be consistently re-used (instead of replicated/re-shared) a crash or failover can practically rely on block storage or object storage anywhere that supports extended attributes. Even if it's a single-writer system (hosting solo DCs on Kubernetes works great that way as long as you release the PVC quickly when a pod gets removed).

comment 3d ago · link · parent

It's great for CI/CD too, just have a ready to do AD DC in a container, test your applications against that, nuke it all at the end of the run. Fast, cheap, dependable.

For the classic "have users use different workstations" that doesn't really matter as much any more, you can get a laptop and just take it with you. No network/directory login needed. If it were about GPOs, you could do that, but Ansible etc. can do that too, as well as Intune. GPOs also still work (albeit non-replicated/HA), but if you're doing that kind of management, you could also consider Chromebooks at that point.

Realistically, a lot of the 'work' that used to be done like that would be done on an iPad. There are of course still the special windows-only apps, but that's the sort of thing you'd want to box in and isolate as it doesn't tend to be the best quality software that is built like that (think: CnC controllers, planning software, thick clients, general enterprise software at large).

comment 3d ago · link · parent

Yes, it's used a ton in isolated systems where some manufacturer delivers a Windows client that you run in kiosk-mode but doesn't require anything else. Instead of paying double and having a bad time doing maintenance, you can emit as many fleets of that type as you need using generic DevOps practises.

I wouldn't run it in the classic way (server in the backroom of an office with a couple employees using it to log in and deal with files), but that's not because it's Samba, that's because I wouldn't do it with Windows Server either, that stuff gets yeeted into a cloud unless there is an actual budget to do it right.

comment 3d ago · link · parent

The problem with Samba is that it can't do full HA. Yes, it's possible to do something like NFS re-sharing but that messes up permissions, you can't reliably spoof SMB and NTFS intrinsics that way. DFS-R isn't really viable with Samba. The reason this is important is that 'real' AD uses the SYSVOL over DFS to make sure every SYSVOL has the same data on it, and if any client talks to any advertised DC it gets the same interaction.

There is some irony to this: the vast majority of currently janky AD setups tend to be the yolo-single-instance windows server installation on physical hardware (usually with no backup, a tape backup or a crappy external USB HDD that will fail the first time it has to power down and back up again). Those could easily be replaced with Samba since it does exactly the same thing. It's usually paired with perhaps 4 to 10 workstations where 5 to 7 are actually used by multiple users with roaming profiles etc.

In bigger setups you wouldn't do any of that either way, and you'd either already be stuck in the horror that is legacy AD, hybrid AD or offline AD.

There tend to be excuses like "yeah but this user/admin will already be familiar with windows", which doesn't really make sense, because if that were the case it would be patched, well-configured, and have some piece of paper with minimal disaster planning written out. Most of those will even come with whatever you buy, as well as with most of the built-in docs and wizards and clickops stuff you go through in those systems, but they tend to be ignored all the same.

comment 4d ago · link · parent

If you need an isolated (so no Entra and no Intune) built-in management option, then AD is probably the best fit. It will work with Samba or just plain LDAP and Kerberos (without GPOs), but that's probably not what you are after.

If you need to manage Windows clients, you should probably not use ADDS either way, and use their cloud offering (which is, of course, a subscription game). No server required for that.

The true use cases for greenfield ADDS installations are getting smaller and smaller every day.

comment 1mo ago · link · parent

This is about the bank. You get a service from the bank. The bank has to make a trade-off which services they want to provide under which conditions.

Somewhere, 100 steps later, you might get to a "which OS on which hardware" aspect, but that's so far removed from normal life for the meaningful customer base that unless you want to stretch the scope of the post two orders of magnitude bigger than it is, it's not even close.

The bank makes a tradeoff, usually based on money: if they lose 5 customers because they can't use a specific app on a specific OS on a specific piece of hardware, they aren't going to care.

You can apply that to most businesses, especially the profitable ones. You shouldn't be surprised by that.

comment 1mo ago · link · parent

Could be general polarisation, or just that it's a "but in my case it is different" visceral response.

While people might not be moved by data, it would be interesting if some more public information on what people actually use was available. Imagine data points like unpatched/unpatchable iOS or Android devices being multiple percentages, or outdated browsers. Similarly, the effort per app/OS combination; if it costs X to support Y configuration, then it would be somewhat easier to see if it's more about the will to do anything rather than real-world problems.

comment 1mo ago · link · parent

> blanket restrictions on everyone's freedom

The scope is much smaller than that: restriction on what banking conveniences are provided.

> Most of us understand the desire to protect customers from fraud > At some point, the cost of preventing additional fraud, including the loss of individual choice and autonomy, exceeds the benefit > Could we aim for proportionate

I think you have answered your own question here; if a less than single percentage of retail customers use something that's not a general iOS or Android device, anything beyond that is not really worth it until regulation says otherwise.

comment 1mo ago · link · parent

You might be overthinking it. Most people want to use their phone for convenience, and if an app allows them to remove just one step in their banking activities, they'll probably do that.

As for the second part (separate authentication methods), sure, would be rather problematic if they require you to have a phone, but that's a completely separate and different issue.

comment 1mo ago · link · parent

Some of this stems from the idea that everything can be reduced to logic, so as long as we solve for all logical states, the end result will be perfect.

Of course, the second you start interacting with the real world and with humans, that doesn't really apply anymore and you have to get to 'good enough' much earlier than a generator would be able to predict.

Even if you steer a model to a very specific goal with an easy to validate end state, it will do things that within the scope and context of the goal a human would not really do. In theory if you put the context of the entirety of a human into a model, you might be able to get much closer, but we don't even have enough power generation on the planet to process that (unless someone has a secret ten orders of magnitude more efficient way of doing that).

comment 1mo ago · link · parent

They still have webkit builds for Windows and Linux etc, and you still don't need to buy anything special to run it. I think they also have a (mostly?) headless one, and a mini-browser which is intended to test the engine (so it doesn't have things like bookmarks or profiles or anything like that, a good fit). Similar options exist for FireFox and Chromium so it's not really a Safari/Webkit special. Usually gets used when you use a standard containerised browser testing CI step.

Either way, if someone is still manually testing their website instead of using a standard automated testing system you're probably not really in a league where this matters anyway.. and if they are, you probably have a device farm already.

Not sure where the "my thing is so important, I have to test it on a real device, but I can't pay for it" niche is.

comment 1mo ago · link · parent

You can assume that any company at a large scale will not want to divulge any information unless absolutely necessary. Doesn't matter if you or I think that it might not need to be secret or might not be competitive. Unless there is both an internal push, a need and a sort of proof dat the information can be released, it will never happen. You'll usually find thing that are simplified or aggregated for PR and marketing, or things that are required for legal reasons, but everything else stays internal.

comment 2mo ago · link · parent

I don't think so, the XNU and macOS LS architecture doesn't assume you're going to do policies based on the internal memory topology of a process. It's usually done with multiple processes and having one be very constrained doing only some very specific calls and the other not being able to do any calls at all.

You can probably get by with mprotect or mach internals, but if you're developing at that level you've probably already either implemented or dismissed that.

It's a bit of a different architecture with PAC/MIE/APRR (and to a degree AMFI) being used to prevent abuse that would require syscall filtering in the first place. While I personally don't think that's airtight, it does appear to work out well for their ecosystem.

Edit: come to think of it, region-based call filtering is never really going to be enough on its own, if you don't combine it with other techniques it's basically a rop gadget fest. Probably also why SBX went for intent rather than trying to do it based on location/origin.

comment 2mo ago · link · parent

Windows has virtualisation based sandboxing and NT has object-level security (albeit not often used correctly and granularly) and macOS has (among other things) SIP and a subsystem called sandbox that does exactly what it says: it sandboxes. It can sandbox in comparable namespace terms (like cgroups v1 or v2, but more in translocation style execution since it's a MAC framework) yet it also does it a much more fine-grained level depending on what you need. It is used by launchd and applications by default, some entitlements require it so if you want to do some broad kind of elevated application, you also have to have a specific sandbox profile. It's also been around for 16 years, and comes with a ton of examples if you wanted to use it yourself to constrain some process. Yes, it can do filesystem (would be pointless without it), but also does ipc, io, network, memory, fcntl, sysctl, mach ports, sys calls, processes, ui, sockets, messaging, events and all of that including context-aware filtering and compound matching for all of them. And if that's not enough there is also ESF and NEF, the latter only working on networking. You can compare those two to eBFP LSM and XDP. If you want all of this on linux, you'll need to add a lot of custom eBPF and LSM as well as always run in a hypervisor for guaranteed IOMMU usage, but you can't use bare KVM for that either, so you'll either need to never touch the privileged kernel (not even give it a console) or you need to run Xen and use XSM.

Flatpak is just a cheap container copy. Can't do anything beyond what cgroups and things like apparmor and selinux can do, and uses a runtime to do soft higher-level policy functions that translate down to the same primitives. If anything, it's a great bundler, but doesn't do anything new policy-wise.

So, can you get the macOS-level capabilities (both low-level and higher abstractions)? On Linux, yes, but they don't exist yet. On Windows: technically possible, but since that would break most GUI workflow it's not likely that anyone is going to bother, and you're going to have a hard time recompiling windows yourself to make that happen.

comment 3mo ago · link · parent

It usually does, in this case as well since it's SPL.

comment 3mo ago · link · parent

Wouldn't it have made more sense for Claude to suggest using the existing Linux-Airprint-VM project/product that already does this exact thing?

There's even a zero-install method via https://printervention.app where it runs that Linux VM isolated inside a WebUSB-capable browser. That website itself was posted right here on HN not too long ago.

I get that the LLM code assistant software prefers writing stuff, but constantly re-writing the same solution seems a bit inefficient.

comment 4mo ago · link · parent

It's been extensively reported on, and any AWS user that clicks on the health dashboard would also have seen it, even if they don't consume from news outlets.

As for use it gets: plenty of use, mostly when someone needs to have their worlds close to that area (usually latency or legal reasons). There are a lot of smaller businesses that lost a lot (or maybe even everything) because their never thought they would need to create backups in a different region. Most of that wasn't really reported on but instead gets shared on various platforms like Reddit.

comment 5mo ago · link · parent

How is it crazy? It's perhaps not granular (the repository is the boundary, and that's that), but you can definitely restrict who can pull or push as easy as you can make rules for SSH.

Plenty of not-very-granular "enterprise" systems out there, it's not exactly unique to not always have full ACLs on the smallest of objects.

comment 5mo ago · link · parent

What are you even talking about. Every M1 Mac and earlier runs Linux. Even all the way back to PowerPC.

Granted, the M1 and up are not 100% covered yet (driver-wise), but they aren't EOL either. And if they were, Linux would still run anyway. Take a 20 year old Mac and you'll run Linux just fine. 10 year old Mac, Linux still runs fine. Take an M1 and it's a joy to use with Linux. Taken an M2 and it will boot and you can be pretty sure it will run very well long before it's EOL too. And even if it's EOL, it's not going to prevent you from running Linux later.

As for the PC example: definitely EOL problems there. Try getting your EDK2-based UEFI stack patched on an old computer. At some point you won't be getting certificate updates and if you either forget to install a local override or if the vendor didn't add it, you're SOL, especially on laptops where you can't disable secure boot.

comment 5mo ago · link · parent

Since SIP, it's MDM with DDM and you can basically leave engineers be local admins as it has no impact on the system state anymore.

comment 6mo ago · link · parent

I'd rather go back to bare metal than use Azure.

comment 6mo ago · link · parent

Those local options exist, and have been around forever, but the problem is nobody is doing it without cutting corners and with pay-as-you-go elasticity (and the 'call an API, get a VM instantly' effects that go with it).

Most on-prem deployments were trash and a lot of them still are. Not because it couldn't be better but because it's easier to just have some random hypervisor department do this work manually and not do the work to create it as an internal product. Even VMware with vrealize failed and that's about as 'customisable cloud platform in a box' as COTS enterprise software can get.

Maybe it's because IaC and APIs were just not in the vocabulary of the average system integrator or on-prem operating team (it's still lots of clickops and copy-paste).

comment 6mo ago · link · parent

Not really, some of the IP is core to the product and it cannot function without it. In theory if you do something like come up with a complete replacement for EUV, you could, but everyone with deep pockets has already been trying to do that without success. Same goes for the supply chains, most companies (including ASML) don't manufacture everything themselves; so components that come out of the US would need non-US suppliers, which don't always exist.

I suppose it's a case of 'technically possible, realistically infeasible'.

A more likely scenario might be either a from-scratch not-as-good machine that you can source locally (supply-chain wise) or a novel finding (which is hard to predict if it will happen and if so, when).

comment 7mo ago · link · parent

Which is why I wrote about running the exact UI that was referenced, with the same window server, window manager and desktop environment.

comment 7mo ago · link · parent

That statement makes no sense. X11 works fine on macOS and running it in rootful mode with Gnome essentially works the same way it would work on an OS that uses the Linux kernel.

Granted, it will not integrate with anything hardware-wise by itself (unless there's a package for it - if not, macOS still handles it, and Aqua/Quartz will keep running in the background anyway), but if what you wanted was something that is KDE or GNOME running with its own WM on its own X11 server, doing the exact same thing you'd get if you're running a Linux distro, that's been natively possible for over 15 years.

If a power user loses their power based on what GUI happens to be in front of them, how much of a power user was the power user to begin with?

comment 7mo ago · link · parent

It does, it's called FreeIPA (or RedHat IdM). The only GPO parts it doesn't do are those that are not related to policy in the IAM sense (i.e. configuring some application related thing). There's other systems for that, just like on Windows you practically never run GPO without anything else. On top of that, you can pay RedHat or Canonical to host it all for you on any cloud or non-cloud.

comment 7mo ago · link · parent

Oh yeah, you got the same process down pretty much yourself, wasn't an RTFM dig or anything like that. It was more aimed at others who might end up here, more tools, more better!

It's interesting how with some systems/engineering thinking you'll pretty much always get there in the end anyway, which is also why articles like yours are pretty neat. (sadly, not everyone takes the time to write things down and share them these days)

comment 7mo ago · link · parent

There is a lot of documentation from Apple on how all of this works, but this is indeed expected behaviour. A way to make this smoother would have been:

  1. Doing the password reset
  2. Reboot straight back into recovery
  3. Update your new password back into your old password
  4. Boot into macOS, your default keychain will unlock but you'll still have to re-authenticate to iCloud since your machine-user identity combo will no longer match with what iCloud expects. (not sure if this is part of Octagon Trust, but there are various interesting layers to this)
Check the escalation path of key revocation for example where you don't just have longer time delays but also stricter environments where new attempts can be made (near the end): https://support.apple.com/en-gb/guide/security/sec20230a10d/...

There are a number of much more in-depth technical guides and specs, but just listing out random articles (or the Black Hat talk(s)) would probably rob someone of a nice excursion into platform security.

comment 8mo ago · link · parent

Run it in a restricted VM, which is not joined to AD and cannot talk to it either. PAM will not save you, either will Airlock Digital or something like ATP or anything else like it.

Software for running VMs is free.

> Giving users local admin rights is a massive security risk we can't take.

Sounds like you made your endpoints into pets and bastions, that's an architecture that is guaranteed to fail. Work towards a design where the endpoint no longer matters.

comment 8mo ago · link · parent

That online builder is very cool, well done!

I've been trying out similar things to help internal teams to use systems and languages like Rego (for Open Policy Agent) to have a visual and more 'a la carte' experience when starting out, so they don't have to jump straight to learning all syntax and patterns for a language they might have never seen before.

12345
93