mirror of
https://github.com/openziti/ziti.git
synced 2026-11-07 02:30:16 +00:00
codespell: Add spelling check and fix all issues
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: codespell
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
codespell:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run code spelling check
|
||||
uses: codespell-project/actions-codespell@v2
|
||||
with:
|
||||
ignore_words_list: allos,ans,dne,noe,referr,ssudo,te,tranfer,ue
|
||||
@@ -5,4 +5,4 @@ Please refer to [the local development README](./doc/002-local-dev.md) for build
|
||||
|
||||
## Crossbuilds
|
||||
|
||||
When you push to your repo fork then GitHub Actions will automatically crossbuild for several OSs and CPU architectures. You'll then be able to download the built artifacts from the GitHub UI. The easiest way to crossbuild the Linux exectuables locally is to build and run the crossbuild container. Please refer to [the crossbuild container README](./docker-images/cross-build/README.md) for those steps. For hints on crossbuilding for MacOS and Windows see [the main GitHub Actions workflow](../.github/workflows/main.yml) which defines the steps that are run when you push to GitHub.
|
||||
When you push to your repo fork then GitHub Actions will automatically crossbuild for several OSs and CPU architectures. You'll then be able to download the built artifacts from the GitHub UI. The easiest way to crossbuild the Linux executables locally is to build and run the crossbuild container. Please refer to [the crossbuild container README](./docker-images/cross-build/README.md) for those steps. For hints on crossbuilding for MacOS and Windows see [the main GitHub Actions workflow](../.github/workflows/main.yml) which defines the steps that are run when you push to GitHub.
|
||||
|
||||
+11
-11
@@ -92,7 +92,7 @@ ziti fabric raft remove-member ctrl3
|
||||
* Terminator validation utility
|
||||
* Circuit/Link query support
|
||||
|
||||
## SDK Hosting Improvments
|
||||
## SDK Hosting Improvements
|
||||
|
||||
In previous versions of OpenZiti, if many SDK clients were attempting to establish hosting, the controller could get overwhelmed.
|
||||
In this release, routers will use the rate limiter pool introduced in 0.27.6 when creating terminators on behalf of sdk clients
|
||||
@@ -162,7 +162,7 @@ When the rate limit is hit, an error will be returned. If the request came in fr
|
||||
the REST API, the response will use HTTP status code 429 (too many requests).
|
||||
|
||||
The OpenAPI specs have been updated, so if you're using a generated client to make
|
||||
REST calls, it's recommened that you regenerate your client.
|
||||
REST calls, it's recommended that you regenerate your client.
|
||||
|
||||
|
||||
```
|
||||
@@ -173,7 +173,7 @@ commandRateLimiter:
|
||||
|
||||
If the rate limiter is enabled, the following metrics will be produced:
|
||||
|
||||
* `command.limiter.queued_count` - guage of the current number of queued operations
|
||||
* `command.limiter.queued_count` - gauge of the current number of queued operations
|
||||
* `command.limiter.work_timer` - timer for operations. Includes the following:
|
||||
* A histogram of how long operations take to complete
|
||||
* A meter showing that rate at which operations are executed
|
||||
@@ -189,7 +189,7 @@ If the rate limiter is enabled, the following metrics will be produced:
|
||||
* github.com/openziti/identity: [v1.0.64 -> v1.0.66](https://github.com/openziti/identity/compare/v1.0.64...v1.0.66)
|
||||
* github.com/openziti/metrics: [v1.2.36 -> v1.2.37](https://github.com/openziti/metrics/compare/v1.2.36...v1.2.37)
|
||||
* github.com/openziti/sdk-golang: [v0.20.122 -> v0.20.129](https://github.com/openziti/sdk-golang/compare/v0.20.122...v0.20.129)
|
||||
* [Issue #443](https://github.com/openziti/sdk-golang/issues/443) - Don't send close in reponse to a close on a listener
|
||||
* [Issue #443](https://github.com/openziti/sdk-golang/issues/443) - Don't send close in response to a close on a listener
|
||||
|
||||
* github.com/openziti/secretstream: [v0.1.12 -> v0.1.13](https://github.com/openziti/secretstream/compare/v0.1.12...v0.1.13)
|
||||
* github.com/openziti/storage: [v0.2.20 -> v0.2.23](https://github.com/openziti/storage/compare/v0.2.20...v0.2.23)
|
||||
@@ -246,7 +246,7 @@ Currently only HTTP Connect proxies which don't require authentication are suppo
|
||||
* github.com/openziti/ziti: [v0.30.4 -> v0.30.5](https://github.com/openziti/ziti/compare/v0.30.4...v0.30.5)
|
||||
* [Issue #1336](https://github.com/openziti/ziti/issues/1336) - `ziti edge quickstart` did
|
||||
not create the usual edge router/service edge router policy.
|
||||
* [Issue #1397](https://github.com/openziti/ziti/issues/1397) - HTTP Proxy suport for host.v1/host.v2 config types
|
||||
* [Issue #1397](https://github.com/openziti/ziti/issues/1397) - HTTP Proxy support for host.v1/host.v2 config types
|
||||
* [Issue #1423](https://github.com/openziti/ziti/issues/1423) - Controller crashes when edge router reconnects (Client Hello)
|
||||
* [Issue #1414](https://github.com/openziti/ziti/issues/1414) - Race condition in xgress_edge_tunnel tunneller at start but not seen in pre-compiled binary
|
||||
* [Issue #1406](https://github.com/openziti/ziti/issues/1406) - Entity change event dispatcher isn't shutting down properly when controller shuts down
|
||||
@@ -279,7 +279,7 @@ Currently only HTTP Connect proxies which don't require authentication are suppo
|
||||
ziti edge quickstart \
|
||||
--ctrl-address potato \
|
||||
--ctrl-port 12345 \
|
||||
--router-address avacado \
|
||||
--router-address avocado \
|
||||
--router-port 23456 \
|
||||
--home $HOME/.ziti/pet-ziti \
|
||||
--already-initialized \
|
||||
@@ -328,7 +328,7 @@ Prior to this release there were four identity types:
|
||||
|
||||
Of these four types, only Router has any functional purpose. Given that, the other three have been merged into
|
||||
a single `Default` identity type. Since Router identities can only be created by the system, it's no longer
|
||||
necesary to specify the identity type when creating identities.
|
||||
necessary to specify the identity type when creating identities.
|
||||
|
||||
The identity type may still be provided, but a deprecation warning will be emitted.
|
||||
|
||||
@@ -341,7 +341,7 @@ code may have issues with the new identity type being returned.
|
||||
|
||||
## HTTP Connect Proxy support
|
||||
|
||||
Routers may now specify a proxy configuation which will be used when establishing connections to controllers
|
||||
Routers may now specify a proxy configuration which will be used when establishing connections to controllers
|
||||
and data links to other routers. At this point only HTTP Connect Proxies with no authentication required are
|
||||
supported.
|
||||
|
||||
@@ -682,7 +682,7 @@ Bug fix
|
||||
|
||||
* github.com/openziti/channel/v2: [v2.0.80 -> v2.0.81](https://github.com/openziti/channel/compare/v2.0.80...v2.0.81)
|
||||
* github.com/openziti/edge: [v0.24.326 -> v0.24.345](https://github.com/openziti/edge/compare/v0.24.326...v0.24.345)
|
||||
* [Issue #1528](https://github.com/openziti/edge/issues/1528) - edge unbind returns incorect message if token is not suplied or invalid
|
||||
* [Issue #1528](https://github.com/openziti/edge/issues/1528) - edge unbind returns incorrect message if token is not supplied or invalid
|
||||
* [Issue #1416](https://github.com/openziti/edge/issues/1416) - Allow MFA token name to be configured
|
||||
|
||||
* github.com/openziti/edge-api: [v0.25.25 -> v0.25.29](https://github.com/openziti/edge-api/compare/v0.25.25...v0.25.29)
|
||||
@@ -816,7 +816,7 @@ events:
|
||||
## What's New
|
||||
|
||||
* Event changes
|
||||
* Added AMQP event writter for events
|
||||
* Added AMQP event writer for events
|
||||
* Add entity change events for auditing or external integration
|
||||
* Add usage event filtering
|
||||
* Add annotations to circuit events
|
||||
@@ -1023,7 +1023,7 @@ listeners:
|
||||
* [Issue #1471](https://github.com/openziti/edge/issues/1471) - UDP intercept connections report incorrect local/remote addresses, making confusing events
|
||||
* [Issue #629](https://github.com/openziti/edge/issues/629) - emit entity change events
|
||||
* [Issue #1295](https://github.com/openziti/edge/issues/1295) - Ensure DB migrations work properly in a clustered setup (edge)
|
||||
* [Issue #1418](https://github.com/openziti/edge/issues/1418) - Checks for session edge router availablility are inefficient
|
||||
* [Issue #1418](https://github.com/openziti/edge/issues/1418) - Checks for session edge router availability are inefficient
|
||||
|
||||
* github.com/openziti/edge-api: [v0.25.11 -> v0.25.24](https://github.com/openziti/edge-api/compare/v0.25.11...v0.25.24)
|
||||
* github.com/openziti/fabric: [v0.22.87 -> v0.23.29](https://github.com/openziti/fabric/compare/v0.22.87...v0.23.29)
|
||||
|
||||
@@ -27,7 +27,7 @@ OpenZiti represents the next generation of secure, open-source networking for yo
|
||||
|
||||
## What is OpenZiti?
|
||||
|
||||
* The OpenZiti fabric provides a scalable, plugable, networking mesh with built in smart routing
|
||||
* The OpenZiti fabric provides a scalable, pluggable, networking mesh with built in smart routing
|
||||
* The OpenZiti edge components provide a secure, Zero Trust entry point into your network
|
||||
* The OpenZiti SDKs allow you to integrate OpenZiti directly into your applications
|
||||
* The OpenZiti tunnelers and proxies allow existing applications and networks to take advantage of a OpenZiti deployment
|
||||
|
||||
@@ -30,7 +30,7 @@ This release does not yet include a terminator strategy API. Strategies can be s
|
||||
service, but if a service has multiple terminators the first one will be used. The terminator
|
||||
strategy API along with some implementations will be added in a follow-up release. This release also
|
||||
does not include strategy inputs on terminators as discussed in the above design document. If
|
||||
strategy inputs end up being useful, they may be added in the furure.
|
||||
strategy inputs end up being useful, they may be added in the future.
|
||||
|
||||
### Terminator related API changes
|
||||
|
||||
|
||||
@@ -297,17 +297,17 @@ When building UIs it may be useful to list entities which have role attributes b
|
||||
see what policy changes may look like.
|
||||
|
||||
* Endpoint: /edge-routers
|
||||
* Query: GET /edge-routers now supports two new query paramters
|
||||
* Query: GET /edge-routers now supports two new query parameters
|
||||
* roleFilter. May be specified more than one. Should be an id or role specifier (ex: @38683097-2412-4335-b056-ae8747314dd3 or #sales)
|
||||
* roleSemantic. Optional. Defaults to AllOf if not specified. Indicates which semantic to use when evaluating role matches
|
||||
|
||||
* Endpoint: /identities
|
||||
* Query: GET /identities now supports two new query paramters
|
||||
* Query: GET /identities now supports two new query parameters
|
||||
* roleFilter. May be specified more than one. Should be an id or role specifier (ex: @38683097-2412-4335-b056-ae8747314dd3 or #sales)
|
||||
* roleSemantic. Optional. Defaults to AllOf if not specified. Indicates which semantic to use when evaluating role matches
|
||||
|
||||
* Endpoint: /services
|
||||
* Query: GET /services now supports two new query paramters
|
||||
* Query: GET /services now supports two new query parameters
|
||||
* roleFilter. May be specified more than one. Should be an id or role specifier (ex: @38683097-2412-4335-b056-ae8747314dd3 or #sales)
|
||||
* roleSemantic. Optional. Defaults to AllOf if not specified. Indicates which semantic to use when evaluating role matches
|
||||
|
||||
|
||||
@@ -347,7 +347,7 @@ can react to terminator changes, such when a terminator is added to or removed f
|
||||
service is also notified via `NotifyEvent` whenever a session dial succeeds or fails and when a
|
||||
session for the service is ended.
|
||||
|
||||
The fabric currently provides four strategy implementions.
|
||||
The fabric currently provides four strategy implementations.
|
||||
|
||||
##### `smartrouting`
|
||||
|
||||
@@ -383,6 +383,6 @@ The terminator endpoint now supports setting the static terminator cost and term
|
||||
* Endpoint: /terminators
|
||||
* Operations: PUT/POST/PATCH now take
|
||||
* cost, type uint16, default 0
|
||||
* prededence, type string, default 'default', valid values: required, default, failed
|
||||
* precedence, type string, default 'default', valid values: required, default, failed
|
||||
* Operation: GET now returns staticCost, dynamicCost
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ from a pre-0.9 version you should first update to 0.14.12, then to new versions.
|
||||
|
||||
## Database Snapshots
|
||||
|
||||
Database snapshots can now be triggered in a variety of ways to cause the creation of a dabase
|
||||
Database snapshots can now be triggered in a variety of ways to cause the creation of a database
|
||||
backup/snapshot. This can be done from the ziti-fabric CLI, the ziti CLI and the REST API
|
||||
|
||||
$ ziti-fabric snapshot-db
|
||||
@@ -97,7 +97,7 @@ will have the data and time appended to it. Snapshotting can be done at most onc
|
||||
|
||||
Previously edge routers and fabric routers were closely related, but weren't actually the same
|
||||
entity. When an edge router was created, there was no corresponding fabric router until the edge
|
||||
router had been succesfully enrolled.
|
||||
router had been successfully enrolled.
|
||||
|
||||
Now, edge routers are a type of fabric router. When an edge router is created, it will be visible as
|
||||
a fabric router with no fingerprint. This means that the corresponding router application won't be
|
||||
|
||||
@@ -219,7 +219,7 @@ To this end, terminators now have two new fields:
|
||||
Notes
|
||||
|
||||
1. Identity here may be related to the concept of the Edge Identity, but is not required to be.
|
||||
2. How IdentitySecret is used to validate a terminator is up to the terminator valiator for the
|
||||
2. How IdentitySecret is used to validate a terminator is up to the terminator validator for the
|
||||
binding. The edge has a terminator validator which uses the client's certs to ensure that all
|
||||
terminators for a given terminator identity belong to the same edge identity.
|
||||
|
||||
|
||||
@@ -412,7 +412,7 @@ listeners:
|
||||
* Improve service list time by using indexes get related posture data
|
||||
* Improved service polling
|
||||
* Improved service policy enforcement - instead of polling this is now event based, which should
|
||||
result in slower cpu utlization on the controller
|
||||
result in slower cpu utilization on the controller
|
||||
* Fixed a bug in service policy PATCH which would trigger when the policy type wasn't sent
|
||||
* Support agent utilitiles (`ziti ps`) in ziti-tunnel
|
||||
* Cleanup ack handler goroutines when links shut down
|
||||
@@ -429,7 +429,7 @@ listeners:
|
||||
* A new metric has been added for timing service list requests `services.list`
|
||||
* A bug was fixed in the tunneler which may have lead to leaked connections
|
||||
* Ziti Edge API configurable HTTP Timeouts
|
||||
* Add `ziti log-format` or `ziti lf` for short, for formating JSON log output as something more
|
||||
* Add `ziti log-format` or `ziti lf` for short, for formatting JSON log output as something more
|
||||
human readable
|
||||
* [fabric#151](https://github.com/openziti/fabric/issues/151) Add two timeout settings to the
|
||||
controller to configure how long route and dial should wait before timeout
|
||||
@@ -472,7 +472,7 @@ edge:
|
||||
readHeaderTimeoutMs: 0
|
||||
# (optional, default 10000) writeTimeoutMs is the maximum duration before timing out writes of the response.
|
||||
writeTimeoutMs: 100000
|
||||
# (optional, default 5000) idleTimeoutMs is the maximum amount of time to wait for the next request when keep-alives are enabled
|
||||
# (optional, default 5000) idleTimeoutMs is the maximum amount of time to wait for the next request when keepalives are enabled
|
||||
idleTimeoutMs: 5000
|
||||
```
|
||||
|
||||
@@ -926,11 +926,11 @@ dropping data for a client if the client isn't handling incoming traffic quickly
|
||||
payloads will be retransmitted. The new xgress implementation uses similar windowing and
|
||||
retransmission strategies to the upcoming transwarp work.
|
||||
|
||||
### Backwards Compatability
|
||||
### Backwards Compatibility
|
||||
|
||||
0.18+ routers will probably work with older router versions, but probably not well. 0.18+ xgress
|
||||
instances expect to get round trip times and receive buffer sizes on ack messages. If they don't get
|
||||
them then retransmission will likely be either too agressive or not aggressive enough.
|
||||
them then retransmission will likely be either too aggressive or not aggressive enough.
|
||||
|
||||
Mixing 0.18+ routers with older router versions is not recommended without doing more testing first.
|
||||
|
||||
@@ -942,7 +942,7 @@ Mixing 0.18+ routers with older router versions is not recommended without doing
|
||||
* txPortalStartSize - Initial size of send window. Default value: 16Kb
|
||||
* txPortalMinSize - Smallest allowed send window size. Default value: 16Kb
|
||||
* txPortalMaxSize - Largest allowed send window size. Default value: 4MB
|
||||
* txPortalIncreaseThresh - Number of successful aks after which to increase send portal size:
|
||||
* txPortalIncreaseThresh - Number of successful acks after which to increase send portal size:
|
||||
Default value: 224
|
||||
* txPortalIncreaseScale - Send portal will be increased by amount of data sent since last
|
||||
retransmission. This controls how much to scale that amount by. Default value: 1.0
|
||||
@@ -1020,12 +1020,12 @@ The new metrics include:
|
||||
* Times how long it takes to process xgress payloads coming off the link (mostly getting them
|
||||
into the receive buffer)
|
||||
* xgress.payload_relay_time
|
||||
* Times how long it takes to get xgress payloads out of the recieve buffer and queued to be sent
|
||||
* Times how long it takes to get xgress payloads out of the receive buffer and queued to be sent
|
||||
|
||||
**New Gauges**
|
||||
|
||||
* xgress.blocked_by_local_window
|
||||
* Count of how many xgress instances are blocked because the local tranmit buffer size equals or
|
||||
* Count of how many xgress instances are blocked because the local transmit buffer size equals or
|
||||
exceeds the window size
|
||||
* xgress.blocked_by_local_window
|
||||
* Count of how many xgress instances are blocked because the remote receive buffer size equals
|
||||
@@ -1096,7 +1096,7 @@ If the connection id could be established on the router, we could simplify thing
|
||||
|
||||
We didn't do this previously because the sdk controls ids for outbound connection. To enable this we
|
||||
have split the 32 bit id range in half. The top half is now reserved for hosted connection ids. This
|
||||
behavior is controlled by the SDK, which requests it when it binds uisng a boolean flag. The new
|
||||
behavior is controlled by the SDK, which requests it when it binds using a boolean flag. The new
|
||||
flag is:
|
||||
|
||||
```
|
||||
@@ -1106,4 +1106,4 @@ flag is:
|
||||
If the bind result from the router has the same flag set to true, then the sdk will expect Dial
|
||||
messages from the router to have a connection id provided in the header keyed with the same `1012`.
|
||||
|
||||
This means that this feature should be both backwards and forward compatible.
|
||||
This means that this feature should be both backwards and forward compatible.
|
||||
|
||||
@@ -96,7 +96,7 @@ Example JSON output:
|
||||
|
||||
Caveats:
|
||||
* Any existing host.v1 configurations that use will become invalid.
|
||||
* ziti-tunnel and the converged router/tunneler creates local routes that are establised for `allowedSourceAddresses`, but the routes are not consistently cleaned up when `ziti-tunnel` exits. This issue will be addressed in a future release.
|
||||
* ziti-tunnel and the converged router/tunneler creates local routes that are established for `allowedSourceAddresses`, but the routes are not consistently cleaned up when `ziti-tunnel` exits. This issue will be addressed in a future release.
|
||||
|
||||
# Release 0.19.10
|
||||
|
||||
@@ -114,9 +114,9 @@ Example JSON output:
|
||||
* Converged Tunneler/Router (Beta 2)
|
||||
* intercept.v1 support (also in ziti-tunnel)
|
||||
* support for setting per-service hosting cost/precedence on identity
|
||||
* Identites and edge routers now support appData, which is tag data consumable by sdks
|
||||
* Identities and edge routers now support appData, which is tag data consumable by sdks
|
||||
* Edge Router Policies now expose the `isSystem` flag for system managed policies
|
||||
* ziti-tunnel no longer supports tun mode. It has been superceded by tproxy mode
|
||||
* ziti-tunnel no longer supports tun mode. It has been superseded by tproxy mode
|
||||
|
||||
## Fixes
|
||||
|
||||
@@ -209,7 +209,7 @@ ziti-router can now run with the tunneler embedded. It has the same capabilities
|
||||
|
||||
This is a beta release. It should be relatively feature complete and bug-free for hosting services but intercept support is still nascent. Some features are likely to be changed based on user feedback.
|
||||
|
||||
### Os Compatibilty
|
||||
### Os Compatibility
|
||||
|
||||
Like ziti-tunnel, `tproxy` mode will only work on linux. `proxy` and `host` modes should work on all operating systems.
|
||||
|
||||
@@ -373,7 +373,7 @@ See here: https://github.com/openziti/edge/blob/v0.19.54/tunnel/entities/host.v1
|
||||
|
||||
### host.v2
|
||||
|
||||
There is a new host configuration, `host.v2`, which should supercede `host.v1`. The primary difference from `host.v1` is that it supports multiple terminators. This means that when a service is hosted by a router, it can connect to multiple service instances if the service is horizontally scaled, or in a primary/failover setup.
|
||||
There is a new host configuration, `host.v2`, which should supersede `host.v1`. The primary difference from `host.v1` is that it supports multiple terminators. This means that when a service is hosted by a router, it can connect to multiple service instances if the service is horizontally scaled, or in a primary/failover setup.
|
||||
|
||||
Each terminator definition is the same as a `host.v1` configuration, which one exception: `listOptions.connectTimeoutSeconds` is now `listenOptions.connectTimeout` and is specified as a duration (`5s`, `2500ms`, etc).
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ Output responses include:
|
||||
|
||||
- `200 OK` w/ empty object payloads: `{}`
|
||||
- `401 UNAUTHORIZED` w/ standard error messaging
|
||||
- `400 BAD REQUESET` w/ standard error messaging for field errors or CSR processing errors
|
||||
- `400 BAD REQUEST` w/ standard error messaging for field errors or CSR processing errors
|
||||
|
||||
# Release 0.22.9
|
||||
|
||||
@@ -174,7 +174,7 @@ plorenz@carrot:~/work/nf$ ziti edge traceroute simple -c ./simple-client.json
|
||||
|
||||
## What's New
|
||||
|
||||
* Bug fix: Fix panic in listener close if the socket hadn't been initalized yet
|
||||
* Bug fix: Fix panic in listener close if the socket hadn't been initialized yet
|
||||
* Bug fix: Fix panic in posture bulk create if mfa wasn't set
|
||||
* Bug fix: Fix panic in circuit creation on race condition when circuits are add/removed concurrently
|
||||
|
||||
@@ -291,7 +291,7 @@ Fabric sessions renamed to circuits. External integrators may be impacted by cha
|
||||
|
||||
### Ziti CLI
|
||||
|
||||
Commands under `ziti edge` now reserve the `-i` flag for specifying client identity. Any command line argumet which
|
||||
Commands under `ziti edge` now reserve the `-i` flag for specifying client identity. Any command line argument which
|
||||
previously had a `-i` short version now only has a long version.
|
||||
|
||||
For consistency, policy roles parameters must all be specified in long form
|
||||
@@ -307,7 +307,7 @@ This includes the following flags:
|
||||
* ziti edge create posture-check mfa --ignore-legacy
|
||||
* ziti edge update posture-check mfa --ignore-legacy
|
||||
* ziti edge update authenticator updb --identity
|
||||
* ziti egde update ca --identity-atributes (now -a)
|
||||
* ziti edge update ca --identity-atributes (now -a)
|
||||
|
||||
The `ziti edge` commands now store session credentials in a new location and new format. Existing sessions will be
|
||||
ignored.
|
||||
@@ -355,7 +355,7 @@ field, which is set to 2.
|
||||
|
||||
# Pending Link Timeout
|
||||
|
||||
Previously whenever a router connected we'd look for new links possiblities and create new links between routers where
|
||||
Previously whenever a router connected we'd look for new links possibilities and create new links between routers where
|
||||
any were missing. If lots of routers connected at the same time, we might create duplicate links because the links
|
||||
hadn't been reported as established yet. Now we'll checking for links in Pending state, and if they haven't hit a
|
||||
configurable timeout, we won't create another link.
|
||||
@@ -384,7 +384,7 @@ provided and the server's well known certs will not be downloaded.
|
||||
|
||||
### Identities
|
||||
|
||||
The Ziti CLI now suports multiple identities. An identity can be specified using `--cli-identity` or `-i`.
|
||||
The Ziti CLI now supports multiple identities. An identity can be specified using `--cli-identity` or `-i`.
|
||||
|
||||
Example commands:
|
||||
|
||||
@@ -410,7 +410,7 @@ The above example could also be accomplished as follows:
|
||||
|
||||
```
|
||||
$ ziti edge use dev
|
||||
Settting identity 'dev' as default in ~/.config/ziti/ziti-cli.json
|
||||
Setting identity 'dev' as default in ~/.config/ziti/ziti-cli.json
|
||||
|
||||
$ ziti edge login localhost:1280
|
||||
Enter username: admin
|
||||
@@ -423,7 +423,7 @@ id: -JucPW0kGR name: ssh encryption required: true terminator strategy:
|
||||
results: 1-1 of 1
|
||||
|
||||
$ ziti edge use default
|
||||
Settting identity 'default' as default in ~/.config/ziti/ziti-cli.json
|
||||
Setting identity 'default' as default in ~/.config/ziti/ziti-cli.json
|
||||
```
|
||||
|
||||
`ziti edge use` without an argument will list logins you have made.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* Security: Router link listeners weren't properly validating certs against the server cert chain
|
||||
* Security: Link listeners now validate incoming links to ensure that the link was requested by the controller and the
|
||||
correct router dialed
|
||||
* Security: Don't allow link forwarding entries to be overriden, as link ids should be unique
|
||||
* Security: Don't allow link forwarding entries to be overridden, as link ids should be unique
|
||||
* Security: Validate ctrl channel clients against controller cert chain in addition to checking cert fingerprint
|
||||
|
||||
## Breaking Changes
|
||||
|
||||
@@ -166,7 +166,7 @@ These are true for all REST API and control channel addresses.
|
||||
|
||||
Notes:
|
||||
|
||||
- This process may take days, weeks, or months depending on the size of the nework and how often the router/clients are
|
||||
- This process may take days, weeks, or months depending on the size of the network and how often the router/clients are
|
||||
run
|
||||
- It is imperative that all clients/routers that will remain in use after the IP/hostname move connect at least once
|
||||
after `newAddress` and `newListener` values are configured and in use
|
||||
|
||||
@@ -223,7 +223,7 @@ Currently each section of the dial logic has its own timeouts. It can easily hap
|
||||
an early stage timeout expires while a later one doesn't, causing work to be done whose
|
||||
results will be ignored. A first pass has been completed at threading timeouts/deadline
|
||||
through the dial logic, spanning controller and routers, so that we use approximately
|
||||
the same timeout througout the dial process.
|
||||
the same timeout throughout the dial process.
|
||||
|
||||
### Link Initial Latency
|
||||
Previously links would start with a latency of 0, which they would keep until the latency
|
||||
@@ -242,7 +242,7 @@ network:
|
||||
```
|
||||
|
||||
### Link Verification changes
|
||||
In previous releases when a router recieved a link dial from another router, it would verify
|
||||
In previous releases when a router received a link dial from another router, it would verify
|
||||
that the link was known to the controller and the dialing router was valid. Router validity
|
||||
was checked by making sure the fingerprints of the certs used to establish the link matched
|
||||
the fingerprints on record for the router.
|
||||
@@ -387,7 +387,7 @@ The `ziti-probe` tool will no longer be built and published as part of Ziti rele
|
||||
* Enhancement: `ziti edge update config-type` is now available
|
||||
* Enhancement: `ziti edge create|update identity` now supports `--external-id`
|
||||
* Bug fix: Fixes an issue where the router config would use hostname instead of the DNS name
|
||||
* Bug fix: When establishing links, a link could be closed while being registered, leading the controlller and router to get out of sync
|
||||
* Bug fix: When establishing links, a link could be closed while being registered, leading the controller and router to get out of sync
|
||||
* Enhancement: Add min router cost. Helps to minimize unnecessary hops.
|
||||
* Defaults to 10, configurable in the controller config with the minRouterCost value under `network:`
|
||||
* Enhancement: Can now see xgress instance and link send buffer pointer values in circuit inspections. This allows correlating to stackdumps
|
||||
@@ -609,7 +609,7 @@ Example Create:
|
||||
|
||||
## JWT Primary/Secondary Authentication
|
||||
|
||||
A new primary authentication mechanism is available in addition to `cert` and `passsword` (UPDB). The internal
|
||||
A new primary authentication mechanism is available in addition to `cert` and `password` (UPDB). The internal
|
||||
method name is `ext-jwt` and it allows authentication by providing a bearer token by a known external JWT signer.
|
||||
A new entity `External JWT Singer` has been introduced and is defined in subsequent sections.
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ ziti create config router edge --routerName myRouter --tunnelerMode tproxy --lan
|
||||
* github.com/openziti/sdk-golang: [v0.16.135 -> v0.16.146](https://github.com/openziti/sdk-golang/compare/v0.16.135...v0.16.146)
|
||||
* [Issue #328](https://github.com/openziti/sdk-golang/issues/328) - enrollment has no 'verbose' option for debugging
|
||||
* [Issue #314](https://github.com/openziti/sdk-golang/issues/314) - Incorrect documentation for grpc-example
|
||||
* [Issue #317](https://github.com/openziti/sdk-golang/issues/317) - No documenation for call example
|
||||
* [Issue #317](https://github.com/openziti/sdk-golang/issues/317) - No documentation for call example
|
||||
* [Issue #311](https://github.com/openziti/sdk-golang/issues/311) - Chat Client and Server needs documentation
|
||||
|
||||
* github.com/openziti/storage: [v0.1.25 -> v0.1.26](https://github.com/openziti/storage/compare/v0.1.25...v0.1.26)
|
||||
@@ -232,7 +232,7 @@ events:
|
||||
- type: fabric.usage
|
||||
version: 2
|
||||
- type: fabric.usage
|
||||
versin: 3
|
||||
version: 3
|
||||
```
|
||||
If no version is provided for usage, then v2 events will still be outputted by default.
|
||||
|
||||
@@ -410,7 +410,7 @@ The only change in this release is updating from Golang 1.18 to 1.19
|
||||
|
||||
Previously if a router had multiple links and one of them was slow or blocked, it could prevent other traffic from moving. Now, if a link is unable to keep up with incoming traffic, payloads will be dropped. The end-to-end flow control and retransmission logic will handle re-sending the packet.
|
||||
|
||||
Links have a 64 message queue for incoming messages. Up to 64 messages are taken off the queue, sorted in priority order and then sent. Once the sorted list of messages has been sent, the next set of messages are dequeue, sorted and sent. If the queue fills while the current set of sorted messges is being sent, message will now be dropped instead of waiting for queue space to open up.
|
||||
Links have a 64 message queue for incoming messages. Up to 64 messages are taken off the queue, sorted in priority order and then sent. Once the sorted list of messages has been sent, the next set of messages are dequeue, sorted and sent. If the queue fills while the current set of sorted messages is being sent, message will now be dropped instead of waiting for queue space to open up.
|
||||
|
||||
There is now a new per-link `link.dropped_msgs` metric to track how often links are dropping messages.
|
||||
|
||||
@@ -566,7 +566,7 @@ events:
|
||||
* `dialed` : Generated when the controller sends a link dial message to a router
|
||||
* `connected` : Generated when a router sends a link connected message to the controller
|
||||
* `fault` : Generated when a router sends a link fault to the controller
|
||||
* `routerLinkNew` : Generated when a router sends a router link message to the controler and the link is new to the controller
|
||||
* `routerLinkNew` : Generated when a router sends a router link message to the controller and the link is new to the controller
|
||||
* `routerLinkKnown` : Generated when a router sends a router link message to the controller and the link is known
|
||||
* `routerLinkDisconnectedDest` : Generated when a router sends a route link message to the controller and the router on the other side of the link is not currently connected.
|
||||
|
||||
@@ -983,7 +983,7 @@ The `mgmt:` stanza in configuration files, which used to be required, will now b
|
||||
|
||||
### Old Metrics Subsystem removed
|
||||
|
||||
Formerly metrics could be exported to file via the `metrics:` configuration stanza. This was superceded by
|
||||
Formerly metrics could be exported to file via the `metrics:` configuration stanza. This was superseded by
|
||||
the events subsystem, which contains metrics as well as other events.
|
||||
|
||||
This also means that we no longer support pushing metrics directly to InfluxDB. However, we now have a
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
Ziti 0.6.0 moves the back-end persistence model of Ziti Edge and Ziti Fabric into the same
|
||||
repository based on Bbolt (an in memory data store that is backed by a memory mapped file). The
|
||||
changes remove the requirement for PostgresSQL.
|
||||
changes remove the requirement for PostgreSQL.
|
||||
|
||||
## UPDB Enrollment JWTs
|
||||
|
||||
|
||||
@@ -257,7 +257,7 @@ policies must now be created with no other roles or entity references.
|
||||
|
||||
### Service Edge Router Policy
|
||||
|
||||
Previously services could be confgured with edge router roles, which limited which edge routers
|
||||
Previously services could be configured with edge router roles, which limited which edge routers
|
||||
could be used to dial or bind the service.
|
||||
|
||||
In 0.9 that is replaced with a new standalone type: service edge router policies. A service edge
|
||||
|
||||
@@ -21,16 +21,17 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/foundation/v2/debugz"
|
||||
"github.com/openziti/foundation/v2/errorz"
|
||||
"net/http"
|
||||
"path"
|
||||
goruntime "runtime"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/foundation/v2/debugz"
|
||||
"github.com/openziti/foundation/v2/errorz"
|
||||
)
|
||||
|
||||
// TimeoutHandler will create a http.Handler that wraps the given http.Handler. If the given timeout is reached, the
|
||||
@@ -70,7 +71,7 @@ func (h *timeoutHandler) errorBody(w http.ResponseWriter, r *http.Request) error
|
||||
|
||||
return err
|
||||
}
|
||||
return errors.New("no timout api error specified")
|
||||
return errors.New("no timeout api error specified")
|
||||
}
|
||||
|
||||
func (h *timeoutHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -2,6 +2,7 @@ package db
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/storage/ast"
|
||||
"github.com/openziti/storage/boltz"
|
||||
@@ -17,7 +18,7 @@ func (m *Migrations) removeOrphanedOttCaEnrollments(step *boltz.MigrationStep) {
|
||||
enrollment, err := m.stores.Enrollment.LoadOneById(step.Ctx.Tx(), currentEnrollmentId)
|
||||
|
||||
if err != nil {
|
||||
step.SetError(fmt.Errorf("error interating ids of enrollments, enrollment [%s]: %v", currentEnrollmentId, err))
|
||||
step.SetError(fmt.Errorf("error iterating ids of enrollments, enrollment [%s]: %v", currentEnrollmentId, err))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package db
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/openziti/storage/ast"
|
||||
"github.com/openziti/storage/boltz"
|
||||
)
|
||||
@@ -14,7 +15,7 @@ func (m *Migrations) removeAllSessions(step *boltz.MigrationStep) {
|
||||
currentSessionId := string(current)
|
||||
|
||||
if err := m.stores.Session.DeleteById(step.Ctx, currentSessionId); err != nil {
|
||||
step.SetError(fmt.Errorf("error cleaing up sessions for migration: %v", err))
|
||||
step.SetError(fmt.Errorf("error cleaning up sessions for migration: %v", err))
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -24,7 +25,7 @@ func (m *Migrations) removeAllSessions(step *boltz.MigrationStep) {
|
||||
currentApiSessionId := string(current)
|
||||
|
||||
if err := m.stores.ApiSession.DeleteById(step.Ctx, currentApiSessionId); err != nil {
|
||||
step.SetError(fmt.Errorf("error cleaing up api sessions for migration: %v", err))
|
||||
step.SetError(fmt.Errorf("error cleaning up api sessions for migration: %v", err))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,16 +18,17 @@ package handler_mgmt
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/channel/v2"
|
||||
"github.com/openziti/channel/v2/trace/pb"
|
||||
trace_pb "github.com/openziti/channel/v2/trace/pb"
|
||||
"github.com/openziti/ziti/common/handler_common"
|
||||
"github.com/openziti/ziti/common/pb/ctrl_pb"
|
||||
"github.com/openziti/ziti/common/pb/mgmt_pb"
|
||||
"github.com/openziti/ziti/controller/network"
|
||||
"github.com/openziti/ziti/common/trace"
|
||||
"github.com/openziti/ziti/controller/network"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
type traceTogglePipeHandler struct {
|
||||
@@ -124,7 +125,7 @@ func checkMatch(appId string, matchers *trace.PipeToggleMatchers, verbosity trac
|
||||
}
|
||||
|
||||
func getApplyResults(resultChan chan trace.ToggleApplyResult, verbosity trace.ToggleVerbosity, result *trace.ToggleResult) {
|
||||
timout := time.After(time.Second * 5)
|
||||
timeout := time.After(time.Second * 5)
|
||||
for {
|
||||
select {
|
||||
case applyResult, chanOpen := <-resultChan:
|
||||
@@ -132,7 +133,7 @@ func getApplyResults(resultChan chan trace.ToggleApplyResult, verbosity trace.To
|
||||
return
|
||||
}
|
||||
applyResult.Append(result, verbosity)
|
||||
case <-timout:
|
||||
case <-timeout:
|
||||
result.Success = false
|
||||
result.Append("Timed out waiting for toggle to be applied to controller")
|
||||
return
|
||||
|
||||
@@ -20,20 +20,21 @@ import (
|
||||
"crypto/x509"
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/edge-api/rest_management_api_server/operations/certificate_authority"
|
||||
"github.com/openziti/sdk-golang/ziti"
|
||||
"github.com/openziti/storage/boltz"
|
||||
"github.com/openziti/ziti/controller/apierror"
|
||||
"github.com/openziti/ziti/controller/env"
|
||||
"github.com/openziti/ziti/controller/fields"
|
||||
"github.com/openziti/ziti/controller/internal/permissions"
|
||||
"github.com/openziti/ziti/controller/model"
|
||||
"github.com/openziti/ziti/controller/response"
|
||||
"github.com/openziti/ziti/controller/fields"
|
||||
"github.com/openziti/sdk-golang/ziti"
|
||||
"github.com/openziti/storage/boltz"
|
||||
"github.com/pkg/errors"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -176,7 +177,7 @@ func (r *CaRouter) VerifyCert(ae *env.AppEnv, rc *response.RequestContext, param
|
||||
|
||||
if der.Type != "CERTIFICATE" {
|
||||
apiErr := apierror.NewExpectedPemBlockCertificate()
|
||||
apiErr.Cause = fmt.Errorf("ecountered PEM block type %s", der.Type)
|
||||
apiErr.Cause = fmt.Errorf("encountered PEM block type %s", der.Type)
|
||||
rc.RespondWithApiError(apiErr)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -17,12 +17,13 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/edge-api/rest_model"
|
||||
"github.com/openziti/ziti/controller/env"
|
||||
"github.com/openziti/ziti/controller/model"
|
||||
"time"
|
||||
)
|
||||
|
||||
func MapPostureDataToRestModel(_ *env.AppEnv, postureData *model.PostureData) *rest_model.PostureData {
|
||||
@@ -54,7 +55,7 @@ func MapPostureDataProcessesToRestModel(postureData *model.PostureData) []*rest_
|
||||
process.SignerFingerprints = pdProcess.SignerFingerprints
|
||||
process.BinaryHash = pdProcess.BinaryHash
|
||||
} else {
|
||||
pfxlog.Logger().Errorf("could not convery posture data process (%s) to subtype, got %T", genericProcess.PostureCheckId, genericProcess.SubType)
|
||||
pfxlog.Logger().Errorf("could not convert posture data process (%s) to subtype, got %T", genericProcess.PostureCheckId, genericProcess.SubType)
|
||||
}
|
||||
|
||||
processes = append(processes, process)
|
||||
@@ -75,7 +76,7 @@ func MapPostureDataDomainToRestModel(domain *model.PostureResponseDomain) *rest_
|
||||
if pdDomain, ok := domain.SubType.(*model.PostureResponseDomain); ok {
|
||||
ret.Domain = &pdDomain.Name
|
||||
} else {
|
||||
pfxlog.Logger().Errorf("could not convery posture data domain to subtype, got %T", domain.SubType)
|
||||
pfxlog.Logger().Errorf("could not convert posture data domain to subtype, got %T", domain.SubType)
|
||||
}
|
||||
|
||||
return ret
|
||||
@@ -93,7 +94,7 @@ func MapPostureDataMacToRestModel(mac *model.PostureResponseMac) *rest_model.Pos
|
||||
if pdMac, ok := mac.SubType.(*model.PostureResponseMac); ok {
|
||||
ret.Addresses = pdMac.Addresses
|
||||
} else {
|
||||
pfxlog.Logger().Errorf("could not convery posture data mac to subtype, got %T", mac.SubType)
|
||||
pfxlog.Logger().Errorf("could not convert posture data mac to subtype, got %T", mac.SubType)
|
||||
}
|
||||
|
||||
return ret
|
||||
@@ -112,7 +113,7 @@ func MapPostureDataOsToRestModel(os *model.PostureResponseOs) *rest_model.Postur
|
||||
ret.Type = &pdOs.Type
|
||||
ret.Version = &pdOs.Version
|
||||
} else {
|
||||
pfxlog.Logger().Errorf("could not convery posture data mac to subtype, got %T", os.SubType)
|
||||
pfxlog.Logger().Errorf("could not convert posture data mac to subtype, got %T", os.SubType)
|
||||
}
|
||||
|
||||
return ret
|
||||
|
||||
@@ -30,7 +30,7 @@ type Provider interface {
|
||||
Get() any
|
||||
}
|
||||
|
||||
// ProviderF is a function implemenation of the Provider interface
|
||||
// ProviderF is a function implementation of the Provider interface
|
||||
type ProviderF func() any
|
||||
|
||||
func (f ProviderF) Get() any {
|
||||
|
||||
@@ -18,6 +18,8 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/lucsky/cuid"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/storage/ast"
|
||||
@@ -27,7 +29,6 @@ import (
|
||||
"github.com/openziti/ziti/controller/models"
|
||||
"github.com/pkg/errors"
|
||||
"go.etcd.io/bbolt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func NewApiSessionManager(env Env) *ApiSessionManager {
|
||||
@@ -210,7 +211,7 @@ func (self *ApiSessionManager) Stream(query string, collect func(*ApiSession, er
|
||||
filter, err := ast.Parse(self.Store, query)
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not parse query for streaming api sesions: %v", err)
|
||||
return fmt.Errorf("could not parse query for streaming api sessions: %v", err)
|
||||
}
|
||||
|
||||
return self.env.GetDbProvider().GetDb().View(func(tx *bbolt.Tx) error {
|
||||
@@ -230,7 +231,7 @@ func (self *ApiSessionManager) StreamIds(query string, collect func(string, erro
|
||||
filter, err := ast.Parse(self.Store, query)
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not parse query for streaming api sesions ids: %v", err)
|
||||
return fmt.Errorf("could not parse query for streaming api sessions ids: %v", err)
|
||||
}
|
||||
|
||||
return self.env.GetDbProvider().GetDb().View(func(tx *bbolt.Tx) error {
|
||||
|
||||
@@ -18,11 +18,12 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/ziti/common/pb/edge_cmd_pb"
|
||||
"github.com/openziti/ziti/controller/db"
|
||||
"github.com/pkg/errors"
|
||||
"go.etcd.io/bbolt"
|
||||
"time"
|
||||
)
|
||||
|
||||
var _ PostureCheckSubType = &PostureCheckMacAddresses{}
|
||||
@@ -100,7 +101,7 @@ func (p *PostureCheckMacAddresses) fillFrom(_ Env, tx *bbolt.Tx, check *db.Postu
|
||||
subCheck := subType.(*db.PostureCheckMacAddresses)
|
||||
|
||||
if subCheck == nil {
|
||||
return fmt.Errorf("could not covert mac address check to bolt type")
|
||||
return fmt.Errorf("could not convert mac address check to bolt type")
|
||||
}
|
||||
|
||||
p.MacAddresses = subCheck.MacAddresses
|
||||
|
||||
@@ -18,12 +18,13 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/blang/semver"
|
||||
"github.com/openziti/ziti/common/pb/edge_cmd_pb"
|
||||
"github.com/openziti/ziti/controller/db"
|
||||
"github.com/pkg/errors"
|
||||
"go.etcd.io/bbolt"
|
||||
"time"
|
||||
)
|
||||
|
||||
var _ PostureCheckSubType = &PostureCheckMfa{}
|
||||
@@ -320,7 +321,7 @@ func (p *PostureCheckMfa) fillFrom(_ Env, tx *bbolt.Tx, check *db.PostureCheck,
|
||||
subCheck := subType.(*db.PostureCheckMfa)
|
||||
|
||||
if subCheck == nil {
|
||||
return fmt.Errorf("could not covert mfa check to bolt type")
|
||||
return fmt.Errorf("could not convert mfa check to bolt type")
|
||||
}
|
||||
|
||||
p.TimeoutSeconds = subCheck.TimeoutSeconds
|
||||
|
||||
@@ -18,6 +18,9 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/blang/semver"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/foundation/v2/errorz"
|
||||
@@ -25,8 +28,6 @@ import (
|
||||
"github.com/openziti/ziti/controller/db"
|
||||
"github.com/pkg/errors"
|
||||
"go.etcd.io/bbolt"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
var _ PostureCheckSubType = &PostureCheckOperatingSystem{}
|
||||
@@ -152,7 +153,7 @@ func (p *PostureCheckOperatingSystem) fillFrom(_ Env, tx *bbolt.Tx, check *db.Po
|
||||
subCheck := subType.(*db.PostureCheckOperatingSystem)
|
||||
|
||||
if subCheck == nil {
|
||||
return fmt.Errorf("could not covert os check to bolt type")
|
||||
return fmt.Errorf("could not convert os check to bolt type")
|
||||
}
|
||||
|
||||
for _, osMatch := range subCheck.OperatingSystems {
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestPostureCheckModelOs_Evaluate(t *testing.T) {
|
||||
@@ -33,7 +34,7 @@ func TestPostureCheckModelOs_Evaluate(t *testing.T) {
|
||||
req.True(result)
|
||||
})
|
||||
|
||||
t.Run("returns true for valid os type and is higer than the min and lower than max", func(t *testing.T) {
|
||||
t.Run("returns true for valid os type and is higher than the min and lower than max", func(t *testing.T) {
|
||||
osCheck, postureData := newMatchingOsCheckAndData()
|
||||
osCheck.OperatingSystems[0].OsVersions[0] = ">=10.5.0 <=10.6.0"
|
||||
|
||||
@@ -43,7 +44,6 @@ func TestPostureCheckModelOs_Evaluate(t *testing.T) {
|
||||
req.True(result)
|
||||
})
|
||||
|
||||
|
||||
t.Run("returns true for valid os type and is the min and lower than max", func(t *testing.T) {
|
||||
osCheck, postureData := newMatchingOsCheckAndData()
|
||||
osCheck.OperatingSystems[0].OsVersions[0] = ">=10.5.19041 <=10.6.0"
|
||||
@@ -54,7 +54,7 @@ func TestPostureCheckModelOs_Evaluate(t *testing.T) {
|
||||
req.True(result)
|
||||
})
|
||||
|
||||
t.Run("returns true for valid os type and higer than min and is the max", func(t *testing.T) {
|
||||
t.Run("returns true for valid os type and higher than min and is the max", func(t *testing.T) {
|
||||
osCheck, postureData := newMatchingOsCheckAndData()
|
||||
osCheck.OperatingSystems[0].OsVersions[0] = ">=10.0.0 <=10.5.19041"
|
||||
|
||||
@@ -64,7 +64,6 @@ func TestPostureCheckModelOs_Evaluate(t *testing.T) {
|
||||
req.True(result)
|
||||
})
|
||||
|
||||
|
||||
t.Run("returns false for valid os type and lower than min", func(t *testing.T) {
|
||||
osCheck, postureData := newMatchingOsCheckAndData()
|
||||
osCheck.OperatingSystems[0].OsVersions[0] = ">=10.8.0 <=10.9.0"
|
||||
@@ -335,7 +334,7 @@ func newMatchingOsCheckAndData() (*PostureCheckOperatingSystem, *PostureData) {
|
||||
postureResponseOs.PostureResponse = postureResponse
|
||||
|
||||
validPostureData := &PostureData{
|
||||
Os: *postureResponseOs,
|
||||
Os: *postureResponseOs,
|
||||
}
|
||||
|
||||
processCheck := &PostureCheckOperatingSystem{
|
||||
|
||||
@@ -18,12 +18,13 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/ziti/common/pb/edge_cmd_pb"
|
||||
"github.com/openziti/ziti/controller/db"
|
||||
"github.com/pkg/errors"
|
||||
"go.etcd.io/bbolt"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
var _ PostureCheckSubType = &PostureCheckProcess{}
|
||||
@@ -152,7 +153,7 @@ func (p *PostureCheckProcess) fillFrom(_ Env, tx *bbolt.Tx, check *db.PostureChe
|
||||
subCheck := subType.(*db.PostureCheckProcess)
|
||||
|
||||
if subCheck == nil {
|
||||
return fmt.Errorf("could not covert process check to bolt type")
|
||||
return fmt.Errorf("could not convert process check to bolt type")
|
||||
}
|
||||
|
||||
p.PostureCheckId = check.Id
|
||||
|
||||
@@ -19,12 +19,13 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/ziti/common/pb/edge_cmd_pb"
|
||||
"github.com/openziti/ziti/controller/db"
|
||||
"github.com/pkg/errors"
|
||||
"go.etcd.io/bbolt"
|
||||
"time"
|
||||
)
|
||||
|
||||
var _ PostureCheckSubType = &PostureCheckProcessMulti{}
|
||||
@@ -188,7 +189,7 @@ func (p *PostureCheckProcessMulti) fillFrom(_ Env, _ *bbolt.Tx, check *db.Postur
|
||||
subCheck := subType.(*db.PostureCheckProcessMulti)
|
||||
|
||||
if subCheck == nil {
|
||||
return fmt.Errorf("could not covert process check process multi to bolt type")
|
||||
return fmt.Errorf("could not convert process check process multi to bolt type")
|
||||
}
|
||||
|
||||
p.PostureCheckId = check.Id
|
||||
|
||||
@@ -18,12 +18,13 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/ziti/common/pb/edge_cmd_pb"
|
||||
"github.com/openziti/ziti/controller/db"
|
||||
"github.com/pkg/errors"
|
||||
"go.etcd.io/bbolt"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
var _ PostureCheckSubType = &PostureCheckDomains{}
|
||||
@@ -106,7 +107,7 @@ func (p *PostureCheckDomains) fillFrom(_ Env, _ *bbolt.Tx, _ *db.PostureCheck, s
|
||||
subCheck := subType.(*db.PostureCheckWindowsDomains)
|
||||
|
||||
if subCheck == nil {
|
||||
return fmt.Errorf("could not covert domain check to bolt type")
|
||||
return fmt.Errorf("could not convert domain check to bolt type")
|
||||
}
|
||||
|
||||
p.Domains = subCheck.Domains
|
||||
|
||||
@@ -6,19 +6,20 @@ import (
|
||||
"crypto/sha1"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/ziti/controller/apierror"
|
||||
"github.com/openziti/ziti/controller/model"
|
||||
"github.com/openziti/ziti/controller/change"
|
||||
"github.com/openziti/ziti/controller/models"
|
||||
"github.com/openziti/foundation/v2/stringz"
|
||||
cmap "github.com/orcaman/concurrent-map/v2"
|
||||
"net/http"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/foundation/v2/stringz"
|
||||
"github.com/openziti/ziti/controller/apierror"
|
||||
"github.com/openziti/ziti/controller/change"
|
||||
"github.com/openziti/ziti/controller/model"
|
||||
"github.com/openziti/ziti/controller/models"
|
||||
cmap "github.com/orcaman/concurrent-map/v2"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"gopkg.in/square/go-jose.v2"
|
||||
|
||||
@@ -534,7 +535,7 @@ func (s *HybridStorage) RevokeToken(_ context.Context, tokenIDOrToken string, _
|
||||
_, claims, err := s.parseRefreshToken(tokenIDOrToken)
|
||||
|
||||
if err != nil {
|
||||
return nil //not a valid toke ignore
|
||||
return nil //not a valid token ignore
|
||||
}
|
||||
revocation := NewRevocation(claims.JWTID, claims.Expiration.AsTime())
|
||||
if err := s.saveRevocation(revocation); err != nil {
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
package raft
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/openziti/channel/v2/protobufs"
|
||||
"github.com/openziti/ziti/common/pb/cmd_pb"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/raft"
|
||||
"github.com/pkg/errors"
|
||||
@@ -182,7 +183,7 @@ func (self *Controller) HandleTransferLeadershipAsLeader(req *cmd_pb.TransferLea
|
||||
}
|
||||
|
||||
if err := future.Error(); err != nil {
|
||||
return errors.Wrapf(err, "error transfering leadership")
|
||||
return errors.Wrapf(err, "error transferring leadership")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -19,14 +19,15 @@ package server
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/openziti/ziti/controller"
|
||||
"github.com/openziti/ziti/controller/env"
|
||||
"github.com/openziti/ziti/controller/oidc_auth"
|
||||
"github.com/openziti/ziti/controller/api"
|
||||
"github.com/openziti/foundation/v2/stringz"
|
||||
"github.com/openziti/xweb/v2"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/openziti/foundation/v2/stringz"
|
||||
"github.com/openziti/xweb/v2"
|
||||
"github.com/openziti/ziti/controller"
|
||||
"github.com/openziti/ziti/controller/api"
|
||||
"github.com/openziti/ziti/controller/env"
|
||||
"github.com/openziti/ziti/controller/oidc_auth"
|
||||
)
|
||||
|
||||
var _ xweb.ApiHandlerFactory = &OidcApiFactory{}
|
||||
@@ -122,7 +123,7 @@ func NewOidcApiHandler(serverConfig *xweb.ServerConfig, ae *env.AppEnv, options
|
||||
return nil, fmt.Errorf("[edge-oidc.options.secret] must be a string")
|
||||
}
|
||||
} else {
|
||||
return nil, fmt.Errorf("[edge-oidc.options.secret] must be definded")
|
||||
return nil, fmt.Errorf("[edge-oidc.options.secret] must be defined")
|
||||
}
|
||||
|
||||
if redirectVal, ok := options["redirectURIs"]; ok {
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
package xt
|
||||
|
||||
import (
|
||||
cmap "github.com/orcaman/concurrent-map/v2"
|
||||
"math"
|
||||
|
||||
cmap "github.com/orcaman/concurrent-map/v2"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -81,7 +82,7 @@ func (p *precedence) GetBiasedCost(cost uint32) uint32 {
|
||||
// Precedences define the precedence levels
|
||||
var Precedences = struct {
|
||||
// Required terminators should always be used in preference to non-required terminators
|
||||
// Example: The current active node in an active/passive setup. If the strategy determintes
|
||||
// Example: The current active node in an active/passive setup. If the strategy determines
|
||||
// that the current active has failed, it will drop the precedence and mark some other
|
||||
// terminator as Required
|
||||
Required Precedence
|
||||
|
||||
+1
-1
@@ -134,7 +134,7 @@ main(){
|
||||
elif [ -f /etc/debian_version ]; then
|
||||
installDebian "$@"
|
||||
else
|
||||
echo "ERROR: Unsupported Linux distribution family. The zrok-share package is availabe as a Debian or Red Hat package." >&2
|
||||
echo "ERROR: Unsupported Linux distribution family. The zrok-share package is available as a Debian or Red Hat package." >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ contents:
|
||||
replaces:
|
||||
- ziti-cli
|
||||
|
||||
# packager-neutral scripts may be overriden by packager-specific scripts
|
||||
# packager-neutral scripts may be overridden by packager-specific scripts
|
||||
# scripts:
|
||||
# preinstall: ./scripts/preinstall.sh
|
||||
# postinstall: ./scripts/postinstall.sh
|
||||
|
||||
@@ -66,7 +66,7 @@ You will need a new terminal with current directory set to the top-level of this
|
||||
ziti edge login -u ADMIN_NAME -p ADMIN_PW
|
||||
```
|
||||
|
||||
Subsequent `ziti` CLI commands will automatically re-use this session token. You'll need to perform this login step again when the token expires.
|
||||
Subsequent `ziti` CLI commands will automatically reuse this session token. You'll need to perform this login step again when the token expires.
|
||||
|
||||
## Initialize an Edge Router
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ hosts.
|
||||
|
||||
## Establish Environment Variables
|
||||
|
||||
The environment variables ZITI_HOME and ZITI_NETWORK will be used to boostrap an environment configuration file and directory structure to hold the various certificate, private keys, configuration files, and enrollment tokens that will be generated in this guide. This will help keep them separated on your file system for easy deletion later.
|
||||
The environment variables ZITI_HOME and ZITI_NETWORK will be used to bootstrap an environment configuration file and directory structure to hold the various certificate, private keys, configuration files, and enrollment tokens that will be generated in this guide. This will help keep them separated on your file system for easy deletion later.
|
||||
|
||||
After these are defined an environment folder and 'env' file will be generated that can easily reset these values.
|
||||
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ Note that `bootstrapMembers` can only be used when setting the cluster up for th
|
||||
should only be used on a single node. It cannot be used later to add additional nodes to an existing
|
||||
cluster.
|
||||
|
||||
**Agent Comands**
|
||||
**Agent Commands**
|
||||
|
||||
There are now three new agent commands specific to the controller.
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ $ dilithium influx load /home/michael/.fablab/instances/transwarp/forensics/1616
|
||||
[ 0.142] INFO main.main: finished
|
||||
```
|
||||
|
||||
`dilithium influx load` is designed to take the root of the filesystem tree where the directory structure created by the metrics intrument is located. It will automatically traverse the tree and load any metrics it finds into the analyzer database.
|
||||
`dilithium influx load` is designed to take the root of the filesystem tree where the directory structure created by the metrics instrument is located. It will automatically traverse the tree and load any metrics it finds into the analyzer database.
|
||||
|
||||
### Analyze
|
||||
|
||||
@@ -418,7 +418,7 @@ Transwarp is the integration of `westworld3` into Ziti's `transport` framework,
|
||||
|
||||
## Transwarp vs TranswarpTLS
|
||||
|
||||
The `transport` integration means that Ziti now has support for the `transwarp:` and `transwarptls:` transports. These `transwarp:` is analagous to `tcp:` and `transwarptls:` is conceptually similar to `tls:`. `transwarptls:` wraps the `westworld3` protocol in a TLS wrapper, providing the same privacy and authentication mechanisms as `tls:`.
|
||||
The `transport` integration means that Ziti now has support for the `transwarp:` and `transwarptls:` transports. These `transwarp:` is analogous to `tcp:` and `transwarptls:` is conceptually similar to `tls:`. `transwarptls:` wraps the `westworld3` protocol in a TLS wrapper, providing the same privacy and authentication mechanisms as `tls:`.
|
||||
|
||||
## Link Listener
|
||||
|
||||
@@ -592,4 +592,4 @@ Happy Transwarp-ing.
|
||||
[dilithium]: https://github.com/openziti/dilithium
|
||||
[dilithium-concepts]: https://github.com/openziti/dilithium/blob/main/docs/concepts.md
|
||||
[tuning-guide]: https://github.com/openziti/dilithium/blob/main/docs/tuning.md
|
||||
[fabric]: https://github.com/openziti/fabric
|
||||
[fabric]: https://github.com/openziti/fabric
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# quick notes on builing a snap from scratch...
|
||||
# quick notes on building a snap from scratch...
|
||||
|
||||
* checkout branch
|
||||
* install snapd if needed - https://docs.snapcraft.io/installing-snapd/6735
|
||||
* install snapcraft --classic to build snaps
|
||||
|
||||
* install snapcraft --classic to build snaps
|
||||
|
||||
snap install snapcraft --classic
|
||||
hash -r
|
||||
|
||||
@@ -13,17 +13,17 @@
|
||||
|
||||
Cleaning later steps and re-staging ziti ('build' step changed)
|
||||
Priming ziti
|
||||
Snapping 'netfoundry' -
|
||||
Snapping 'netfoundry' -
|
||||
Snapped netfoundry_0.0.1_amd64.snap
|
||||
|
||||
* install the snap in spoooky 'dangerous' and 'devmode':
|
||||
* install the snap in spoooky 'dangerous' and 'devmode':
|
||||
|
||||
sudo snap install --devmode --dangerous netfoundry*.snap
|
||||
|
||||
* ensure the snap is listed:
|
||||
|
||||
snap list | grep netfoundry
|
||||
|
||||
|
||||
should return something like:
|
||||
netfoundry 0.0.1 x1 - - devmode
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ ca_id=$(echo $ca_registration_result | jq -r '.data.id')
|
||||
echo "CA ID set to: ${ca_id}"
|
||||
sleep 1 #trying to avoid edge race conditions?
|
||||
|
||||
# fetch the verificationToken from the edge controller. this token needs to be put into a certifiate
|
||||
# fetch the verificationToken from the edge controller. this token needs to be put into a certificate
|
||||
# signed by the CA just registered
|
||||
verificationResponse=$(curl -X GET -sk -H "Content-Type: application/json" -H "zt-session: ${zt_session}" "${edge_controller_uri}/cas/${ca_id}")
|
||||
verificationToken=$(echo ${verificationResponse} | jq -r ".data.verificationToken")
|
||||
@@ -99,7 +99,7 @@ the_ca=$(curl -X GET -sk -H "Content-Type: application/json" -H "zt-session: ${z
|
||||
sleep 1 #trying to avoid edge race conditions?
|
||||
echo "at this point the ca _*SHOULD*_ be verified. is ca verified? $(echo ${the_ca} | jq -r ".isVerified")"
|
||||
|
||||
echo "acuiring the jwt from ${edge_controller_uri}/cas/${ca_id}/jwt into ${pki_root}/auto.jwt"
|
||||
echo "acquiring the jwt from ${edge_controller_uri}/cas/${ca_id}/jwt into ${pki_root}/auto.jwt"
|
||||
curl -X GET -sk -H "Content-Type: application/json" -H "zt-session: ${zt_session}" "${edge_controller_uri}/cas/${ca_id}/jwt" -o ${pki_root}/auto.jwt
|
||||
|
||||
###################################################
|
||||
|
||||
@@ -4,8 +4,8 @@ Gets the latest ziti from github and adds it to your path
|
||||
|
||||
.DESCRIPTION
|
||||
This script will:
|
||||
- detect the lastest version of ziti
|
||||
- download the latest versio of ziti into the folder of your choice, defaulting to $env:userprofile.ziti\bin)
|
||||
- detect the latest version of ziti
|
||||
- download the latest version of ziti into the folder of your choice, defaulting to $env:userprofile.ziti\bin)
|
||||
- unzip the downloaded file
|
||||
- optionally add the extracted path to your path if executed with a "dot" as in: . getLatestZiti.ps1
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ if [ ! -f ${ZITI_ROUTER_ADVERTISED_ADDRESS}.jwt ]; then
|
||||
|
||||
|
||||
# If we have override variables then override the base variable
|
||||
# This is required as the .bashrc loads the env file which clobbers passed in varibles
|
||||
# This is required as the .bashrc loads the env file which clobbers passed in variables
|
||||
if [[ "${ZITI_ROUTER_RAWNAME_OVERRIDE}" == "" ]]; then echo "ERROR: Missing ZITI_ROUTER_RAWNAME_OVERRIDE definition" >&2; exit; fi
|
||||
# May have been a bad attempt before, so lets clean up
|
||||
rm -f ${ZITI_HOME}/${ZITI_ROUTER_NAME}*
|
||||
|
||||
@@ -24,6 +24,11 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/edge-api/rest_model"
|
||||
@@ -32,10 +37,6 @@ import (
|
||||
"github.com/openziti/sdk-golang/ziti/enroll"
|
||||
"github.com/openziti/ziti/router"
|
||||
"github.com/openziti/ziti/router/internal/edgerouter"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type apiPost struct {
|
||||
@@ -225,7 +226,7 @@ func (re *RestEnroller) Send(client *resty.Client, enrollUrl string, e *apiPost)
|
||||
return nil, err
|
||||
}
|
||||
if resp.StatusCode() != http.StatusOK {
|
||||
return nil, fmt.Errorf("enrollment failed recieved HTTP status [%s]: %s", resp.Status(), resp.Body())
|
||||
return nil, fmt.Errorf("enrollment failed received HTTP status [%s]: %s", resp.Status(), resp.Body())
|
||||
}
|
||||
|
||||
return &envelope, nil
|
||||
|
||||
@@ -17,15 +17,16 @@
|
||||
package handler_edge_ctrl
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel/v2"
|
||||
"github.com/openziti/channel/v2/protobufs"
|
||||
"github.com/openziti/ziti/common/build"
|
||||
"github.com/openziti/ziti/common/pb/edge_ctrl_pb"
|
||||
"github.com/openziti/ziti/controller/env"
|
||||
"github.com/openziti/ziti/router/fabric"
|
||||
"github.com/openziti/ziti/common/build"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
type helloHandler struct {
|
||||
@@ -39,7 +40,7 @@ type helloHandler struct {
|
||||
}
|
||||
|
||||
func NewHelloHandler(stateManager fabric.StateManager, listeners []*edge_ctrl_pb.Listener) *helloHandler {
|
||||
//supportedProtocols, protocolPorts, and hostname is for backwards compatability with v0.26.3 and older controllers
|
||||
//supportedProtocols, protocolPorts, and hostname is for backwards compatibility with v0.26.3 and older controllers
|
||||
var supportedProtocols []string
|
||||
var protocolPorts []string
|
||||
hostname := ""
|
||||
@@ -51,7 +52,7 @@ func NewHelloHandler(stateManager fabric.StateManager, listeners []*edge_ctrl_pb
|
||||
protocolPorts = append(protocolPorts, strconv.Itoa(int(listener.Advertise.Port)))
|
||||
|
||||
if hostname != "" && hostname != listener.Advertise.Hostname {
|
||||
pfxlog.Logger().Warnf("this router is configured to use different hostnames for different edge listeners. If the controller is v0.26.3 or earlier this is not supported. Advertise %s will be used for all protocls", listeners[0].Advertise.Value)
|
||||
pfxlog.Logger().Warnf("this router is configured to use different hostnames for different edge listeners. If the controller is v0.26.3 or earlier this is not supported. Advertise %s will be used for all protocols", listeners[0].Advertise.Value)
|
||||
}
|
||||
|
||||
hostname = listener.Advertise.Hostname
|
||||
|
||||
@@ -18,20 +18,21 @@ package edgerouter
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/mitchellh/mapstructure"
|
||||
"github.com/openziti/ziti/common"
|
||||
"github.com/openziti/ziti/common/pb/edge_ctrl_pb"
|
||||
"github.com/openziti/ziti/router"
|
||||
"github.com/openziti/identity"
|
||||
"github.com/openziti/transport/v2"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/pflag"
|
||||
"net"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/mitchellh/mapstructure"
|
||||
"github.com/openziti/identity"
|
||||
"github.com/openziti/transport/v2"
|
||||
"github.com/openziti/ziti/common"
|
||||
"github.com/openziti/ziti/common/pb/edge_ctrl_pb"
|
||||
"github.com/openziti/ziti/router"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -256,7 +257,7 @@ func (config *Config) loadListener(rootConfigMap map[interface{}]interface{}) er
|
||||
edgeListener, err := parseEdgeListenerOptions(i, address, submap)
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("error parsing edge listner[%d]: %v", i, err)
|
||||
return fmt.Errorf("error parsing edge listener[%d]: %v", i, err)
|
||||
}
|
||||
|
||||
config.EdgeListeners = append(config.EdgeListeners, edgeListener)
|
||||
@@ -365,7 +366,7 @@ func (config *Config) loadCsr(configMap map[interface{}]interface{}, pathPrefix
|
||||
for _, uristr := range config.Csr.Sans.UriAddresses {
|
||||
parsedUrl, err := url.Parse(uristr)
|
||||
if err != nil {
|
||||
return fmt.Errorf("invalid SAN URI ecountered in configuration file: %s", uristr)
|
||||
return fmt.Errorf("invalid SAN URI encountered in configuration file: %s", uristr)
|
||||
}
|
||||
config.Csr.Sans.UriAddressesParsed = append(config.Csr.Sans.UriAddressesParsed, parsedUrl)
|
||||
}
|
||||
@@ -373,7 +374,7 @@ func (config *Config) loadCsr(configMap map[interface{}]interface{}, pathPrefix
|
||||
for _, ipstr := range config.Csr.Sans.IpAddresses {
|
||||
ip := net.ParseIP(ipstr)
|
||||
if ip == nil {
|
||||
return fmt.Errorf("invalid SAN IP address ecountered in configuration file: %s", ipstr)
|
||||
return fmt.Errorf("invalid SAN IP address encountered in configuration file: %s", ipstr)
|
||||
}
|
||||
config.Csr.Sans.IpAddressesParsed = append(config.Csr.Sans.IpAddressesParsed, ip)
|
||||
}
|
||||
|
||||
+8
-7
@@ -21,12 +21,6 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/openziti/foundation/v2/debugz"
|
||||
"github.com/openziti/foundation/v2/goroutines"
|
||||
"github.com/openziti/xweb/v2"
|
||||
"github.com/openziti/ziti/common/config"
|
||||
"github.com/openziti/ziti/router/link"
|
||||
metrics2 "github.com/rcrowley/go-metrics"
|
||||
"io/fs"
|
||||
"os"
|
||||
"path"
|
||||
@@ -35,6 +29,13 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/foundation/v2/debugz"
|
||||
"github.com/openziti/foundation/v2/goroutines"
|
||||
"github.com/openziti/xweb/v2"
|
||||
"github.com/openziti/ziti/common/config"
|
||||
"github.com/openziti/ziti/router/link"
|
||||
metrics2 "github.com/rcrowley/go-metrics"
|
||||
|
||||
gosundheit "github.com/AppsFlyer/go-sundheit"
|
||||
"github.com/AppsFlyer/go-sundheit/checks"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
@@ -363,7 +364,7 @@ func (self *Router) initRateLimiterPool() error {
|
||||
|
||||
rateLimiterPool, err := goroutines.NewPool(linkDialerPoolConfig)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "error creating rate limted pool")
|
||||
return errors.Wrap(err, "error creating rate limited pool")
|
||||
}
|
||||
|
||||
self.rateLimiterPool = rateLimiterPool
|
||||
|
||||
@@ -19,6 +19,9 @@ package xgress_edge
|
||||
import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"math/big"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/ziti/common/capabilities"
|
||||
"github.com/openziti/ziti/common/cert"
|
||||
fabricMetrics "github.com/openziti/ziti/common/metrics"
|
||||
@@ -27,8 +30,6 @@ import (
|
||||
"github.com/openziti/ziti/controller/idgen"
|
||||
"github.com/pkg/errors"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"math/big"
|
||||
"time"
|
||||
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel/v2"
|
||||
@@ -335,7 +336,7 @@ func (self *edgeClientConn) processBindV2(req *channel.Message, ch channel.Chann
|
||||
terminatorId = terminator.terminatorId.Load()
|
||||
log = log.WithField("terminatorId", terminatorId)
|
||||
|
||||
// everything is the same, we can re-use the terminator
|
||||
// everything is the same, we can reuse the terminator
|
||||
if terminator.edgeClientConn == self && terminator.token == token {
|
||||
log.Info("duplicate create terminator request")
|
||||
self.sendStateConnectedReply(req, nil)
|
||||
|
||||
@@ -17,16 +17,17 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
import (
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel/v2"
|
||||
"github.com/openziti/edge-api/rest_model"
|
||||
"github.com/openziti/ziti/tunnel/intercept"
|
||||
"github.com/openziti/sdk-golang/ziti"
|
||||
cmap "github.com/orcaman/concurrent-map/v2"
|
||||
"github.com/sirupsen/logrus"
|
||||
"reflect"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel/v2"
|
||||
"github.com/openziti/edge-api/rest_model"
|
||||
"github.com/openziti/sdk-golang/ziti"
|
||||
"github.com/openziti/ziti/tunnel/intercept"
|
||||
cmap "github.com/orcaman/concurrent-map/v2"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func newServicePoller(fabricProvider *fabricProvider) *servicePoller {
|
||||
@@ -57,7 +58,7 @@ func (self *servicePoller) handleServiceListUpdate(ch channel.Channel, lastUpdat
|
||||
return
|
||||
}
|
||||
|
||||
logrus.Debugf("procesing service updates with %v services", len(services))
|
||||
logrus.Debugf("processing service updates with %v services", len(services))
|
||||
|
||||
self.servicesLastUpdateToken.Set(ch.Id(), lastUpdateToken)
|
||||
|
||||
|
||||
@@ -20,9 +20,10 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func Test_Api_Errors(t *testing.T) {
|
||||
@@ -89,7 +90,7 @@ func Test_Api_Errors(t *testing.T) {
|
||||
madeUpToken := uuid.New().String()
|
||||
|
||||
resp, err := ctx.newAnonymousClientApiRequest().
|
||||
SetHeader("accept", "appliaction/x-pem-file, application/json").
|
||||
SetHeader("accept", "application/x-pem-file, application/json").
|
||||
Post("enroll?token=" + madeUpToken)
|
||||
|
||||
ctx.Req.NoError(err)
|
||||
|
||||
@@ -19,12 +19,13 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/Jeffail/gabs"
|
||||
"github.com/google/uuid"
|
||||
"github.com/openziti/edge-api/rest_model"
|
||||
"github.com/openziti/ziti/common/eid"
|
||||
"net/http"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_PostureChecks_ProcessMulti(t *testing.T) {
|
||||
@@ -435,7 +436,7 @@ func Test_PostureChecks_ProcessMulti(t *testing.T) {
|
||||
IsRunning: true,
|
||||
Path: process03Path,
|
||||
SignerFingerprints: []string{
|
||||
signerFingerprints[3], //no signers on 03's check shoudln't matter
|
||||
signerFingerprints[3], //no signers on 03's check shouldn't matter
|
||||
},
|
||||
}
|
||||
|
||||
@@ -640,7 +641,7 @@ func Test_PostureChecks_ProcessMulti(t *testing.T) {
|
||||
IsRunning: true,
|
||||
Path: process03Path,
|
||||
SignerFingerprints: []string{
|
||||
signerFingerprints[3], //no signers on 03's check shoudln't matter
|
||||
signerFingerprints[3], //no signers on 03's check shouldn't matter
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
package testutil
|
||||
|
||||
import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/channel/v2"
|
||||
"github.com/openziti/foundation/v2/errorz"
|
||||
"github.com/openziti/ziti/common/handler_common"
|
||||
"github.com/openziti/ziti/common/pb/ctrl_pb"
|
||||
"github.com/openziti/foundation/v2/errorz"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/stretchr/testify/require"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
type TestLink struct {
|
||||
@@ -71,7 +72,7 @@ func (self *LinkStateChecker) HandleFault(msg *channel.Message, _ channel.Channe
|
||||
}
|
||||
|
||||
func (self *LinkStateChecker) HandleOther(msg *channel.Message, _ channel.Channel) {
|
||||
// -33 = reconenct ping
|
||||
// -33 = reconnect ping
|
||||
// 5 = heartbeat
|
||||
// 1007 = metrics message
|
||||
if msg.ContentType == -33 || msg.ContentType == 5 || msg.ContentType == 1007 {
|
||||
|
||||
@@ -3,15 +3,16 @@ package health
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
health "github.com/AppsFlyer/go-sundheit"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/sdk-golang/ziti"
|
||||
"github.com/openziti/sdk-golang/ziti/edge"
|
||||
"github.com/sirupsen/logrus"
|
||||
"reflect"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -268,7 +269,7 @@ func (self *manager) OnCheckCompleted(name string, r health.Result) {
|
||||
}
|
||||
|
||||
// If result processing is slow, let it drop on the floor. In general results should be coming in
|
||||
// slowly enough that we shouln't have any trouble keeping up
|
||||
// slowly enough that we shouldn't have any trouble keeping up
|
||||
select {
|
||||
case self.results <- wrapped:
|
||||
default:
|
||||
|
||||
@@ -19,27 +19,28 @@ package tproxy
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/coreos/go-iptables/iptables"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/foundation/v2/info"
|
||||
"github.com/openziti/foundation/v2/mempool"
|
||||
"github.com/openziti/foundation/v2/stringz"
|
||||
"github.com/openziti/sdk-golang/ziti/edge/network"
|
||||
"github.com/openziti/ziti/tunnel"
|
||||
"github.com/openziti/ziti/tunnel/dns"
|
||||
"github.com/openziti/ziti/tunnel/entities"
|
||||
"github.com/openziti/ziti/tunnel/intercept"
|
||||
"github.com/openziti/ziti/tunnel/router"
|
||||
"github.com/openziti/ziti/tunnel/udp_vconn"
|
||||
"github.com/openziti/foundation/v2/info"
|
||||
"github.com/openziti/foundation/v2/mempool"
|
||||
"github.com/openziti/foundation/v2/stringz"
|
||||
"github.com/openziti/sdk-golang/ziti/edge/network"
|
||||
cmap "github.com/orcaman/concurrent-map/v2"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
"golang.org/x/sys/unix"
|
||||
"net"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -231,7 +232,7 @@ func (self *interceptor) newTproxy(service *entities.Service, resolver dns.Resol
|
||||
}
|
||||
|
||||
if t.tcpLn == nil && t.udpLn == nil {
|
||||
return nil, errors.Errorf("service %v has no supported protocols (tcp, udp). Serivce protocols: %+v", *service.Name, config.Protocols)
|
||||
return nil, errors.Errorf("service %v has no supported protocols (tcp, udp). Service protocols: %+v", *service.Name, config.Protocols)
|
||||
}
|
||||
|
||||
if t.tcpLn != nil {
|
||||
@@ -483,7 +484,7 @@ func (self *tProxy) Apply(addr *intercept.InterceptAddress) {
|
||||
if err := self.addInterceptAddr(addr, self.service, port, self.tracker); err != nil {
|
||||
logrus.Debugf("failed for service %v, intercepting proto: %v, cidr: %v, ports: %v:%v", *self.service.Name, addr.Proto(), addr.IpNet(), addr.LowPort(), addr.HighPort())
|
||||
|
||||
// do we undo the previous succesful ones?
|
||||
// do we undo the previous successful ones?
|
||||
// only fail at end and return all that failed?
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,8 +239,8 @@ Linux distributions typically manage the contents of /etc/resolv.conf, so simply
|
||||
will only work for a short time until /etc/resolv.conf is overwritten by the managing process.
|
||||
|
||||
Resolver configuration changes must survive restarts of the Linux name resolution manager. Linux
|
||||
distrubutions use one of several name resolution managers. The simplest way to determine which name
|
||||
resolution manager is being used by your Linux distrubtion is to look at /etc/resolv.conf:
|
||||
distributions use one of several name resolution managers. The simplest way to determine which name
|
||||
resolution manager is being used by your Linux distribution is to look at /etc/resolv.conf:
|
||||
|
||||
$ ls -l /etc/resolv.conf
|
||||
|
||||
@@ -256,7 +256,7 @@ ziti-tunnel's internal DNS server first by adding the following to /etc/dhcp/dhc
|
||||
prepend domain-name-servers 127.0.0.1;
|
||||
|
||||
Then restart network manager. Unless you know the name of the NetworkManager systemd
|
||||
service on your Linux distrubtion, it's probably easiest to reboot the host.
|
||||
service on your Linux distribution, it's probably easiest to reboot the host.
|
||||
|
||||
#### systemd-resolved
|
||||
|
||||
@@ -280,4 +280,4 @@ If the service hostname does not resolve, ziti-tunnel will find an unused link-l
|
||||
the route for the service:
|
||||
|
||||
[0012] INFO adding bogushost.net -> 169.254.1.4 to resolver
|
||||
[0012] INFO ziti/tunnel/protocols/tcp.Listen: Accepting on 169.254.1.4:25 service=telnet
|
||||
[0012] INFO ziti/tunnel/protocols/tcp.Listen: Accepting on 169.254.1.4:25 service=telnet
|
||||
|
||||
@@ -18,16 +18,17 @@ package api
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/Jeffail/gabs"
|
||||
"github.com/jedib0t/go-pretty/v6/table"
|
||||
"github.com/openziti/foundation/v2/errorz"
|
||||
"github.com/openziti/ziti/ziti/util"
|
||||
"github.com/pkg/errors"
|
||||
"io"
|
||||
"net/url"
|
||||
"os"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/Jeffail/gabs"
|
||||
"github.com/jedib0t/go-pretty/v6/table"
|
||||
"github.com/openziti/foundation/v2/errorz"
|
||||
"github.com/openziti/ziti/ziti/util"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// ListEntitiesOfType queries the Ziti Controller for entities of the given type
|
||||
@@ -137,7 +138,7 @@ func MapNamesToIDs(api util.API, entityType string, o *Options, list ...string)
|
||||
|
||||
if len(list) > 1 {
|
||||
fmt.Printf("Found multiple %v matching %v. Please specify which you want by prefixing with id: or name:\n", entityType, val)
|
||||
return nil, errors.Errorf("ambigous if %v is id or name", val)
|
||||
return nil, errors.Errorf("ambiguous if %v is id or name", val)
|
||||
}
|
||||
|
||||
for _, entity := range list {
|
||||
|
||||
+6
-5
@@ -19,6 +19,11 @@ package cmd
|
||||
import (
|
||||
goflag "flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/openziti/ziti/ziti/cmd/agentcli"
|
||||
"github.com/openziti/ziti/ziti/cmd/common"
|
||||
"github.com/openziti/ziti/ziti/cmd/create"
|
||||
@@ -35,10 +40,6 @@ import (
|
||||
"github.com/openziti/ziti/ziti/router"
|
||||
"github.com/openziti/ziti/ziti/tunnel"
|
||||
"github.com/openziti/ziti/ziti/util"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/openziti/ziti/common/version"
|
||||
"github.com/spf13/cobra"
|
||||
@@ -232,7 +233,7 @@ func initConfig() {
|
||||
}
|
||||
|
||||
func NewRootCommand(in io.Reader, out, err io.Writer) *cobra.Command {
|
||||
//need to make new CMD everytime because the flags are not thread safe...
|
||||
//need to make new CMD every time because the flags are not thread safe...
|
||||
ret := &cobra.Command{
|
||||
Use: "ziti",
|
||||
Short: "ziti is a CLI for working with Ziti",
|
||||
|
||||
@@ -18,6 +18,8 @@ package demo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/agent"
|
||||
"github.com/openziti/channel/v2"
|
||||
"github.com/openziti/ziti/ziti/cmd/agentcli"
|
||||
@@ -25,7 +27,6 @@ import (
|
||||
cmdhelper "github.com/openziti/ziti/ziti/cmd/helpers"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cobra"
|
||||
"time"
|
||||
)
|
||||
|
||||
type AgentEchoServerUpdateTerminatorAction struct {
|
||||
@@ -95,7 +96,7 @@ func (self *AgentEchoServerUpdateTerminatorAction) makeRequest(ch channel.Channe
|
||||
fmt.Printf("error: %v\n", result.Message)
|
||||
}
|
||||
} else {
|
||||
return errors.Errorf("unexpected reponse type: %v", reply.ContentType)
|
||||
return errors.Errorf("unexpected response type: %v", reply.ContentType)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -18,10 +18,11 @@ package edge
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/openziti/ziti/ziti/cmd/api"
|
||||
"github.com/pkg/errors"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/openziti/ziti/ziti/cmd/api"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func mapNameToID(entityType string, val string, o api.Options) (string, error) {
|
||||
@@ -97,7 +98,7 @@ func mapNamesToIDs(entityType string, o api.Options, skipNotFound bool, list ...
|
||||
|
||||
if len(list) > 1 {
|
||||
fmt.Printf("Found multiple %v matching %v. Please specify which you want by prefixing with id: or name:\n", entityType, val)
|
||||
return nil, errors.Errorf("ambigous if %v is id or name", val)
|
||||
return nil, errors.Errorf("ambiguous if %v is id or name", val)
|
||||
}
|
||||
|
||||
entityId, _ := list[0].Path("id").Data().(string)
|
||||
|
||||
@@ -20,6 +20,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/Jeffail/gabs"
|
||||
"github.com/openziti/edge-api/rest_management_api_client/authenticator"
|
||||
"github.com/openziti/foundation/v2/term"
|
||||
@@ -105,7 +106,7 @@ func runCreateIdentityPassword(idType string, options *createAuthenticatorUpdb)
|
||||
}
|
||||
|
||||
if len(result.Payload.Data) != 0 {
|
||||
return fmt.Errorf("updb authentictor already exists, update or remove it instead")
|
||||
return fmt.Errorf("updb authenticator already exists, update or remove it instead")
|
||||
}
|
||||
|
||||
if options.password == "" {
|
||||
|
||||
@@ -18,13 +18,14 @@ package edge
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/Jeffail/gabs"
|
||||
"github.com/openziti/ziti/ziti/cmd/api"
|
||||
"github.com/openziti/ziti/ziti/cmd/common"
|
||||
cmdhelper "github.com/openziti/ziti/ziti/cmd/helpers"
|
||||
"github.com/openziti/ziti/ziti/util"
|
||||
"github.com/spf13/cobra"
|
||||
"io"
|
||||
)
|
||||
|
||||
// newPolicyAdvisor creates a command object for the "controller policy-advisor" command
|
||||
@@ -176,7 +177,7 @@ func outputHeader(o *policyAdvisorOptions) error {
|
||||
"Policy General Guidelines\n"+
|
||||
" In order for an identity to dial or bind a service, the following must be true:\n"+
|
||||
" - The identity must have access to the service via a service policy of the correct type (dial or bind)\n"+
|
||||
" - The identity must have acces to at least one on-line edge router via an edge router policy\n"+
|
||||
" - The identity must have access to at least one on-line edge router via an edge router policy\n"+
|
||||
" - The service must have access to at least one on-line edge router via a service edge router policy\n"+
|
||||
" - There must be at least one on-line edge router that both the identity and service have access to.\n"+
|
||||
"\n"+
|
||||
|
||||
@@ -18,10 +18,11 @@ package edge
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/openziti/ziti/ziti/cmd/api"
|
||||
"github.com/openziti/ziti/ziti/cmd/common"
|
||||
cmdhelper "github.com/openziti/ziti/ziti/cmd/helpers"
|
||||
"io"
|
||||
|
||||
"github.com/Jeffail/gabs"
|
||||
"github.com/spf13/cobra"
|
||||
@@ -56,7 +57,7 @@ func newUpdateIdentityConfigsCmd(out io.Writer, errOut io.Writer) *cobra.Command
|
||||
|
||||
// allow interspersing positional args and flags
|
||||
cmd.Flags().SetInterspersed(true)
|
||||
cmd.Flags().BoolVarP(&options.remove, "remove", "r", false, "Remove the sevice config override")
|
||||
cmd.Flags().BoolVarP(&options.remove, "remove", "r", false, "Remove the service config override")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
@@ -18,14 +18,15 @@ package fabric
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/channel/v2"
|
||||
"github.com/openziti/channel/v2/trace/pb"
|
||||
trace_pb "github.com/openziti/channel/v2/trace/pb"
|
||||
"github.com/openziti/ziti/common/pb/mgmt_pb"
|
||||
"github.com/openziti/ziti/ziti/cmd/api"
|
||||
"github.com/openziti/ziti/ziti/cmd/common"
|
||||
"github.com/spf13/cobra"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"time"
|
||||
)
|
||||
|
||||
type streamTogglePipeTracesAction struct {
|
||||
@@ -87,7 +88,7 @@ func (self *streamTogglePipeTracesAction) togglePipeTraces(_ *cobra.Command, arg
|
||||
fmt.Printf("\ntracing enabled successfully\n\n")
|
||||
fmt.Println(result.Message)
|
||||
} else {
|
||||
fmt.Printf("\ntracing enable failured [%s]\n\n", result.Message)
|
||||
fmt.Printf("\ntracing enable failed [%s]\n\n", result.Message)
|
||||
}
|
||||
} else {
|
||||
panic(fmt.Errorf("unexpected response type %v", responseMsg.ContentType))
|
||||
|
||||
@@ -18,10 +18,10 @@ package controller
|
||||
|
||||
import (
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/ziti/controller"
|
||||
fabricdb "github.com/openziti/ziti/controller/db"
|
||||
"github.com/openziti/storage/boltz"
|
||||
"github.com/openziti/ziti/common/version"
|
||||
"github.com/openziti/ziti/controller"
|
||||
fabricdb "github.com/openziti/ziti/controller/db"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
@@ -178,7 +178,7 @@ func deleteSessions(db boltz.Db) {
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
pfxlog.Logger().Errorf("could not read databse stats: %v", err)
|
||||
pfxlog.Logger().Errorf("could not read database stats: %v", err)
|
||||
}
|
||||
|
||||
err = db.Update(nil, func(ctx boltz.MutateContext) error {
|
||||
|
||||
@@ -21,7 +21,6 @@ import (
|
||||
"crypto/x509/pkix"
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
"github.com/openziti/ziti/ziti/pki/certificate"
|
||||
"io"
|
||||
"math/big"
|
||||
"os"
|
||||
@@ -30,10 +29,12 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/openziti/ziti/ziti/pki/certificate"
|
||||
|
||||
"crypto/x509"
|
||||
)
|
||||
|
||||
// Predifined directory names.
|
||||
// Predefined directory names.
|
||||
const (
|
||||
LocalCertsDir = "certs"
|
||||
LocalKeysDir = "keys"
|
||||
@@ -95,7 +96,7 @@ func (l *Local) Fetch(caName, name string) ([]byte, []byte, error) {
|
||||
return k, c, nil
|
||||
}
|
||||
|
||||
// FetchKeyBytes fetchs the private key and certificate for a given name signed by caName.
|
||||
// FetchKeyBytes fetches the private key and certificate for a given name signed by caName.
|
||||
func (l *Local) FetchKeyBytes(caName, name string) ([]byte, error) {
|
||||
filepath.Join(l.Root, caName)
|
||||
|
||||
@@ -379,7 +380,7 @@ func (l *Local) Update(caName string, sn *big.Int, st certificate.State) error {
|
||||
for scanner.Scan() {
|
||||
matches := indexRegexp.FindStringSubmatch(scanner.Text())
|
||||
if len(matches) != 7 {
|
||||
return fmt.Errorf("line [%v] is incorrectly formated", scanner.Text())
|
||||
return fmt.Errorf("line [%v] is incorrectly formatted", scanner.Text())
|
||||
}
|
||||
|
||||
matchedSerial := big.NewInt(0)
|
||||
@@ -434,7 +435,7 @@ func (l *Local) Revoked(caName string) ([]pkix.RevokedCertificate, error) {
|
||||
for scanner.Scan() {
|
||||
matches := indexRegexp.FindStringSubmatch(scanner.Text())
|
||||
if len(matches) != 7 {
|
||||
return nil, fmt.Errorf("line [%v] is incorrectly formated", scanner.Text())
|
||||
return nil, fmt.Errorf("line [%v] is incorrectly formatted", scanner.Text())
|
||||
}
|
||||
if matches[1] != "R" {
|
||||
continue
|
||||
|
||||
@@ -17,12 +17,13 @@
|
||||
package tunnel
|
||||
|
||||
import (
|
||||
"github.com/openziti/ziti/tunnel/intercept/proxy"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cobra"
|
||||
"math"
|
||||
"net"
|
||||
"strconv"
|
||||
|
||||
"github.com/openziti/ziti/tunnel/intercept/proxy"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func NewProxyCmd() *cobra.Command {
|
||||
@@ -37,7 +38,7 @@ func NewProxyCmd() *cobra.Command {
|
||||
}
|
||||
|
||||
func runProxy(cmd *cobra.Command, args []string) error {
|
||||
// Fiddle with the poll rate and resolver settings if the user didn't wan't anything special.
|
||||
// Fiddle with the poll rate and resolver settings if the user didn't want anything special.
|
||||
if flag := cmd.Flag(svcPollRateFlag); !flag.Changed {
|
||||
_ = flag.Value.Set(strconv.FormatUint(math.MaxUint32, 10))
|
||||
}
|
||||
|
||||
+11
-10
@@ -5,14 +5,6 @@ import (
|
||||
"crypto/x509"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
httptransport "github.com/go-openapi/runtime/client"
|
||||
"github.com/openziti/edge-api/rest_management_api_client"
|
||||
"github.com/openziti/ziti/controller/env"
|
||||
fabric_rest_client "github.com/openziti/ziti/controller/rest_client"
|
||||
"github.com/openziti/identity"
|
||||
"github.com/openziti/ziti/ziti/cmd/common"
|
||||
"github.com/pkg/errors"
|
||||
"gopkg.in/resty.v1"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
@@ -21,6 +13,15 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
httptransport "github.com/go-openapi/runtime/client"
|
||||
"github.com/openziti/edge-api/rest_management_api_client"
|
||||
"github.com/openziti/identity"
|
||||
"github.com/openziti/ziti/controller/env"
|
||||
fabric_rest_client "github.com/openziti/ziti/controller/rest_client"
|
||||
"github.com/openziti/ziti/ziti/cmd/common"
|
||||
"github.com/pkg/errors"
|
||||
"gopkg.in/resty.v1"
|
||||
)
|
||||
|
||||
type API string
|
||||
@@ -128,7 +129,7 @@ func (self *RestClientEdgeIdentity) GetBaseUrlForApi(api API) (string, error) {
|
||||
}
|
||||
return u.Scheme + "://" + u.Host + "/fabric/v1", nil
|
||||
}
|
||||
return "", errors.Errorf("unsupport api %v", api)
|
||||
return "", errors.Errorf("unsupported api %v", api)
|
||||
}
|
||||
|
||||
func (self *RestClientEdgeIdentity) NewEdgeManagementClient(clientOpts ClientOpts) (*rest_management_api_client.ZitiEdgeManagement, error) {
|
||||
@@ -217,7 +218,7 @@ func (self *RestClientFabricIdentity) GetBaseUrlForApi(api API) (string, error)
|
||||
}
|
||||
return u.Scheme + "://" + u.Host + "/fabric/v1", nil
|
||||
}
|
||||
return "", errors.Errorf("unsupport api %v", api)
|
||||
return "", errors.Errorf("unsupported api %v", api)
|
||||
}
|
||||
|
||||
func (self *RestClientFabricIdentity) IsReadOnly() bool {
|
||||
|
||||
@@ -56,7 +56,7 @@ func (session *Session) Load() error {
|
||||
return fmt.Errorf("unable to load Ziti CLI configuration. Exiting. Error: %v", err)
|
||||
}
|
||||
if session.Host == "" {
|
||||
return fmt.Errorf("host not specififed in cli config file. Exiting")
|
||||
return fmt.Errorf("host not specified in cli config file. Exiting")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -18,17 +18,18 @@ package loop2
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/ziti/router/xgress_transport"
|
||||
"github.com/openziti/identity"
|
||||
"github.com/openziti/identity/dotziti"
|
||||
"github.com/openziti/sdk-golang/ziti"
|
||||
"github.com/openziti/transport/v2"
|
||||
"github.com/openziti/ziti/zititest/ziti-fabric-test/subcmd/loop2/pb"
|
||||
"github.com/openziti/ziti/router/xgress_transport"
|
||||
loop2_pb "github.com/openziti/ziti/zititest/ziti-fabric-test/subcmd/loop2/pb"
|
||||
"github.com/spf13/cobra"
|
||||
"net"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -168,7 +169,7 @@ func (cmd *dialerCmd) connect() net.Conn {
|
||||
|
||||
context, err = ziti.NewContext(zitiCfg)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to load ziti context fromt configuration: %v", err)
|
||||
log.Fatalf("failed to load ziti context from configuration: %v", err)
|
||||
}
|
||||
} else {
|
||||
log.Fatal("no configuration file provided")
|
||||
|
||||
Reference in New Issue
Block a user