One thing to consider is that there are special cases returning inconsistent values for used and available storage space, especially some network filesystems. I specifically remember NFS filers with snapshots enabled magically reducing available storage space and transparent compression enabling to store more data than the volume theoretically has.
I'd propose to just ignore and potentially document this issue, or maybe add some safeguards when reading free disk space.
update README, add Docker information
Thank you for taking my changes forward!
It seems a somewhat sequence of adding/modifying/deleting temporary files sometimes triggers a race condition, sometimes resulting a panic accessing wi.StatInfo. Adding a nil check resolved the issue.
This provides two minor cleanups to the Alpine Dockerfile:
$arch
, $ARCH
, $KONG_SHA256
environment variables (probably those have been used earlier to download+verify the kong archive using curl?)Netlify link:
main
for immediate publishing, or a release branch: e.g. release/gateway-3.2
, release/deck-1.17
)Jens Erat jens.erat@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH, imprint
This is a rather obvious typo.
$ docker compose --help | grep env-file
--env-file string Specify an alternate environment file.
none
The default will allow pretty much anything, including escaped backslashes. I'm pretty sure this is nothing an arbitrary complex/fancy regular expression will be able to support: we'll have to catch anything in braces and analyse it. I guess we can well support it; after all a placeholder with default will have a value at any time.
I'll look into that tomorrow.
I was pretty busy, I'm sorry for the late reply.
@francislavoie I have a somewhat hard time understanding how this code is used. It seems there is some relation to the cel matcher; but when I add a test case (which fails) and start debugging I don't yet see this code executed. So it seems we found like two more issues:
cel matcher placeholder defaulting test case
Update README.md
Update logo and fix test result badge
Update README.md
Attempt to fix logo that was appearing black in some browsers (perhaps due to CSP?).
Thanks to @IndeedNotJames for investigating! Hopefully this works.
fileserver: Add a couple test cases
With placeholders
caddytls: Add dns_ttl
config, improve Caddyfile tls
options (#5287)
reverseproxy: Set origreq in active health check (#5284)
Fix #5281
reverseproxy: Don't enable auto-https when --from
flag is http (#5269)
reverseproxy: Fix hanging for Transfer-Encoding: chunked (#5289)
caddytls: Add test cases for Caddyfile tls
options (#5293)
caddyhttp: Add server-level trusted_proxies
config (#5103)
chore: Fix caddyfile.replaceEnvVars return (#5311)
go.mod: Update golang.org/x/net to v0.5.0 (#5314)
httpcaddyfile: Fix handle
grouping inside route
(#5315)
Co-authored-by: Francis Lavoie lavofr@gmail.com
chore: Fix typo, coral -> cobra (#5325)
httpcaddyfile: Warn on importing empty file; skip dotfiles (#5320)
httpcaddyfile: Change the parse rules when empty file or dotfile with a glob.
Fixes #5295
Empty file should just log a warning, and result in no tokens.
The last segment of the path is '*', it should skip any dotfiles.
The last segment of the path is '.*', it should read all dotfiles in a dir.
httpcaddyfile: Regard empty files as import files which include only white space.
cmd: caddy fmt
return code is 1 if not formatted (#5297)
cmd: Fix caddy fmt if input isn't formatted
Fixes #5294
return exit 1 with an error message
cmd: Use formattingDifference for caddy fmt
#5294
expose caddyfile.formattingDifference
go.mod: bump tscert package to fix Tailscale 1.34+ on Windows (#5331)
As of Tailscale 1.34.0 on Windows, Tailscale now uses a named pipe to connect to the local tailscale service.
This pulls in tailscale/tscert#5 as reported in tailscale/tscert#4.
(Sorry, we should've noticed this earlier!)
Signed-off-by: Brad Fitzpatrick bradfitz@tailscale.com
Signed-off-by: Brad Fitzpatrick bradfitz@tailscale.com
tracing: Support placeholders in span name (#5329)
Fixes https://github.com/caddyserver/caddy/issues/5171
reverseproxy: Add flag to short command to disable redirects (#5330)
Co-authored-by: Francis Lavoie lavofr@gmail.com Fixes undefined
caddyfile: Allow overriding server names (#5323)
httpcaddyfile: Add persist_config global option (#5339)
Co-authored-by: Francis Lavoie lavofr@gmail.com
use kong configuration when reconfiguring DNS
Bisecting this issue, we realized this was introduced by #8912, and we seem to be able to workaround by reconfiguring the DNS client with dns_no_sync=true
.
I now:
Of course this precludes invalid placeholder-like text, such a JSON, which should not be replaced at all.
Using JSON in header values (which are processed with ReplaceKnown) is a common usecase.
Further above, we discussed just not applying defaulting to any placeholders where the key has quotes in it. This is implemented and tested here:
https://github.com/caddyserver/caddy/pull/5275/files#diff-ee2fe630c0af5186f990380915a1d4b9b2c15b24cb5bab9e13e87dafe700eb88R256-R257 https://github.com/caddyserver/caddy/pull/5275/files#diff-536dcb7bb2efdb54d66c54859f41d31aba8c0eefe173c9702c6565c4a0dce301R90-R94
Now it depends on which of the Replace...()
functions is used.
If we change that to return false would that make things easier?
Just returning false would definitely not be the right thing. In most cases, it's just passing through the boolean result we get from the map lookup.
do not default non-existant http variables to empty strings
Document braces search optimization
add non-placeholder optimization again