mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
073628e8be
* feat(utils): make DNS resolver cache TTL configurable via RUSTFS_DNS_CACHE_TTL_SECS The resolver cache in crates/utils/src/net.rs had a hardcoded 300s TTL with no way to tune or disable it. On orchestrated networks (Docker Swarm, Kubernetes) a peer's DNS name is its only durable identity while its container IP changes on reschedule, and the platform DNS always serves the current answer. A fixed 300s application-side cache can keep a member dialing a dead IP for up to five minutes after a peer restarts. Rust has no runtime DNS cache, so on musl images this was the only cache in the stack and the only one that could not be turned off. Read the TTL from RUSTFS_DNS_CACHE_TTL_SECS (u64, default 300), matching the existing RUSTFS_INTERNODE_* transport knobs. `0` disables caching entirely so every get_host_ip consults the system resolver. The resolved value is logged once at first use, removing an invisible cache from the triage surface. Change is backward-compatible and confined to net.rs. Also drop the two per-lookup info! logs on the resolve path: they would flood the log when caching is disabled and added hot-path noise otherwise. Co-Authored-By: heihutu <heihutu@gmail.com> * fix(helm): derive mTLS secret names from chart fullname (#4601) * fix(helm): mtls certificate for server and client hardcode * fix hardcode issue in deployment * update typo yaml file --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: majinghe <42570491+majinghe@users.noreply.github.com>
53 lines
1.6 KiB
TOML
53 lines
1.6 KiB
TOML
[default]
|
|
# # Ignore specific spell checking patterns
|
|
# extend-ignore-identifiers-re = [
|
|
# # Ignore common patterns in base64 encoding and hash values
|
|
# "[A-Za-z0-9+/]{8,}={0,2}", # base64 encoding
|
|
# "[A-Fa-f0-9]{8,}", # hexadecimal hash
|
|
# "[A-Za-z0-9_-]{20,}", # long random strings
|
|
# ]
|
|
|
|
# # Ignore specific regex patterns in content
|
|
# extend-ignore-re = [
|
|
# # Ignore hash values and encoded strings (base64 patterns)
|
|
# "(?i)[A-Za-z0-9+/]{8,}={0,2}",
|
|
# # Ignore long strings in quotes (usually hash or base64)
|
|
# '"[A-Za-z0-9+/=_-]{8,}"',
|
|
# # Ignore IV values and similar cryptographic strings
|
|
# '"[A-Za-z0-9+/=]{12,}"',
|
|
# # Ignore cryptographic signatures and keys (including partial strings)
|
|
# "[A-Za-z0-9+/]{6,}[A-Za-z0-9+/=]*",
|
|
# # Ignore base64-like strings in comments (common in examples)
|
|
# "//.*[A-Za-z0-9+/]{8,}[A-Za-z0-9+/=]*",
|
|
# ]
|
|
extend-ignore-re = [
|
|
# Ignore long strings in quotes (usually hash or base64)
|
|
'"[A-Za-z0-9+/=_-]{32,}"',
|
|
# Ignore IV values and similar cryptographic strings
|
|
'"[A-Za-z0-9+/=]{12,}"',
|
|
# Ignore cryptographic signatures and keys (including partial strings)
|
|
"[A-Za-z0-9+/]{16,}[A-Za-z0-9+/=]*",
|
|
]
|
|
|
|
[default.extend-words]
|
|
bui = "bui"
|
|
typ = "typ"
|
|
clen = "clen"
|
|
datas = "datas"
|
|
bre = "bre"
|
|
abd = "abd"
|
|
mak = "mak"
|
|
gae = "gae"
|
|
GAE = "GAE"
|
|
thr = "thr"
|
|
# s3-tests original test names (cannot be changed)
|
|
nonexisted = "nonexisted"
|
|
consts = "consts"
|
|
# Swift API - company/product names
|
|
Hashi = "Hashi" # HashiCorp
|
|
# Accept alternate spelling used in parser/XML comments.
|
|
unparseable = "unparseable"
|
|
|
|
[files]
|
|
extend-exclude = []
|