{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/81","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/81/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/81/events","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/81","id":56682046,"number":81,"title":"Per app security?","user":{"login":"bsideup","id":1050762,"avatar_url":"https://avatars.githubusercontent.com/u/1050762?v=3","gravatar_id":"","url":"https://api.github.com/users/bsideup","html_url":"https://github.com/bsideup","followers_url":"https://api.github.com/users/bsideup/followers","following_url":"https://api.github.com/users/bsideup/following{/other_user}","gists_url":"https://api.github.com/users/bsideup/gists{/gist_id}","starred_url":"https://api.github.com/users/bsideup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsideup/subscriptions","organizations_url":"https://api.github.com/users/bsideup/orgs","repos_url":"https://api.github.com/users/bsideup/repos","events_url":"https://api.github.com/users/bsideup/events{/privacy}","received_events_url":"https://api.github.com/users/bsideup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-05T15:10:14Z","updated_at":"2015-02-05T17:51:46Z","closed_at":null,"body":"We want to use spring-cloud-config single server for all environments (dev, prod), but dev application shouldn't know anything about prod environment, because it's business critical.\r\n\r\nIs it possible to configure security for each app?\r\n\r\nFor example:\r\n```yaml\r\nspring:\r\n  clound:\r\n    security:\r\n      dev-app:\r\n        user:\r\n          password: \"...\"\r\n      prod-app:\r\n        user:\r\n          password: \"...\"\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/comments/73092662","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/81#issuecomment-73092662","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/81","id":73092662,"user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T17:51:46Z","updated_at":"2015-02-05T17:51:46Z","body":"You could probably add a `@PreAuthorize` layer that matched the appname with the username as well, but I'm not sure I want to go there yet (certainly not for 1.0). I don't think it would be hard to add for specific use cases, just a bit tricky to get it right and support the current behaviour as well. Maybe you should try it and see if it makes sense once you have it working?\r\n\r\nI have a suspicion that you won't need it, but you don't know till you try I guess. If the developers have access to the whole git repo, then I don't see why the apps shouldn't too. Or maybe I didn't understand the use case yet."}}