Is it okay to use Distrobox to install a browser?

I was recently looking into atomic linux distributions, and I was trying to install my preferred browser onto one. From research, I have heard that installing browsers from flatpaks interfere with the browsers own sandbox, and that using rpm-ostree to install stuff should be a last resort because it can break updates. Since the only other option that leaves is Distrobox, is it a good idea to install a browser using Distrobox or should I just use rpm-ostree?

I’d simply layer it.

Edit: Flatpak is currently working towards a solution which would allow subsandboxing: https://github.com/systemd/systemd/pull/43885

I was wondering the same thing so on my Bazzite machine I installed Firefox both ways next to each other. The rpm-ostree version works mostly fine (had some trouble with creating, editing, and removing profiles, but if you don’t use those it’s pretty much perfect). The Distrobox option is a little more hands-on, and opening file explorer through the browser isn’t working, but it makes me feel like a generic hackerman from an 80s movie.

My suggestion is to layer it with rpm-ostree, and to add a Distrobox browser if you feel like playing around with it. Maybe you’ll get it to work perfectly for your use, and can remove the rpm-ostree version at some point. Both share the same profile data, so you’ll have access to the same stuff anyways.

Are there any security concerns with using it in Distrobox like there is with Flatpaks?

Yes, distrobox doesnt use seccomp filters that block user namespace creation. Thus, browsers can use their normal user namespace sandboxes.

Make sure to use a rolling release distro in the container though, like Fedora rawhide, opensuse tumbleed or arch. Distro upgrades didnt work last time I tried