Skip to content

1.6 broken json config #3938

@kfox1111

Description

@kfox1111

This config works under 1.5.4 but under 1.6.0 now throws:

plugin item expected to have two keys (type then name)

config:

{
  "health_checks": {
    "bind_address": "0.0.0.0",
    "bind_port": "8080",
    "listener_enabled": true,
    "live_path": "/live",
    "ready_path": "/ready"
  },
  "plugins": {
    "DataStore": [
      {
        "sql": [
          {
            "plugin_data": [
              {
                "connection_string": "/run/spire/data/datastore.sqlite3",
                "database_type": "sqlite3"
              }
            ]
          }
        ]
      }
    ],
    "KeyManager": [
      {
        "disk": [
          {
            "plugin_data": [
              {
                "keys_path": "/run/spire/data/keys.json"
              }
            ]
          }
        ]
      }
    ],
    "NodeAttestor": [
      {
        "k8s_psat": [
          {
            "plugin_data": [
              {
                "clusters": [
                  {
                    "example-cluster": [
                      {
                        "service_account_allow_list": [
                          "default:spire-1234-agent"
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "Notifier": [
      {
        "k8sbundle": [
          {
            "plugin_data": {
              "config_map": "spire-bundle",
              "namespace": "default"
            }
          }
        ]
      }
    ]
  },
  "server": {
    "bind_address": "0.0.0.0",
    "bind_port": "8081",
    "ca_key_type": "rsa-2048",
    "ca_subject": [
      {
        "common_name": "example.org",
        "country": [
          "NL"
        ],
        "organization": [
          "Example"
        ]
      }
    ],
    "data_dir": "/run/spire/data",
    "default_jwt_svid_ttl": "1h",
    "default_x509_svid_ttl": "1h",
    "jwt_issuer": "oidc-discovery.example.org",
    "log_level": "info",
    "trust_domain": "example.org"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/urgentIssue is approved and is must be completed in the assigned milestone

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions