config: read config from a repository object