spring-cloud / spring-cloud-config

External configuration (server and client) for Spring Cloud
Apache License 2.0
1.95k stars 1.29k forks source link

MultiRepo Credential support #796

Closed remo408 closed 5 years ago

remo408 commented 7 years ago

Hi how can i use different credentials for different repo's in the following dynamic setup:


spring:
  cloud:
    config:
      server:
        git:
          uri: https://github.com/myorg/{application}

Appreciate your response

ryanjbaxter commented 6 years ago

Please learn how to format code on GitHub.

Why would you not have access to all repos in your org?

remo408 commented 6 years ago

so each repo is owned by an application right , so the app admin wants to restrict the access for there repo to other apps even through configserver. We have enables resource level security but we also wanted to see if we could restrict this at repo level as well

ryanjbaxter commented 6 years ago

We have made an assumption that at the org level you are using credentials to access all the repos in that org. There is no way to set credentials per repo right now.

spencergibb commented 6 years ago

There is no way to set credentials per repo right now.

I think you mean when using placeholders. I believe you can set username and password for non-placeholder repos.

remo408 commented 6 years ago

Hi ryan/spencer,

cool thanks for your response is there a plan to support placeholder credential configuration?

spencergibb commented 6 years ago

Not currently. I'm unsure how that would look. We certainly wouldn't want the client to have to know the credentials.

spring-projects-issues commented 5 years ago

Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue.