Skip to content

Instantly share code, notes, and snippets.

@jficz
Created August 2, 2022 14:48
Show Gist options
  • Save jficz/5ed5b151d590d66db2b8f7d1036ffb29 to your computer and use it in GitHub Desktop.
Save jficz/5ed5b151d590d66db2b8f7d1036ffb29 to your computer and use it in GitHub Desktop.
{
"level": "info",
"timestamp": "2022-08-02T14:33:54.682605132Z",
"caller": "kubernetes-kms-vault/main.go:74",
"msg": "Starting VaultEncryptionServiceServer service",
"version": "dev",
"buildDate": ""
}
{
"level": "Level(-2)",
"timestamp": "2022-08-02T14:33:54.68298186Z",
"caller": "config/config.go:20",
"msg": "Populating AppConfig...",
"path": "/opt/trousseau/config.yaml"
}
{
"level": "info",
"timestamp": "2022-08-02T14:33:54.684614594Z",
"caller": "kubernetes-kms-vault/main.go:107",
"msg": "Listening for connections",
"address": "/opt/kube-kms/vaultkms.socket"
}
{
"level": "Level(-3)",
"timestamp": "2022-08-02T14:33:54.684779233Z",
"caller": "server/health.go:33",
"msg": "Initialize health check\n"
}
{
"level": "info",
"timestamp": "2022-08-02T14:33:54.685207034Z",
"caller": "metrics/exporter.go:17",
"msg": "Metrics backend",
"exporter": "prometheus"
}
{
"level": "info",
"timestamp": "2022-08-02T14:33:54.685503916Z",
"caller": "metrics/prometheus_exporter.go:26",
"msg": "Prometheus metrics server starting",
"address": "8095"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:01.510922334Z",
"caller": "encrypt/vault.go:202",
"msg": "Failed to send request",
"code": 403,
"error": "Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/encrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:01.511277198Z",
"caller": "encrypt/vault.go:285",
"msg": "Failed to encrypt locked",
"key": "kube-ktest-kms",
"error": "forbidden error Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/encrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:01.517700932Z",
"caller": "encrypt/vault.go:202",
"msg": "Failed to send request",
"code": 403,
"error": "Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/decrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:01.518319725Z",
"caller": "encrypt/vault.go:305",
"msg": "Failed to decrypt locked",
"error": "forbidden error Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/decrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "error",
"timestamp": "2022-08-02T14:43:01.518453484Z",
"caller": "server/health.go:85",
"msg": "Encryption failed",
"original": "healthcheck",
"decrypted": "",
"error": "failed to properly decrypt encrypted data",
"stacktrace": "github.com/ondat/trousseau/internal/server.(*HealthZ).ServeHTTP\n\t/work/internal/server/health.go:85\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2084\nnet/http.(*ServeMux).ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2462\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2916\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1966"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:11.512855215Z",
"caller": "encrypt/vault.go:202",
"msg": "Failed to send request",
"code": 403,
"error": "Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/encrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:11.512968765Z",
"caller": "encrypt/vault.go:285",
"msg": "Failed to encrypt locked",
"key": "kube-ktest-kms",
"error": "forbidden error Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/encrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:11.518978669Z",
"caller": "encrypt/vault.go:202",
"msg": "Failed to send request",
"code": 403,
"error": "Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/decrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:11.519379752Z",
"caller": "encrypt/vault.go:305",
"msg": "Failed to decrypt locked",
"error": "forbidden error Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/decrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "error",
"timestamp": "2022-08-02T14:43:11.520106456Z",
"caller": "server/health.go:85",
"msg": "Encryption failed",
"original": "healthcheck",
"decrypted": "",
"error": "failed to properly decrypt encrypted data",
"stacktrace": "github.com/ondat/trousseau/internal/server.(*HealthZ).ServeHTTP\n\t/work/internal/server/health.go:85\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2084\nnet/http.(*ServeMux).ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2462\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2916\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1966"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:21.51299135Z",
"caller": "encrypt/vault.go:202",
"msg": "Failed to send request",
"code": 403,
"error": "Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/encrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:21.513063187Z",
"caller": "encrypt/vault.go:285",
"msg": "Failed to encrypt locked",
"key": "kube-ktest-kms",
"error": "forbidden error Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/encrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:21.519961245Z",
"caller": "encrypt/vault.go:202",
"msg": "Failed to send request",
"code": 403,
"error": "Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/decrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:21.520004593Z",
"caller": "encrypt/vault.go:305",
"msg": "Failed to decrypt locked",
"error": "forbidden error Error making API request.\n\nURL: POST https://vault-server:8200/v1/transit/decrypt/kube-ktest-kms\nCode: 403. Errors:\n\n* permission denied"
}
{
"level": "error",
"timestamp": "2022-08-02T14:43:21.520032866Z",
"caller": "server/health.go:85",
"msg": "Encryption failed",
"original": "healthcheck",
"decrypted": "",
"error": "failed to properly decrypt encrypted data",
"stacktrace": "github.com/ondat/trousseau/internal/server.(*HealthZ).ServeHTTP\n\t/work/internal/server/health.go:85\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2084\nnet/http.(*ServeMux).ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2462\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2916\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1966"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:21.545692343Z",
"caller": "kubernetes-kms-vault/main.go:156",
"msg": "Received shutdown signal\n"
}
{
"level": "info",
"timestamp": "2022-08-02T14:43:21.545905743Z",
"caller": "kubernetes-kms-vault/main.go:139",
"msg": "Terminating the server\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment