Thin and defect-free Pd-based composite membrane without any interlayer and substrate penetration by a combined organic and inorganic process.