Skip to content

Consul config field deprecations #41

@Demivan

Description

@Demivan

After starting Consul there are deprecation warnings in the log:

agent: The 'ca_file' field is deprecated. Use the 'tls.defaults.ca_file' field instead.
agent: The 'cert_file' field is deprecated. Use the 'tls.defaults.cert_file' field instead.
agent: The 'key_file' field is deprecated. Use the 'tls.defaults.key_file' field instead.
agent: The 'verify_incoming_rpc' field is deprecated. Use the 'tls.internal_rpc.verify_incoming' field instead.
agent: The 'verify_outgoing' field is deprecated. Use the 'tls.defaults.verify_outgoing' field instead.
agent: The 'verify_server_hostname' field is deprecated. Use the 'tls.internal_rpc.verify_server_hostname' field instead.
agent: The 'ui' field is deprecated. Use the 'ui_config.enabled' field instead.

It works right now, but probably need to update generated config before those config options are removed.

consul -v:

Consul v1.14.2
Revision 0ba7a401
Build Date 2022-11-30T19:54:31Z
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)

https://developer.hashicorp.com/consul/docs/agent/config/config-files#tls_deprecated_options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions