Automating privacy enforcement in cloud platforms