본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

ACME 정책 구성 참조

원문 보기 위키 갱신

ACME 정책 구성 참조 (ACME Policy Configuration Reference)

이 문서는 Kong의 ACME 정책에서 설정할 수 있는 모든 구성 옵션을 항목별로 정리한 참조 자료예요. ACME는 Let's Encrypt 같은 인증 기관으로부터 TLS 인증서를 자동으로 발급하고 갱신받는 프로토콜인데요. 계정 이메일, RSA 키 크기, 인증서 유형, 도메인 목록, 인증서 갱신 임계일 같은 각 필드의 자료형과 기본값, 암호화 여부까지 한눈에 확인할 수 있어요. ACME 정책을 처음 구성하거나 세부 값을 조정할 때 이 참조를 옆에 두고 따라가면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "account_email": {
          "type": "string",
          "description": "The account identifier. Can be reused in a different policy instance.",
          "x-referenceable": true,
          "x-encrypted": true
        },
        "rsa_key_size": {
          "type": "integer",
          "enum": [
            2048,
            3072,
            4096
          ],
          "description": "RSA private key size for the certificate. The possible values are 2048, 3072, or 4096.",
          "default": 4096
        },
        "domains": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of strings representing hosts. A valid host is a string containing one or more labels separated by periods, with at most one wildcard label ('*')"
        },
        "cert_type": {
          "type": "string",
          "enum": [
            "ecc",
            "rsa"
          ],
          "description": "The certificate type to create. The possible values are `rsa` for RSA certificate or `ecc` for EC certificate.",
          "default": "rsa"
        },
        "enable_ipv4_common_name": {
          "type": "boolean",
          "description": "A boolean value that controls whether to include the IPv4 address in the common name field of generated certificates.",
          "default": true
        },
        "account_key": {
          "type": "object",
          "properties": {
            "key_id": {
              "type": "string",
              "description": "The Key ID.",
              "x-encrypted": true
            },
            "key_set": {
              "type": "string",
              "description": "The name of the key set to associate the Key ID with.",
              "x-encrypted": true
            }
          },
          "required": [
            "key_id"
          ],
          "description": "The private key associated with the account."
        },
        "eab_kid": {
          "type": "string",
          "description": "External account binding (EAB) key id. You usually don't need to set this unless it is explicitly required by the CA.",
          "x-referenceable": true,
          "x-encrypted": true
        },
        "eab_hmac_key": {
          "type": "string",
          "description": "External account binding (EAB) base64-encoded URL string of the HMAC key. You usually don't need to set this unless it is explicitly required by the CA.",
          "x-referenceable": true,
          "x-encrypted": true
        },
        "renew_threshold_days": {
          "type": "number",
          "description": "Days remaining to renew the certificate before it expires.",
          "default": 14
        },
        "storage": {
          "type": "string",
          "enum": [
            "consul",
            "kong",
            "redis",
            "shm",
            "vault"
          ],
          "description": "The backend storage type to use. In DB-less mode and Konnect, `kong` storage is unavailable. In hybrid mode and Konnect, `shm` storage is unavailable. `shm` storage does not persist during Kong restarts and does not work for Kong running on different machines, so consider using one of `kong`, `redis`, `consul`, or `vault` in production.",
          "default": "shm"
        },
        "api_uri": {
          "type": "string",
          "description": "A string representing a URL, such as https://example.com/path/to/resource?q=search.",
          "default": "https://acme-v02.api.letsencrypt.org/directory"
        },
        "tos_accepted": {
          "type": "boolean",
          "description": "If you are using Let's Encrypt, you must set this to `true` to agree the terms of service.",
          "default": false
        },
        "allow_any_domain": {
          "type": "boolean",
          "description": "If set to `true`, the policy allows all domains and ignores any values in the `domains` list.",
          "default": false
        },
        "fail_backoff_minutes": {
          "type": "number",
          "description": "Minutes to wait for each domain that fails to create a certificate. This applies to both a\nnew certificate and a renewal certificate.",
          "default": 5
        },
        "storage_config": {
          "type": "object",
          "properties": {
            "redis": {
              "type": "object",
              "properties": {
                "password": {
                  "type": "string",
                  "description": "Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis.",
                  "x-referenceable": true,
                  "x-encrypted": true
                },
                "cloud_authentication": {
                  "type": "object",
                  "properties": {
                    "aws_is_serverless": {
                      "type": "boolean",
                      "description": "This flag specifies whether the cluster is serverless when auth_provider is set to `aws`.",
                      "default": true
                    },
                    "gcp_service_account_json": {
                      "type": "string",
                      "description": "GCP Service Account JSON to be used for authentication when `auth_provider` is set to `gcp`.",
                      "x-referenceable": true,
                      "x-encrypted": true
                    },
                    "azure_client_id": {
                      "type": "string",
                      "description": "Azure Client ID to be used for authentication when `auth_provider` is set to `azure`.",
                      "x-referenceable": true,
                      "x-encrypted": true
                    },
                    "auth_provider": {
                      "type": "string",
                      "enum": [
                        "aws",
                        "azure",
                        "gcp"
                      ],
                      "description": "Auth providers to be used to authenticate to a Cloud Provider's Redis instance.",
                      "x-referenceable": true
                    },
                    "aws_access_key_id": {
                      "type": "string",
                      "description": "AWS Access Key ID to be used for authentication when `auth_provider` is set to `aws`.",
                      "x-referenceable": true,
                      "x-encrypted": true
                    },
                    "aws_secret_access_key": {
                      "type": "string",
                      "description": "AWS Secret Access Key to be used for authentication when `auth_provider` is set to `aws`.",
                      "x-encrypted": true,
                      "x-referenceable": true
                    },
                    "aws_assume_role_arn": {
                      "type": "string",
                      "description": "The ARN of the IAM role to assume for generating ElastiCache IAM authentication tokens.",
                      "x-referenceable": true,
                      "x-encrypted": true
                    },
                    "aws_role_session_name": {
                      "type": "string",
                      "description": "The session name for the temporary credentials when assuming the IAM role.",
                      "x-referenceable": true,
                      "x-encrypted": true
                    },
                    "azure_client_secret": {
                      "type": "string",
                      "description": "Azure Client Secret to be used for authentication when `auth_provider` is set to `azure`.",
                      "x-referenceable": true,
                      "x-encrypted": true
                    },
                    "azure_tenant_id": {
                      "type": "string",
                      "description": "Azure Tenant ID to be used for authentication when `auth_provider` is set to `azure`.",
                      "x-referenceable": true,
                      "x-encrypted": true
                    },
                    "aws_cache_name": {
                      "type": "string",
                      "description": "The name of the AWS Elasticache cluster when `auth_provider` is set to `aws`.",
                      "x-referenceable": true
                    },
                    "aws_region": {
                      "type": "string",
                      "description": "The region of the AWS ElastiCache cluster when `auth_provider` is set to `aws`.",
                      "x-referenceable": true
                    }
                  },
                  "description": "Cloud auth related configs for connecting to a Cloud Provider's Redis instance."
                },
                "database": {
                  "type": "integer",
                  "description": "Database to use for the Redis connection when using the `redis` strategy",
                  "default": 0
                },
                "ssl": {
                  "type": "boolean",
                  "description": "If set to true, uses SSL to connect to Redis.",
                  "default": false
                },
                "ssl_verify": {
                  "type": "boolean",
                  "description": "If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.",
                  "default": true
                },
                "host": {
                  "type": "string",
                  "description": "A string representing a host name, such as example.com.",
                  "x-referenceable": true
                },
                "server_name": {
                  "type": "string",
                  "description": "A string representing an SNI (server name indication) value for TLS.",
                  "x-referenceable": true
                },
                "extra_options": {
                  "type": "object",
                  "properties": {
                    "namespace": {
                      "type": "string",
                      "description": "A namespace to prepend to all keys stored in Redis.",
                      "default": ""
                    },
                    "scan_count": {
                      "type": "number",
                      "description": "The number of keys to return in Redis SCAN calls.",
                      "default": 10
                    }
                  },
                  "description": "Custom ACME Redis options"
                },
                "port": {
                  "type": "integer",
                  "maximum": 65535,
                  "minimum": 0,
                  "description": "An integer representing a port number between 0 and 65535, inclusive.",
                  "default": 6379,
                  "x-referenceable": true
                },
                "timeout": {
                  "type": "integer",
                  "maximum": 2147483646,
                  "minimum": 0,
                  "description": "An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.",
                  "default": 2000
                },
                "username": {
                  "type": "string",
                  "description": "Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`.",
                  "x-referenceable": true
                }
              }
            },
            "consul": {
              "type": "object",
              "properties": {
                "https": {
                  "type": "boolean",
                  "description": "Boolean representation of https.",
                  "default": false
                },
                "host": {
                  "type": "string",
                  "description": "A string representing a host name, such as example.com."
                },
                "port": {
                  "type": "integer",
                  "maximum": 65535,
                  "minimum": 0,
                  "description": "An integer representing a port number between 0 and 65535, inclusive."
                },
                "kv_path": {
                  "type": "string",
                  "description": "KV prefix path."
                },
                "timeout": {
                  "type": "number",
                  "description": "Timeout in milliseconds."
                },
                "token": {
                  "type": "string",
                  "description": "Consul ACL token.",
                  "x-referenceable": true,
                  "x-encrypted": true
                }
              }
            },
            "vault": {
              "type": "object",
              "properties": {
                "token": {
                  "type": "string",
                  "description": "Consul ACL token.",
                  "x-referenceable": true,
                  "x-encrypted": true
                },
                "tls_server_name": {
                  "type": "string",
                  "description": "SNI used in request, default to host if omitted."
                },
                "auth_role": {
                  "type": "string",
                  "description": "The role to try and assign."
                },
                "host": {
                  "type": "string",
                  "description": "A string representing a host name, such as example.com."
                },
                "timeout": {
                  "type": "number",
                  "description": "Timeout in milliseconds."
                },
                "tls_verify": {
                  "type": "boolean",
                  "description": "Turn on TLS verification.",
                  "default": true
                },
                "auth_method": {
                  "type": "string",
                  "enum": [
                    "kubernetes",
                    "token"
                  ],
                  "description": "Auth Method, default to token, can be 'token' or 'kubernetes'.",
                  "default": "token"
                },
                "auth_path": {
                  "type": "string",
                  "description": "Vault's authentication path to use."
                },
                "jwt_path": {
                  "type": "string",
                  "description": "The path to the JWT."
                },
                "https": {
                  "type": "boolean",
                  "description": "Boolean representation of https.",
                  "default": false
                },
                "port": {
                  "type": "integer",
                  "maximum": 65535,
                  "minimum": 0,
                  "description": "An integer representing a port number between 0 and 65535, inclusive."
                },
                "kv_path": {
                  "type": "string",
                  "description": "KV prefix path."
                }
              }
            },
            "shm": {
              "type": "object",
              "properties": {
                "shm_name": {
                  "type": "string",
                  "description": "Name of shared memory zone used for Kong API gateway storage",
                  "default": "kong"
                }
              }
            },
            "kong": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "preferred_chain": {
          "type": "string",
          "description": "A string value that specifies the preferred certificate chain to use when generating certificates."
        }
      },
      "required": [
        "account_email"
      ]
    }
  }
}

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.