The design and location of the oil tanks on F1 cars are strictly controlled in order to minimize the risk of oil leakage in the event of engine failure or a crash. The oil may not be added during the race.
The coolant header tank must have a pressure release valve approved by the FIA. Cooling Systems (including the charged air cooler connected to the turbocharger) must not use the latent heat from the cooling process.
Coolant and oil pipes must not pass through the cockpit. They must be placed so that the leaked fluid cannot get to the cockpit.
FIA F1 2017. Technical Regulations can be downloaded here.