congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Security.getApiSecurity
Code IndexAdd Tabnine to your IDE (free)

How to use
getApiSecurity
method
in
com.netflix.spinnaker.halyard.config.model.v1.security.Security

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.security.Security.getApiSecurity (Showing top 18 results out of 315)

origin: spinnaker/halyard

GateConfig(ServiceSettings gate, Security security) {
 super(gate);
 server.ssl = security.getApiSecurity().getSsl();
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

GateConfig(ServiceSettings gate, Security security) {
 super(gate);
 server.ssl = security.getApiSecurity().getSsl();
}
origin: spinnaker/halyard

@Override
public ServiceSettings defaultServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity(), getActiveSpringProfiles(deploymentConfiguration));
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public ServiceSettings defaultServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity(), getActiveSpringProfiles(deploymentConfiguration));
}
origin: spinnaker/halyard

 @Override
 public void validate(ConfigProblemSetBuilder p, Security n) {
  DeploymentConfiguration deploymentConfiguration = n.parentOfType(DeploymentConfiguration.class);

  boolean localhostAccess = StringUtils.isEmpty(n.getApiSecurity().getOverrideBaseUrl())
    || StringUtils.isEmpty(n.getUiSecurity().getOverrideBaseUrl()) ;
  switch (deploymentConfiguration.getDeploymentEnvironment().getType()) {
   case Distributed:
    if (localhostAccess) {
     p.addProblem(Problem.Severity.WARNING, "Your UI or API domain does not have override base URLs set "
       + "even though your Spinnaker deployment is a Distributed deployment on a remote cloud provider. "
       + "As a result, you will need to open SSH tunnels against that deployment to access Spinnaker.")
       .setRemediation("We recommend that you instead configure an authentication mechanism (OAuth2, SAML2, or x509) "
         + "to make it easier to access Spinnaker securely, and then register the intended Domain and IP addresses "
         + "that your publicly facing services will be using."); // TODO(lwander) point to a guide here
    }
    break;
   case LocalDebian:
    break;
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setEnabled(true);
}
origin: spinnaker/halyard

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setEnabled(true);
}
origin: com.netflix.spinnaker.halyard/halyard-config

 @Override
 public void validate(ConfigProblemSetBuilder p, Security n) {
  DeploymentConfiguration deploymentConfiguration = n.parentOfType(DeploymentConfiguration.class);

  boolean localhostAccess = StringUtils.isEmpty(n.getApiSecurity().getOverrideBaseUrl())
    || StringUtils.isEmpty(n.getUiSecurity().getOverrideBaseUrl()) ;
  switch (deploymentConfiguration.getDeploymentEnvironment().getType()) {
   case Distributed:
    if (localhostAccess) {
     p.addProblem(Problem.Severity.WARNING, "Your UI or API domain does not have override base URLs set "
       + "even though your Spinnaker deployment is a Distributed deployment on a remote cloud provider. "
       + "As a result, you will need to open SSH tunnels against that deployment to access Spinnaker.")
       .setRemediation("We recommend that you instead configure an authentication mechanism (OAuth2, SAML2, or x509) "
         + "to make it easier to access Spinnaker securely, and then register the intended Domain and IP addresses "
         + "that your publicly facing services will be using."); // TODO(lwander) point to a guide here
    }
    break;
   case LocalDebian:
    break;
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 public Settings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
  Settings settings = new Settings(deploymentConfiguration.getSecurity().getApiSecurity());
  settings.setArtifactId(getArtifactId(deploymentConfiguration.getName()))
    .setLocation("us-central1-f")
    .setEnabled(true);
  return settings;
 }
}
origin: spinnaker/halyard

 @Override
 public Settings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
  Settings settings = new Settings(deploymentConfiguration.getSecurity().getApiSecurity());
  settings.setArtifactId(getArtifactId(deploymentConfiguration.getName()))
    .setLocation("us-central1-f")
    .setEnabled(true);
  return settings;
 }
}
origin: spinnaker/halyard

@Override
public void setProfile(Profile profile,
  DeploymentConfiguration deploymentConfiguration,
  SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 Security security = deploymentConfiguration.getSecurity();
 List<String> requiredFiles = backupRequiredFiles(security.getApiSecurity(), deploymentConfiguration.getName());
 requiredFiles.addAll(backupRequiredFiles(security.getAuthn(), deploymentConfiguration.getName()));
 requiredFiles.addAll(backupRequiredFiles(security.getAuthz(), deploymentConfiguration.getName()));
 GateConfig gateConfig = getGateConfig(endpoints.getServiceSettings(Type.GATE), security);
 gateConfig.getCors().setAllowedOriginsPattern(security.getApiSecurity());
 profile.appendContents(yamlToString(gateConfig))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(requiredFiles);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public void setProfile(Profile profile,
  DeploymentConfiguration deploymentConfiguration,
  SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 Security security = deploymentConfiguration.getSecurity();
 List<String> requiredFiles = backupRequiredFiles(security.getApiSecurity(), deploymentConfiguration.getName());
 requiredFiles.addAll(backupRequiredFiles(security.getAuthn(), deploymentConfiguration.getName()));
 requiredFiles.addAll(backupRequiredFiles(security.getAuthz(), deploymentConfiguration.getName()));
 GateConfig gateConfig = getGateConfig(endpoints.getServiceSettings(Type.GATE), security);
 gateConfig.getCors().setAllowedOriginsPattern(security.getApiSecurity());
 profile.appendContents(yamlToString(gateConfig))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(requiredFiles);
}
origin: spinnaker/halyard

@Override
public Settings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 KubernetesSharedServiceSettings kubernetesSharedServiceSettings = new KubernetesSharedServiceSettings(deploymentConfiguration);
 Settings settings = new Settings(deploymentConfiguration.getSecurity().getApiSecurity());
 settings.setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setLocation(kubernetesSharedServiceSettings.getDeployLocation())
   .setEnabled(true);
 return settings;
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public Settings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 KubernetesSharedServiceSettings kubernetesSharedServiceSettings = new KubernetesSharedServiceSettings(deploymentConfiguration);
 Settings settings = new Settings(deploymentConfiguration.getSecurity().getApiSecurity());
 settings.setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setLocation(kubernetesSharedServiceSettings.getDeployLocation())
   .setEnabled(true);
 return settings;
}
origin: spinnaker/halyard

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: spinnaker/halyard

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
com.netflix.spinnaker.halyard.config.model.v1.securitySecuritygetApiSecurity

Popular methods of Security

  • getAuthn
  • getAuthz
  • getUiSecurity
  • parentOfType
  • setApiSecurity
  • setAuthn
  • setAuthz
  • setUiSecurity

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JFileChooser (javax.swing)
  • Join (org.hibernate.mapping)
  • Option (scala)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now