Researchers in Finland have developed a scalable and secure cloud computing infrastructure for CMS data analysis at CERN. The solution is a hybrid one combining the advantages and disadvantages of grid and cloud systems. The infrastructure is expected to support also other scientific applications.