Commits
- Commit:
b62a1edfe3cff4df2c3931d28a5f5dd58ed9406d- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
relayd: reject obs-fold to prevent parser differentials (RFC 9112 5.2)
Replace silent kv_extend normalisation with an unconditional reject.
RFC 9112 5.2 permits rejection; it is safer than SP replacement
for a forwarding proxy and handles both request and response direction.
kv_extend is therefore no longer required.
Reported by Stuart Thomas, OK kirill@
- Commit:
36dd1e7a7bf9f6dccf52a294d7d29221aef265f4- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
relayd: allow explicit paths for certificates, keys and OCSP staples
Extend the "keypair" keyword in relayd.conf to support optional explicit paths.
Previously, relayd enforced a naming convention, looking up files in /etc/ssl
and /etc/ssl/private based on the keypair name.
This change allows other applications to manage their certificates without
having to comply with relayd's internal naming logic.
Input and OK kirill@, help form tb@
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
OK claudio@
- Commit:
80347df32a3fd8cd66aeaf059fbfd16c95a2ffe7- From:
- kirill <kirill@openbsd.org>
- Date:
usr.sbin/relayd: add support for PROXY protocol in TCP relays
patch from Christoph Liebender
OK: rsadowski@
- Commit:
c4efe747621091eebe4473e6bf136cb19c94288f- From:
- tb <tb@openbsd.org>
- Date:
relayd: add support for client certificates
This feature has been requested many times over the years. Various patches
were provided by Asherah Connor, Rivo Nurges, Markus Läll and maybe others.
These patches always stalled for various reasons.
From Sören Tempel, mostly based on Asherah's latest patch.
ok florian tb
- Commit:
2247e7efae7f1538279d98e57f9c26710f516091- From:
- jsg <jsg@openbsd.org>
- Date:
remove unused struct
- Commit:
062dadc0e3a555ed928a78a6285090b33cb11652- From:
- tb <tb@openbsd.org>
- Date:
relayd: improve config validation with -n
pf's rule names are limited by 32 characters, so lower the length bounds
for redirect names and tags that relayd accepts as valid config but would
later fail to load into pf. Also display the offending name on error.
from Mark Johnston
ok florian
- Commit:
199fb2838b1e1e60f573f1b61aa5db7e63b6013c- From:
- sashan <sashan@openbsd.org>
- Date:
Change adds a 'log' option to relayd.conf(5) rule. The relayd(8) then uses
the option to set corresponding `log` action in pf(4) rules it generates
to handle network traffic.
The patch comes from Giannis Kapetanakis (bilias _from_ edu.physics.uoc.gr).
OK sashan@
- Commit:
1749dbb96ef9139eda4fd0239f80acaf5aac8078- From:
- jsg <jsg@openbsd.org>
- Date:
remove prototypes with no matching function
- Commit:
cb6a69b94e073f2305fbf62c884f1ad6edbf643d- From:
- op <op@openbsd.org>
- Date:
remove ssl_init()
it's a noop; nowadays both LibreSSL and OpenSSL libcrypto and libssl
initialize themselves automatically before doing anything.
ok tb
- Commit:
64b0dc5e6f9a9388e5007b02a24758a92f9d645b- From:
- claudio <claudio@openbsd.org>
- Date:
Simplify and clean up the code. Try to use more ibuf idioms but the
mix of types used in these functions make this rather hard.
The expected data checks are still not great but a step in the right
direction.
OK tb@
- Commit:
6d9ea5e778a9646b28e4429add33fe8abac6f14b- From:
- dv <dv@openbsd.org>
- Date:
relayd(8): change agentx_getsock to return void
Only has one return value and it's never checked.
ok martijn@, tb@
- Commit:
e4d9aa924d63f25d6d38da9e49a9f9cdf96a98b4- From:
- benno <benno@openbsd.org>
- Date:
The output of server_root_strip() is a string. Use the correct format
"%s". Same for the output of relay_expand_http().
with and ok claudio@
Found by Cedric Tessier, thanks!
- Commit:
b9228e18533831c79414ade1724ed22d9794861a- From:
- dv <dv@openbsd.org>
- Date:
Move TAILQ initialization to files where they are used.
These priv-sep daemons all follow a similar design and use TAILQs
for tracking control process connections. In most cases, the TAILQs
are initialized separate from where they are used. Since the scope
of use is generally confined to a specific control process file,
this commit also removes any extern definitions and exposing the
TAILQ structures to other compilation units.
ok bluhm@, tb@
- Commit:
e7fdc47f24e824d2de7075deabc5e0280465b8e9- From:
- claudio <claudio@openbsd.org>
- Date:
Timed out RSA key ops, may leave uncalled for responses in the imsg return
path. These have to be dropped or every subsequent call will cause decrypt
errors. Use a sequence number cookie to keep the systems in sync.
Diff from niklas@ with some minor adjustments by myself.
- Commit:
3b62aaee4b06a87ed1fc75c4b43ec6454620986c- From:
- eric <eric@openbsd.org>
- Date:
remove bogus key hack now that it's handled by libtls
no objection claudio@
ok tb@ jsing@
- Commit:
071bd6628c13c10f7f96bcb2857798bcf93b28b3- From:
- deraadt <deraadt@openbsd.org>
- Date:
these programs (with common ancestry) had a -fno-common problem related
to privsep_procid.
ok mortimer
- Commit:
d498e80a114cd078ac00398a2d648ec0f9175e44- From:
- denis <denis@openbsd.org>
- Date:
Add 'strip' directive
Feedback by Olivier Cherrier, Hiltjo Posthuma, Mischa
OK benno@
- Commit:
04a2f9536b27f11bd789df2ae153cc14c073ce4b- From:
- martijn <martijn@openbsd.org>
- Date:
Rewrite the agentx code of relayd. This new framework should allow us
to add new objects easier if so desired and should handle a lot more
corner-cases.
This commit should also fix the following:
- On most (all) tables it omits the *Entry elements, making it not map to
OPENBSD-RELAYD-MIB.txt.
- sstolen returns the size of the sockaddr_in{,6}, instead of the
sin{,6}_addr resulting in garbage data to be put in the ip-field.
- relaydSessionPortIn and relaydSessionPortOut are swapped
- relaydSessions only uses relaydSessionIndex, while
OPENBSD-RELAYD-MIB.txt says it should have 2 indices
- miscellaneous minor things related to the AGENTX-protocol, like wonky
index handeling and returning NOSUCHINSTANCE where NOSUCHOBJECT
should be returned, etc.
This commit does remove traps, but it's large enough as is and I intent
on adding it soon(tm). It also deprecates the snmp keyword in favour of
an agentx keyword. The snmp keyword is still available, but will be
removed in the future.
Tweaks and OK denis@ on the relayd parts
Tweaks and OK claudio@ on the agentx parts
"Get it in" deraadt@
- Commit:
8d09c19145dba26c5186f5e11afc35004b0ee615- From:
- pvk <pvk@openbsd.org>
- Date:
Enable TLSv1.3 support in relayd(8)
with the help from tb@ jsing@; ok tb@
- Commit:
738b3cc9ee5e087ffe860159c9e5c5c0bd4d1d7e- From:
- rob <rob@openbsd.org>
- Date:
Add support for binary protocol health checking. Feedback and guidance from
benno@ and reky@. Man page tweaks from jmc@.
ok benno@
- Commit:
0c91187da1707fc65869cc8b4fd03050eac43f3d- From:
- reyk <reyk@openbsd.org>
- Date:
Add support for OCSP stapling
Many thanks to Bruno Flueckiger who independently sent a very similar
patch. He also tested the one I'm committing that it works as
expected.
OK tb@
- Commit:
9261e0d8173c20551ba0953a8492dfa0edb4568b- From:
- reyk <reyk@openbsd.org>
- Date:
Add support for SNI with new "tls keypair" option to load additional certs.
Tested by many (thanks!)
Feedback & OK rob@
- Commit:
fe4913ec641bced939aab727cbc4124c761bdde9- From:
- reyk <reyk@openbsd.org>
- Date:
Move the relay keys/certs into a separate global list and look them up by id.
Moving the certs out of the relay struct will help to add multiple SNI certs.
Tested by many users (thanks!)
Feedback & OK rob@
- Commit:
55ca94a79e8d3e5f12c1ad99051096e7bfd742a1- From:
- reyk <reyk@openbsd.org>
- Date:
Move relay_load_*() functions into relayd.c
Pass the *env as an explicit argument instead of using the global
pointer: The relay_load_certfiles() function is called early before
the *env is set up. This does not change anything in the current code
as *env is not used by anything in the function (not even
ssl_load_key() that is taking it as an argument) but it will be needed
by upcoming changes for SNI.
Ok rob@
