Automating the construction of secure distributed systems becomes necessary. Indeed, developing security code requires a deep expertise and verifying that the developed code respects the specified policy is a tedious task. In this paper, we define a toolkit called CIF (Component Information Flow) that automates the development of secure distributed systems. The developer defines the security properties through a policy configuration file. When this configuration is validated, that is no security leak is detected, the system security code is generated. A performance evaluation of an implemented use case shows the effectiveness of the approach. Categories and Subject Descriptors C.2.4 [Computer-communication networks]: Distributed Systems; D.4.6 [Operating Systems]: Security and Protection General Terms Security Keywords Component-based distributed system, information flow control, secure system configuration and deployment