Back 30 years ago I used to work at an R&D lab, and other researchers used an epoxy like stuff called "Torr Seal". For fixing vacuum leaks. It dried to a hard surface, and presumably was made to not outgas. Looks like they still make it:
https://www.lesker.com/newweb/fluids...?pgid=torrseal No idea what it costs...