{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8301","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8301/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8301/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8301/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/8301","id":359447944,"node_id":"MDU6SXNzdWUzNTk0NDc5NDQ=","number":8301,"title":"Default microservice stack doesnt work out of the box","user":{"login":"deepu105","id":1107223,"node_id":"MDQ6VXNlcjExMDcyMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/1107223?v=4","gravatar_id":"","url":"https://api.github.com/users/deepu105","html_url":"https://github.com/deepu105","followers_url":"https://api.github.com/users/deepu105/followers","following_url":"https://api.github.com/users/deepu105/following{/other_user}","gists_url":"https://api.github.com/users/deepu105/gists{/gist_id}","starred_url":"https://api.github.com/users/deepu105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepu105/subscriptions","organizations_url":"https://api.github.com/users/deepu105/orgs","repos_url":"https://api.github.com/users/deepu105/repos","events_url":"https://api.github.com/users/deepu105/events{/privacy}","received_events_url":"https://api.github.com/users/deepu105/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-12T12:01:58Z","updated_at":"2018-09-12T14:33:50Z","closed_at":null,"author_association":"MEMBER","body":"<!--\r\n- Please follow the issue template below for bug reports.\r\n- If you have a support request rather than a bug, please use [Stack Overflow](http://stackoverflow.com/questions/tagged/jhipster) with the JHipster tag.\r\n- For bug reports it is mandatory to run the command `jhipster info` in your project's root folder, and paste the result here.\r\n- Tickets opened without any of these pieces of information will be **closed** without any explanation.\r\n-->\r\n\r\n##### **Overview of the issue**\r\n\r\nWhen I create a MS stack and use docker-compose to run it, there are some issues\r\n1. Unable to login to the registry, it throws an error as below, I think this is after the JJWT upgrade\r\n```\r\nio.jsonwebtoken.security.WeakKeyException: The signing key's size is 376 bits which is not secure enough for the HS512 algorithm.  The JWT JWA Specification (RFC 7518, Section 3.2) states that keys used with HS512 MUST have a size >= 512 bits (the key size must be greater than or equal to the hash output size).  Consider using the io.jsonwebtoken.security.Keys class's 'secretKeyFor(SignatureAlgorithm.HS512)' method to create a key guaranteed to be secure enough for HS512.  See https://tools.ietf.org/html/rfc7518#section-3.2 for more information.\r\n\r\n2. The microservices API are not fetched in Swagger, you get `Can't read from server. It may not have the appropriate access-control-origin settings.`\r\n\r\n```\r\n##### **Motivation for or Use Case**\r\n\r\nSetup should work OOB\r\n\r\n##### **Reproduce the error**\r\nDo below steps or clone https://github.com/xebialabs/e-commerce-microservice and build images and run `docker-compose up`\r\n1. create below app configs\r\n2. Generate docker compose sub gen\r\n3. do a `docker-compose up` and try to access mentioned apps/pages\r\n\r\n##### **Related issues**\r\n\r\nProbabaly related to #8145 \r\n\r\n\r\n##### **JHipster Version(s)**\r\n\r\nmaster\r\n\r\n##### **JHipster configuration**\r\n\r\nI havent removed the JWT keys, since its a demo app\r\n\r\n#######  Gateway\r\n\r\n```\r\n\r\n{\r\n  \"generator-jhipster\": {\r\n    \"promptValues\": {\r\n      \"packageName\": \"com.xebialabs.store\",\r\n      \"nativeLanguage\": \"en\"\r\n    },\r\n    \"jhipsterVersion\": \"5.3.1\",\r\n    \"applicationType\": \"gateway\",\r\n    \"baseName\": \"store\",\r\n    \"packageName\": \"com.xebialabs.store\",\r\n    \"packageFolder\": \"com/xebialabs/store\",\r\n    \"serverPort\": \"8080\",\r\n    \"authenticationType\": \"jwt\",\r\n    \"cacheProvider\": \"hazelcast\",\r\n    \"enableHibernateCache\": true,\r\n    \"websocket\": false,\r\n    \"databaseType\": \"sql\",\r\n    \"devDatabaseType\": \"h2Disk\",\r\n    \"prodDatabaseType\": \"mysql\",\r\n    \"searchEngine\": false,\r\n    \"messageBroker\": false,\r\n    \"serviceDiscoveryType\": \"eureka\",\r\n    \"buildTool\": \"gradle\",\r\n    \"enableSwaggerCodegen\": false,\r\n    \"jwtSecretKey\": \"bXktc2VjcmV0LXRva2VuLXRvLWNoYW5nZS1pbi1wcm9kdWN0aW9uLWFuZC10by1rZWVwLWluLWEtc2VjdXJlLXBsYWNl\",\r\n    \"clientFramework\": \"react\",\r\n    \"useSass\": true,\r\n    \"clientPackageManager\": \"npm\",\r\n    \"testFrameworks\": [\r\n      \"protractor\"\r\n    ],\r\n    \"jhiPrefix\": \"jhi\",\r\n    \"enableTranslation\": true,\r\n    \"nativeLanguage\": \"en\",\r\n    \"languages\": [\r\n      \"en\",\r\n      \"nl\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n###### MS 1\r\n\r\n```\r\n{\r\n  \"generator-jhipster\": {\r\n    \"promptValues\": {\r\n      \"packageName\": \"com.xebialabs.notification\",\r\n      \"nativeLanguage\": \"en\"\r\n    },\r\n    \"jhipsterVersion\": \"5.3.1\",\r\n    \"applicationType\": \"microservice\",\r\n    \"baseName\": \"notification\",\r\n    \"packageName\": \"com.xebialabs.notification\",\r\n    \"packageFolder\": \"com/xebialabs/notification\",\r\n    \"serverPort\": \"8082\",\r\n    \"authenticationType\": \"jwt\",\r\n    \"cacheProvider\": \"no\",\r\n    \"enableHibernateCache\": false,\r\n    \"websocket\": false,\r\n    \"databaseType\": \"mongodb\",\r\n    \"devDatabaseType\": \"mongodb\",\r\n    \"prodDatabaseType\": \"mongodb\",\r\n    \"searchEngine\": false,\r\n    \"messageBroker\": false,\r\n    \"serviceDiscoveryType\": \"eureka\",\r\n    \"buildTool\": \"gradle\",\r\n    \"enableSwaggerCodegen\": false,\r\n    \"jwtSecretKey\": \"NTdlMTRhNzU4YTQ5MDQ0NDczMjJiZjVkM2UwNWI3N2VkZWNiMWI5YzlhZWQyYzlhZGI1Yzk3MDZkZDA2MGIwOWJjNmQxMTYwOWZkM2Y0MzgwYjc4YzIxOWFmNWU1NDBiOTUzMzZkNTNmYmNlMTkzY2RlNjA2Y2JjZWNlMzUwNTc=\",\r\n    \"enableTranslation\": true,\r\n    \"testFrameworks\": [],\r\n    \"jhiPrefix\": \"jhi\",\r\n    \"clientPackageManager\": \"npm\",\r\n    \"nativeLanguage\": \"en\",\r\n    \"languages\": [\r\n      \"en\",\r\n      \"nl\"\r\n    ],\r\n    \"skipClient\": true,\r\n    \"skipUserManagement\": true\r\n  }\r\n}\r\n```\r\n\r\n###### MS 2\r\n\r\n```\r\n{\r\n  \"generator-jhipster\": {\r\n    \"promptValues\": {\r\n      \"packageName\": \"com.xebialabs.invoice\",\r\n      \"nativeLanguage\": \"en\"\r\n    },\r\n    \"jhipsterVersion\": \"5.3.1\",\r\n    \"applicationType\": \"microservice\",\r\n    \"baseName\": \"invoice\",\r\n    \"packageName\": \"com.xebialabs.invoice\",\r\n    \"packageFolder\": \"com/xebialabs/invoice\",\r\n    \"serverPort\": \"8081\",\r\n    \"authenticationType\": \"jwt\",\r\n    \"cacheProvider\": \"hazelcast\",\r\n    \"enableHibernateCache\": true,\r\n    \"websocket\": false,\r\n    \"databaseType\": \"sql\",\r\n    \"devDatabaseType\": \"h2Disk\",\r\n    \"prodDatabaseType\": \"mysql\",\r\n    \"searchEngine\": false,\r\n    \"messageBroker\": false,\r\n    \"serviceDiscoveryType\": \"eureka\",\r\n    \"buildTool\": \"gradle\",\r\n    \"enableSwaggerCodegen\": false,\r\n    \"jwtSecretKey\": \"ZTk4MjZjYjg5ODE0NTJlODFiNTlmOTJmZWNkNmY0MTFhYTQ3M2IxYzFkNTMyYmI3MTg0MWNlNDdkYjFlZTAwNzQ2NTBjZGJlZjkyMjYzODhjNWMxY2NiMDEwYTQ5MDM3Y2Y2NTAzOGRhZmFkNDYzZjcyMDIxZDA4ZDEyMzE0ZGQ=\",\r\n    \"enableTranslation\": true,\r\n    \"testFrameworks\": [],\r\n    \"jhiPrefix\": \"jhi\",\r\n    \"clientPackageManager\": \"npm\",\r\n    \"nativeLanguage\": \"en\",\r\n    \"languages\": [\r\n      \"en\",\r\n      \"nl\"\r\n    ],\r\n    \"skipClient\": true,\r\n    \"skipUserManagement\": true\r\n  }\r\n}\r\n```\r\n\r\n######  Docker compose\r\n```\r\n{\r\n  \"generator-jhipster\": {\r\n    \"appsFolders\": [\r\n      \"invoice\",\r\n      \"notification\",\r\n      \"online-store\"\r\n    ],\r\n    \"directoryPath\": \"../\",\r\n    \"gatewayType\": \"zuul\",\r\n    \"clusteredDbApps\": [],\r\n    \"monitoring\": \"elk\",\r\n    \"consoleOptions\": [],\r\n    \"serviceDiscoveryType\": \"eureka\",\r\n    \"adminPassword\": \"admin\",\r\n    \"jwtSecretKey\": \"YTI0ZDdiZDgzOGY3YzlhOGE3YmU4M2M0MDk4YTg1ODM5ZTYyMWQyMDI5MTA5NTcxMjc3MTMyZWExMjU1MWY3ZmYzMGVkNGYyY2E3ZGM5NTY4MWE3M2JmODExOTU2NDhiNGZmYg==\"\r\n  }\r\n}\r\n```\r\n\r\n\r\n##### **Browsers and Operating System**\r\n\r\nChrome on Linux (Fedora 28)\r\n\r\n- [ ] Checking this box is mandatory (this is just to show you read everything)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/420671100","html_url":"https://github.com/jhipster/generator-jhipster/issues/8301#issuecomment-420671100","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8301","id":420671100,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDY3MTEwMA==","user":{"login":"jdubois","id":316835,"node_id":"MDQ6VXNlcjMxNjgzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/316835?v=4","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T14:33:50Z","updated_at":"2018-09-12T14:33:50Z","author_association":"MEMBER","body":"I can't reproduce for the moment, that's so weird :-("}}
{"actor":{"display_login":"jdubois"}}