Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zrok Agent #739

Merged
merged 59 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
8863ea1
'zrok daemon' cli skeleton (#463)
michaelquigley Aug 12, 2024
09e2d2a
Merge branch 'v1_0_0' into daemon_mode
michaelquigley Aug 20, 2024
2d33c99
daemon model skeleton (#463)
michaelquigley Aug 21, 2024
83ad5dd
daemon -> agent (#463)
michaelquigley Aug 22, 2024
bd0f2d7
grpc infrastructure (#463)
michaelquigley Aug 23, 2024
95098e6
roughed in grpc infrastructure for agent (#463)
michaelquigley Aug 23, 2024
3c310c2
'zrok agent' -> 'zrok agent start' (#463)
michaelquigley Aug 23, 2024
896125d
version client (#463)
michaelquigley Aug 23, 2024
23796be
package naming housekeeping (#463)
michaelquigley Aug 23, 2024
3ba1796
shutdown hook to clean up agent at exit (#463)
michaelquigley Aug 23, 2024
931d101
Merge branch 'main' into daemon_mode
michaelquigley Aug 23, 2024
c0a5afc
Merge branch 'v1_0_0' into daemon_mode
michaelquigley Aug 23, 2024
d8c9681
tweak (#463)
michaelquigley Aug 23, 2024
1808747
windows path handling
michaelquigley Aug 23, 2024
64c984f
better grpc dialing for windows (#463)
michaelquigley Aug 23, 2024
a89d8ef
more logical grpc dialing (#463)
michaelquigley Aug 23, 2024
84c7e26
'proto3' (#463)
michaelquigley Aug 26, 2024
e0592a3
factor out unix domain grpc client (#463)
michaelquigley Aug 26, 2024
66a95f0
rudimentary 'zrok agent status' messages (#463)
michaelquigley Aug 26, 2024
b69025c
rudimentary 'zrok agent status' implementation (#463)
michaelquigley Aug 26, 2024
a9bac04
most minimal public sharing (proxy only) to elaborate plumbing (#463)
michaelquigley Aug 26, 2024
6a8d41e
Merge branch 'v1_0_0' into daemon_mode
michaelquigley Aug 27, 2024
2699e0d
Merge branch 'v1_0_0' into daemon_mode
michaelquigley Sep 4, 2024
3f2e554
Merge branch 'v1_0_0' into daemon_mode
michaelquigley Sep 6, 2024
e585245
scaffolding for 'zrok agent release share' (#463)
michaelquigley Sep 10, 2024
e7405cd
stop the backend handler (#463)
michaelquigley Sep 10, 2024
597776a
roughed in share release (#463)
michaelquigley Sep 10, 2024
82d8f4b
web shares (#463)
michaelquigley Sep 10, 2024
42c3ec4
rough proctree implementation (#748)
michaelquigley Sep 12, 2024
cf7cce0
removed previous agent innards (#748)
michaelquigley Sep 12, 2024
56c58ee
minimal sub-process based agent implementatio (#748)
michaelquigley Sep 12, 2024
d26de73
return frontend endpoints, also (#748)
michaelquigley Sep 12, 2024
054788c
tail function (#748)
michaelquigley Sep 12, 2024
8525348
lint (#463)
michaelquigley Sep 12, 2024
2cf484e
better share lifecycle monitoring and error handling (#463)
michaelquigley Sep 13, 2024
9a90915
better file names (#463)
michaelquigley Sep 13, 2024
70d5fd7
target handling (#463)
michaelquigley Sep 13, 2024
5f81992
emit the '--agent' bootstrap information as soon as its available (#463)
michaelquigley Sep 13, 2024
9653980
agent shutdown lifecycle management improvements (#463, #748)
michaelquigley Sep 16, 2024
7747c3a
log lint (#463)
michaelquigley Sep 16, 2024
14719c1
ensure that proctree is fully configured (for windows) (#748)
michaelquigley Sep 16, 2024
254251a
updated grpc for private shares (#463)
michaelquigley Sep 16, 2024
dffb783
infrastructure for private sharing commands (#463)
michaelquigley Sep 16, 2024
9881401
support '--agent' for 'zrok share private' (#463)
michaelquigley Sep 16, 2024
9d829c1
private access wiring (#463)
michaelquigley Sep 17, 2024
e6a74ad
'--agent' for 'zrok access private' (#748)
michaelquigley Sep 17, 2024
fb23d23
working 'zrok agent access private' (#463)
michaelquigley Sep 17, 2024
9bf5ff5
better access listing in agent status (#463)
michaelquigley Sep 17, 2024
fa8c39b
grpc for 'zrok agent release access' (#463)
michaelquigley Sep 17, 2024
ccfe0df
'zrok agent release access' (#463)
michaelquigley Sep 17, 2024
abbd08b
Merge branch 'v1_0_0' into daemon_mode
michaelquigley Sep 17, 2024
e323107
cli bits for 'zrok agent share reserved' (#463)
michaelquigley Sep 17, 2024
cd253e4
'--agent' mode for 'zrok share reserved' (#463, #748)
michaelquigley Sep 17, 2024
df65230
reserved sharing infrastructure in the agent (#463)
michaelquigley Sep 17, 2024
7244bda
logging tweaks in 'zrok share reserved --agent' (#463)
michaelquigley Sep 17, 2024
edf40ca
all snake case (#463)
michaelquigley Sep 17, 2024
0a0d640
naming lint (#463)
michaelquigley Sep 18, 2024
d6a07b1
changelog (#463)
michaelquigley Sep 18, 2024
37ed76e
Merge branch 'v1_0_0' into daemon_mode
michaelquigley Sep 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
daemon model skeleton (#463)
  • Loading branch information
michaelquigley committed Aug 21, 2024
commit 2d33c99902951f8ff39b116ca96fef11a8c0ce31
13 changes: 13 additions & 0 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package daemon

type Daemon struct {
shares map[string]*share
accesses map[string]*access
}

func NewDaemon() *Daemon {
return &Daemon{
shares: make(map[string]*share),
accesses: make(map[string]*access),
}
}
27 changes: 27 additions & 0 deletions daemon/model.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package daemon

import (
"github.com/openziti/zrok/sdk/golang/sdk"
"time"
)

type share struct {
token string

basicAuth []string
frontendSelection []string
backendMode sdk.BackendMode
insecure bool
oauthProvider string
oauthEmailAddressPatterns []string
oauthCheckInterval time.Duration
closed bool
accessGrants []string
}

type access struct {
token string

bindAddress string
responseHeaders []string
}
Loading