-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AutoTLS): opt-in WSS certs from p2p-forge at libp2p.direct (#10521)
Co-authored-by: Marcin Rataj <[email protected]>
- Loading branch information
1 parent
ecb81c9
commit 3134fd2
Showing
13 changed files
with
598 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package config | ||
|
||
import p2pforge "github.com/ipshipyard/p2p-forge/client" | ||
|
||
// AutoTLS includes optional configuration of p2p-forge client of service | ||
// for obtaining a domain and TLS certificate to improve connectivity for web | ||
// browser clients. More: https://github.com/ipshipyard/p2p-forge#readme | ||
type AutoTLS struct { | ||
// Enables the p2p-forge feature | ||
Enabled Flag `json:",omitempty"` | ||
|
||
// Optional override of the parent domain that will be used | ||
DomainSuffix *OptionalString `json:",omitempty"` | ||
|
||
// Optional override of HTTP API that acts as ACME DNS-01 Challenge broker | ||
RegistrationEndpoint *OptionalString `json:",omitempty"` | ||
|
||
// Optional Authorization token, used with private/test instances of p2p-forge | ||
RegistrationToken *OptionalString `json:",omitempty"` | ||
|
||
// Optional override of CA ACME API used by p2p-forge system | ||
CAEndpoint *OptionalString `json:",omitempty"` | ||
} | ||
|
||
const ( | ||
DefaultAutoTLSEnabled = false // experimental, opt-in for now (https://github.com/ipfs/kubo/pull/10521) | ||
DefaultDomainSuffix = p2pforge.DefaultForgeDomain | ||
DefaultRegistrationEndpoint = p2pforge.DefaultForgeEndpoint | ||
DefaultCAEndpoint = p2pforge.DefaultCAEndpoint | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
# Kubo changelog v0.32 | ||
|
||
- [v0.31.0](#v0320) | ||
- [v0.32.0](#v0310) | ||
|
||
## v0.32.0 | ||
|
||
- [Overview](#overview) | ||
- [🔦 Highlights](#-highlights) | ||
- [go-libp2p updates](#go-libp2p-updated) | ||
- [update boxo](#update-boxo) | ||
- [🎯 AutoTLS: Automatic Certificates for libp2p WebSockets via `libp2p.direct`](#-autotls-automatic-certificates-for-libp2p-websockets-via-libp2pdirect) | ||
- [📦️ Boxo and go-libp2p updates](#-boxo-and-go-libp2p-updates) | ||
- [📝 Changelog](#-changelog) | ||
- [👨👩👧👦 Contributors](#-contributors) | ||
|
||
### Overview | ||
|
||
### 🔦 Highlights | ||
|
||
#### 🎯 AutoTLS: Automatic Certificates for libp2p WebSockets via `libp2p.direct` | ||
|
||
#### go-libp2p updates | ||
This release introduces an experimental feature that significantly improves how browsers can connect to Kubo node. | ||
Opt-in configuration allows Kubo nodes to obtain CA-signed TLS certificates for [libp2p Secure WebSocket (WSS)](https://github.com/libp2p/specs/blob/master/websockets/README.md) connections automatically. | ||
|
||
See [`AutoTLS`](https://github.com/ipfs/kubo/blob/master/docs/config.md#autotls) configuration for details how to enable it. We appreciate you testing and providing an early feedback in [kubo#10560](https://github.com/ipfs/kubo/issues/10560). | ||
|
||
#### 📦️ Boxo and go-libp2p updates | ||
|
||
- update `boxo` to [v0.24.2](https://github.com/ipfs/boxo/releases/tag/v0.24.2). This includes a number of fixes and bitswap improvements. | ||
- update `go-libp2p` to [v0.37.0](https://github.com/libp2p/go-libp2p/releases/tag/v0.37.0) | ||
- This update required removal of `Swarm.RelayService.MaxReservationsPerPeer` configuration option from Kubo. If you had it set, remove it from your configuration file. | ||
- update `go-libp2p-kad-dht` to [v0.27.0](https://github.com/libp2p/go-libp2p-kad-dht/releases/tag/v0.27.0) | ||
- update `go-libp2p-pubsub` to [v0.12.0](https://github.com/libp2p/go-libp2p-pubsub/releases/tag/v0.12.0) | ||
|
||
#### Update Boxo | ||
|
||
Update boxo to [v0.24.2](https://github.com/ipfs/boxo/releases/tag/v0.24.2). This includes a number of fixes and bitswap improvements. | ||
|
||
### 📝 Changelog | ||
|
||
### 👨👩👧👦 Contributors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.