Log spam: "Authenticity is not established by certificate path validation" #344
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#344
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My logs are being spammed with this message. Does anyone have any idea what causes this?
probably an old HTTP adapter
check that you haven't got any special options under :pleroma, :http or under Tesla
I also see this error about 3-4 times per hour using the OTP release deployment method (I migrated from Pleroma to Akkoma).
I have no special settings under pleroma/http/tesla, and am on Debian 5-10-149.2 with ca-certificates installed.
I wonder if the OTP release is getting build in an environment without that dependency, we had this issue with a project at work a while back and it was theelixir-socket
library not playing nice, but I don't see that in the dependencies here.Edit:
Even more confusingly, on the instance the pemfiles exist for both CA Cert libraries and they both have certs.
So I think I'm leaning closer to agree that there's a config issue somewhere with an adapter.
In my config I have the following:
Could this be the cause?
No it wouldn't. HSTS doesn't mess with that.
I also noticed this is enabled:
Could it be this? Just remove this line?
I am not sure if this applies to @SuperDicq's case but:
I am able to reproduce this by using the
pleroma_ctl email test --to=...
utility using the SMTP email adapter andssl: true
option.I tried passing
[tls_options: [certfile: CAStore.file_path()]]
(as defined here) manually into the Swoosh config, and verified it is passed to the:gen_smtp_client
and eventually to:socket
, but it didn't seem to help.Setting
ssl: false
also didn't seem to help.I think this is because the version of gen-smtp that is bundled with Swoosh is not recent and does not include this commit and thus is filtering any addtional options from getting passed to the underlying socket.
3cfd421be0
If I get some time later today I'll try forcing an update of that dependency.
I also noticed in the reverse proxy hackney client
ssl_options
is also getting manually set. Generally anywheressl_options
ortls_options
is configured is a place I would start looking as it can potentially clobber default socket configurations.@SuperDicq yes, it's that one!
config :tesla, adapter: Tesla.Adapter.Gun
just remove the line and this will go away
iirc anything that uses hackney or gun gets this error, Finch seems more stable
That fixed it, thanks.