ServerConfig(ServiceSettings service) { port = Integer.toString(service.getPort()); address = service.getHost(); } }
ServerConfig(ServiceSettings service) { port = Integer.toString(service.getPort()); address = service.getHost(); } }
@Override protected Map<String, Object> getBindings(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { Map<String, Object> bindings = new HashMap<>(); bindings.put("deck-host", endpoints.getServiceSettings(Type.DECK).getHost()); bindings.put("deck-port", endpoints.getServiceSettings(Type.DECK).getPort() + ""); return bindings; }
@Override protected Map<String, Object> getBindings(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { Map<String, Object> bindings = new HashMap<>(); bindings.put("deck-host", endpoints.getServiceSettings(Type.DECK).getHost()); bindings.put("deck-port", endpoints.getServiceSettings(Type.DECK).getPort() + ""); return bindings; }
@Override protected Map<String, Object> getBindings(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { TemplatedResource resource = new StringResource(SSL_TEMPLATE); Map<String, Object> bindings = new HashMap<>(); UiSecurity uiSecurity = deploymentConfiguration.getSecurity().getUiSecurity(); ApacheSsl apacheSsl = uiSecurity.getSsl(); bindings.put("cert-file", apacheSsl.getSslCertificateFile()); bindings.put("key-file", apacheSsl.getSslCertificateKeyFile()); String ssl = resource.setBindings(bindings).toString(); bindings.clear(); bindings.put("ssl", ssl); bindings.put("deck-host", endpoints.getServiceSettings(Type.DECK).getHost()); bindings.put("deck-port", endpoints.getServiceSettings(Type.DECK).getPort() + ""); return bindings; }
@Override protected Map<String, Object> getBindings(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { TemplatedResource resource = new StringResource(SSL_TEMPLATE); Map<String, Object> bindings = new HashMap<>(); UiSecurity uiSecurity = deploymentConfiguration.getSecurity().getUiSecurity(); ApacheSsl apacheSsl = uiSecurity.getSsl(); bindings.put("cert-file", apacheSsl.getSslCertificateFile()); bindings.put("key-file", apacheSsl.getSslCertificateKeyFile()); String ssl = resource.setBindings(bindings).toString(); bindings.clear(); bindings.put("ssl", ssl); bindings.put("deck-host", endpoints.getServiceSettings(Type.DECK).getHost()); bindings.put("deck-port", endpoints.getServiceSettings(Type.DECK).getPort() + ""); return bindings; }
public SlimServiceSettings slim() { return new SlimServiceSettings(getHost(), getPort(), getBaseUrl(), getEnabled()); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); ServiceSettings deckSettings = endpoints.getServiceSettings(Type.DECK); ServiceSettings gateSettings = endpoints.getServiceSettings(Type.GATE); ApacheSsl apacheSsl= deploymentConfiguration.getSecurity().getUiSecurity().getSsl(); Map<String, String> env = profile.getEnv(); if (apacheSsl.isEnabled()) { env.put("DECK_HOST", deckSettings.getHost()); env.put("DECK_PORT", deckSettings.getPort() + ""); env.put("API_HOST", gateSettings.getBaseUrl()); env.put("DECK_CERT", apacheSsl.getSslCertificateFile()); env.put("DECK_KEY", apacheSsl.getSslCertificateKeyFile()); env.put("PASSPHRASE", apacheSsl.getSslCertificatePassphrase()); } env.put("AUTH_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthn().isEnabled())); env.put("FIAT_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled())); } }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); ServiceSettings deckSettings = endpoints.getServiceSettings(Type.DECK); ServiceSettings gateSettings = endpoints.getServiceSettings(Type.GATE); ApacheSsl apacheSsl= deploymentConfiguration.getSecurity().getUiSecurity().getSsl(); Map<String, String> env = profile.getEnv(); if (apacheSsl.isEnabled()) { env.put("DECK_HOST", deckSettings.getHost()); env.put("DECK_PORT", deckSettings.getPort() + ""); env.put("API_HOST", gateSettings.getBaseUrl()); env.put("DECK_CERT", apacheSsl.getSslCertificateFile()); env.put("DECK_KEY", apacheSsl.getSslCertificateKeyFile()); env.put("PASSPHRASE", apacheSsl.getSslCertificatePassphrase()); } env.put("AUTH_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthn().isEnabled())); env.put("FIAT_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled())); } }
.setHost(monitoringService.getHost()) .setPort(monitoringService.getPort());
.setHost(monitoringService.getHost()) .setPort(monitoringService.getPort());