This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020/08/29 16:07:45 [WARN] Provider "registry.terraform.io/-/aws" produced an invalid plan for module.web.aws_ecs_task_definition.fargate, but we are tolerating it because it is using the legacy plugin SDK. | |
The following problems may be the cause of any confusing errors from downstream operations: | |
- .container_definitions: planned value cty.StringVal("[{\"command\":[],\"cpu\":0,\"environment\":[{\"name\":\"app.api.url\",\"value\":\"https://redacted\"},{\"name\":\"app.bucket.list-bucket\",\"value\":\"redacted-staging-us-west-2\"},{\"name\":\"app.bucket.website\",\"value\":\"redacted-public-bucket-staging-us-west-2\"},{\"name\":\"app.email.provider\",\"value\":\"sendgrid\"},{\"name\":\"app.google.analytics_code\",\"value\":\"none\"},{\"name\":\"app.googlemaps.key\",\"value\":\"redacted\"},{\"name\":\"app.job-queue\",\"value\":\"redacted-staging-us-west-2\"},{\"name\":\"app.stripe.publishable_key\",\"value\":\"redacted\"},{\"name\":\"app.subscription-queue\",\"value\":\"redacted-staging-us-west-2\"},{\"n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"command":[null],"cpu":0,"environment":[{"name":"spring.datasource.url","value":"jdbc:mysql://redacted-staging-us-west-2.cluster-redacted.us-west-2.rds.amazonaws.com/redacted"},{"name":"spring.datasource.username","value":"redacted"},{"name":"spring.datasource.driverClassName","value":"com.mysql.cj.jdbc.Driver"},{"name":"spring.jpa.hibernate.ddl-auto","value":"none"},{"name":"app.api.url","value":"https://redacted.staging.redacted.com"},{"name":"app.job-queue","value":"redacted-staging-us-west-2"},{"name":"app.subscription-queue","value":"redacted-staging-us-west-2"},{"name":"app.tags-queue","value":"redacted-staging-us-west-2"},{"name":"app.email.provider","value":"sendgrid"},{"name":"app.bucket.website","value":"redacted-public-bucket-staging-us-west-2"},{"name":"app.bucket.list-bucket","value":"redacted-list-bucket-staging-us-west-2"},{"name":"app.stripe.publishable_key","value":"redacted"},{"name":"app.googlemaps.key","value":"redacted"},{"name":"security.require-ssl","value":"true"},{"name":"server.tom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Documented | |
@Constraint(validatedBy = CronExpressionValidator.class) | |
@Target( {ElementType.METHOD, ElementType.FIELD }) | |
@Retention(RetentionPolicy.RUNTIME) | |
public @interface CronExpressionConstraint { | |
String message() default "Invalid cron expression"; | |
Class<?>[] groups() default {}; | |
Class<? extends Payload>[] payload() default {}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CronExpressionValidator implements ConstraintValidator<CronExpressionConstraint, String> { | |
private final String REGEX = "^\\s*($|#|\\w+\\s*=|(\\?|\\*|(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?(?:,(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?)*)\\s+(\\?|\\*|(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?(?:,(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?)*)\\s+(\\?|\\*|(?:[01]?\\d|2[0-3])(?:(?:-|\\/|\\,)(?:[01]?\\d|2[0-3]))?(?:,(?:[01]?\\d|2[0-3])(?:(?:-|\\/|\\,)(?:[01]?\\d|2[0-3]))?)*)\\s+(\\?|\\*|(?:0?[1-9]|[12]\\d|3[01])(?:(?:-|\\/|\\,)(?:0?[1-9]|[12]\\d|3[01]))?(?:,(?:0?[1-9]|[12]\\d|3[01])(?:(?:-|\\/|\\,)(?:0?[1-9]|[12]\\d|3[01]))?)*)\\s+(\\?|\\*|(?:[1-9]|1[012])(?:(?:-|\\/|\\,)(?:[1-9]|1[012]))?(?:L|W)?(?:,(?:[1-9]|1[012])(?:(?:-|\\/|\\,)(?:[1-9]|1[012]))?(?:L|W)?)*|\\?|\\*|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(?:(?:-)(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?(?:,(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(?:(?:-)(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
storage "file" { | |
path = "/var/vault" | |
} | |
listener "tcp" { | |
address = "$public_or_private_address:8200" | |
tls_cert_file = "/path/to/server.crt" | |
tls_key_file = "/path/to/certs/server.key" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=vault server | |
[Service] | |
Restart=on-failure | |
ExecStart=/usr/local/bin/vault server $OPTIONS -config=/etc/vault.conf | |
ExecStop=/usr/local/bin/vault step-down | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function signuserin() { | |
var username = document.getElementById("username").value; | |
var password = document.getElementById("password").value; | |
jQuery.ajax({ | |
"type": "POST", | |
"url": "https://auth.domain.com/api/auth", | |
"contentType": "application/json", | |
"data": JSON.stringify({username : username, password : password}), |