Commit Graph

553 Commits

Author SHA1 Message Date
Michael Quigley
ad818e1dfa
removed spark data log lint 2023-04-03 14:33:21 -04:00
Michael Quigley
5146ca8f24
better (?) limit email formatting (#279) 2023-04-03 14:19:43 -04:00
Michael Quigley
6fc794ea50
email subject (#279); record windowed transfer correctly in journals (#273); properly cycle the relax run when inbound usage is happenign (#276) 2023-03-29 17:03:42 -04:00
Michael Quigley
69990447c9
warning graphic for limit email (#279); only run relax actions when reverting a limit not a warning (#276) 2023-03-29 16:24:52 -04:00
Michael Quigley
d3be3195bf
improved warning email text (#279) 2023-03-29 16:14:57 -04:00
Michael Quigley
3c92b9a8d0
share, environment, and account relax actions all support private shares in addition to public shares; consolidated relax code (#278) 2023-03-29 15:08:04 -04:00
Michael Quigley
540e3ffa74
record share identifier for access private frontends (#278) 2023-03-29 14:21:02 -04:00
Michael Quigley
dfb35cc588
store implementation for private_share_id (#278) 2023-03-29 14:05:44 -04:00
Michael Quigley
98d5d20d34
sqlite3 'private_share_id' column in 'frontends' table (#278) 2023-03-29 13:57:15 -04:00
Michael Quigley
73ea6184c5
add 'private_share_id' to store 'frontends' table (#278) 2023-03-29 13:53:14 -04:00
Michael Quigley
f9dc0f6ba1
check limit journals for creating environments or shares (#281) 2023-03-29 13:29:12 -04:00
Michael Quigley
b8aec46548
debug lint (#276) 2023-03-28 15:19:01 -04:00
Michael Quigley
e2d0b7990e
empty metrics data sets are not an error (#280) 2023-03-28 15:06:19 -04:00
Michael Quigley
bd4ce22d97
don't try to replace policies for deleted shares (#276) 2023-03-28 15:05:51 -04:00
Michael Quigley
9a6f6a8e2f
tweaks, improvements, and minor fixes to limits infrastructure as a result of share limit testing (#276) 2023-03-28 14:39:42 -04:00
Michael Quigley
d279fbb8cb
roughed in limit warning email actions (#276) 2023-03-27 15:29:25 -04:00
Michael Quigley
bb61bdb664
limit warning emails (#276) 2023-03-27 15:07:09 -04:00
Michael Quigley
1c544c6c33
acount limit and relax action implementations (#276) 2023-03-27 14:06:57 -04:00
Michael Quigley
a6c2841cf2
environment limit and relax actions (#276) 2023-03-27 14:01:31 -04:00
Michael Quigley
558606fad3
add trx to action interfaces; implement limit and relax for share (#276) 2023-03-27 13:51:48 -04:00
Michael Quigley
44cbb8491c
action execution logic (#276) 2023-03-27 13:00:05 -04:00
Michael Quigley
067d9901d6
account action skeletons (#276) 2023-03-27 11:53:18 -04:00
Michael Quigley
2ab6730e23
environment action skeletons (#276) 2023-03-27 11:43:58 -04:00
Michael Quigley
662693c2c9
share action skeletons (#276) 2023-03-27 11:34:29 -04:00
Michael Quigley
fdc5154873
necessary actions (#276) 2023-03-23 17:16:35 -04:00
Michael Quigley
14c299ee80
strategy -> action (#276) 2023-03-23 17:07:48 -04:00
Michael Quigley
c91fc8ac9e
handlers for account, environment, and strategy (#276) 2023-03-23 17:04:10 -04:00
Michael Quigley
0bed934976
limit relax triggers and associated store tweaks (#273) 2023-03-23 15:13:59 -04:00
Michael Quigley
0ed00ebc2c
to find the current latest journal entries for each account_id (#273) 2023-03-22 15:42:47 -04:00
Michael Quigley
bc5481a249
self -> str 2023-03-22 15:17:27 -04:00
Michael Quigley
12de429ead
lint (#276) 2023-03-22 15:01:05 -04:00
Michael Quigley
b172ca1100
limit journal logic for limits.Agent (#273, #276) 2023-03-22 14:10:07 -04:00
Michael Quigley
b103195f88
working out the hitches in the limit journals (#273) 2023-03-22 13:09:21 -04:00
Michael Quigley
d0dd04a141
share limits check owned by limits.Agent now (#277) 2023-03-21 16:34:45 -04:00
Michael Quigley
79e9f484dc
centralized environment limits check (#277) 2023-03-21 16:18:17 -04:00
Michael Quigley
2ec228c496
basic limits infrastructure for detecting warning and enforcement conditions (#271) 2023-03-21 14:06:23 -04:00
Michael Quigley
73ef98d7a6
queue-based internal design for limits.Agent (#271) 2023-03-21 13:05:22 -04:00
Michael Quigley
7360598df5
naming (#271) 2023-03-21 12:38:31 -04:00
Michael Quigley
40ae2da2c9
better account and environment total efficiency and accuracy; 'bytesRead'/'bytesWritten' -> 'rx'/'tx' (#271) 2023-03-20 15:37:21 -04:00
Michael Quigley
8bf6875c3f
probably not an optimal approach for this flux query, but seems to be working (#271) 2023-03-20 15:05:45 -04:00
Michael Quigley
96d2f15055
working (but not correct) values for account and environment rx/tx (#271) 2023-03-17 14:04:01 -04:00
Michael Quigley
df56e49fab
flux query influx for duration totals (#271) 2023-03-17 13:51:12 -04:00
Michael Quigley
9418195150
more limits.Agent elaboration (#271) 2023-03-17 13:13:33 -04:00
Michael Quigley
b69237e9cc
include rx|tx byte counts in limits journals (#273) 2023-03-17 12:57:26 -04:00
Michael Quigley
0fa682e764
[account|environment|share] limit journals (#273) 2023-03-17 12:02:18 -04:00
Michael Quigley
1af440fa37
limits journals ddl (#273) 2023-03-17 11:46:28 -04:00
Michael Quigley
192a49fe19
wire in the new 'limits.Agent' infrastructure; extend the 'metrics.Agent' to support additional 'metrics.UsageSink' instances (#271) 2023-03-16 15:05:39 -04:00
Michael Quigley
86126b3f53
metrics2 -> metrics (#270) 2023-03-15 16:14:06 -04:00
Michael Quigley
3f7db68ed7
updated websocketSource (#270) 2023-03-15 16:11:12 -04:00
Michael Quigley
89202873bc
incorporate metrics.Agent into the controller (#270) 2023-03-15 16:05:01 -04:00
Michael Quigley
b4d13e15f0
agent (#270) 2023-03-15 15:38:35 -04:00
Michael Quigley
20bd5bbb09
detail cache (#270) 2023-03-15 15:16:48 -04:00
Michael Quigley
8b99d13f40
lint (#270) 2023-03-15 15:13:51 -04:00
Michael Quigley
917226012c
influxWriter (#270) 2023-03-15 15:13:21 -04:00
Michael Quigley
1e9a57cb81
usageIngest (#270) 2023-03-15 15:08:06 -04:00
Michael Quigley
bf43366e40
amqpSource (#270) 2023-03-15 14:52:14 -04:00
Michael Quigley
b420211c8d
lint (#270) 2023-03-15 14:39:25 -04:00
Michael Quigley
182c7bc510
basic amqp bridge (#270) 2023-03-15 13:49:17 -04:00
Michael Quigley
559a59cd8e
revamped fileSource+amqpSink (#270) 2023-03-15 12:47:26 -04:00
Michael Quigley
9ca7dfb102
amqp sender (#270) 2023-03-14 16:23:34 -04:00
Michael Quigley
858872f861
lint 2023-03-14 14:45:44 -04:00
Michael Quigley
66e0c0e479
record environment and account ids on metrics records (#235); 'zrok metrics' -> 'zrok ctrl metrics' (#269) 2023-03-13 16:20:56 -04:00
Michael Quigley
a601600bb4
write circuit data to metrics (#263) 2023-03-13 15:17:07 -04:00
Michael Quigley
d54fefb0fe
consolidated configuration; 'zrok metrics' and 'zrok ctrl' share config (#269) 2023-03-13 14:19:38 -04:00
Michael Quigley
bc1b42d946
incorporate a separate 'warning' and 'limit' threshold (#235) 2023-03-10 14:32:00 -05:00
Michael Quigley
83ab21f00c
roughed in limits model that incorporates bandwidth limit specs (#235) 2023-03-10 14:25:29 -05:00
Michael Quigley
84f5cd4e55
metrics agent needs soft deleted shares; kind of the whole point of soft deletes (#262) 2023-03-10 11:33:06 -05:00
Michael Quigley
fb14b12446
soft deletes for shares (#262) 2023-03-10 11:16:37 -05:00
Michael Quigley
01dd77ca3b
soft deletes for password_reset_request (#262) 2023-03-10 11:14:01 -05:00
Michael Quigley
d900043fa3
soft deletes for invite_tokens (#262) 2023-03-10 11:10:48 -05:00
Michael Quigley
b8d758080b
soft deletes for frontend (#262) 2023-03-10 11:07:57 -05:00
Michael Quigley
77894b18a1
reversing lint (#262) 2023-03-10 11:03:42 -05:00
Michael Quigley
d979d259c4
lint (#262) 2023-03-10 11:00:09 -05:00
Michael Quigley
bf63092cb2
better finder behavior (#262) 2023-03-10 10:57:59 -05:00
Michael Quigley
9da1137a78
soft delete support for account_requests (#262) 2023-03-09 15:29:15 -05:00
Michael Quigley
47fe0f546a
controller logic respects store.Account.Deleted flag (#262) 2023-03-09 15:18:26 -05:00
Michael Quigley
a0e94330c7
added 'deleted' flags to all store objects (#262) 2023-03-09 15:08:59 -05:00
Michael Quigley
4c8f7099b2
backend/frontend metrics (#128) 2023-03-09 14:29:40 -05:00
Michael Quigley
7ac9e25611
store the usage in influx (#128) 2023-03-07 16:29:39 -05:00
Michael Quigley
97f20acd87
look up share details from usage data (#128) 2023-03-07 15:27:39 -05:00
Michael Quigley
3a0c06f54d
ziti edge client in sdk package (#128) 2023-03-07 14:31:39 -05:00
Michael Quigley
df4c52aae5
remove legacy v0.3 metrics infrastructure (#128) 2023-03-07 12:57:35 -05:00
Michael Quigley
c81a1c3754
remove buffer 2023-03-07 11:46:34 -05:00
Michael Quigley
396f892625
vestigial websocket stuff (#128) 2023-03-06 15:59:08 -05:00
Michael Quigley
deeeaaa1c3
websocket source (#128) 2023-03-06 15:59:07 -05:00
Michael Quigley
4f33c3d1dd
better index path configurability (#128) 2023-03-06 15:59:07 -05:00
Michael Quigley
e4877a20ed
basic position durability for tail operation (#128) 2023-03-06 15:59:07 -05:00
Michael Quigley
2192c23760
start of infrastructure for positionally resuming tail (#128) 2023-03-06 15:59:06 -05:00
Michael Quigley
1b1ecd91e1
usage model (#128) 2023-03-06 15:59:06 -05:00
Michael Quigley
f5846681e7
basic file source and usage ingester (#128) 2023-03-06 15:59:05 -05:00
Michael Quigley
55523ae7ed
usage ingester skeleton (#128) 2023-03-06 15:59:05 -05:00
Michael Quigley
e6dc836cc6
more metrics infrastructure (#128) 2023-03-06 15:59:05 -05:00
Michael Quigley
f2e887f70b
metrics infrastructure (#128) 2023-03-06 15:59:04 -05:00
Michael Quigley
022084ec88
basic 'fabric.usage' parsing (#128) 2023-03-06 15:59:04 -05:00
Michael Quigley
217a0caec3
hackery 2023-03-06 15:59:04 -05:00
Michael Quigley
2f72fbc9f2
broken initial usage infrastructure 2023-03-06 15:59:03 -05:00
Cam Otts
92b5a4fd2a
small ui fix and added better error for tokens 2023-02-07 19:06:35 -06:00
Cam Otts
8203811f34
removed debugging log 2023-02-02 09:24:06 -06:00
Cam Otts
9aba5f3524
added error checking for name collision on frontend and send corresponding error 2023-02-01 13:13:15 -06:00
Cam Otts
cd08b98a0a
added configuration endpoint which sends tou link and version info 2023-01-31 12:44:03 -06:00
Michael Quigley
abb5a5e537
log invalid authentication attempts (#186) 2023-01-30 11:43:28 -05:00
Michael Quigley
d9258a2915
operational improvements in log messages (#186) 2023-01-30 11:38:55 -05:00
Michael Quigley
685683312b
registration/email_from -> email/from (#178) 2023-01-23 16:52:13 -05:00
Michael Quigley
ed2b1a653d
account -> reset_password (#175) 2023-01-23 16:44:08 -05:00
Michael Quigley
789532fff9
fix sqlite migration (#156) 2023-01-23 12:52:47 -05:00
Michael Quigley
b32ee6350e
implement the new password hashing approach (#156) 2023-01-23 12:50:24 -05:00
Michael Quigley
45d83d1521
salted password migrations (#156) 2023-01-23 11:49:22 -05:00
Michael Quigley
44f61d3bb7
email tweaks (#157) 2023-01-20 14:01:02 -05:00
Michael Quigley
088283d528
explicit lint 2023-01-20 12:45:02 -05:00
Michael Quigley
37d4586a03
log lint 2023-01-20 12:36:13 -05:00
Michael Quigley
3a0bc3c1c8
reset password email styling (#157) 2023-01-20 12:25:14 -05:00
Michael Quigley
1789e79b98
updated invitation email (#157) 2023-01-20 12:18:18 -05:00
Michael Quigley
7d3eeff885
forgot -> reset; password reset testing & tweaks (#65) 2023-01-20 12:08:40 -05:00
Michael Quigley
cc7516460c
Merge pull request #173 from openziti/forgot-password
Initial forgot password implementation (#65)
2023-01-20 11:21:36 -05:00
Cam Otts
3917892c58
missed bad request for password reset request 2023-01-20 10:04:52 -06:00
Cam Otts
2bbf404bae
added maintenance cleanup for expired password reset requests 2023-01-20 10:00:46 -06:00
Michael Quigley
73f068c54a
failing token invites fail with 401; display a hint about --token in the cli error message (#172) 2023-01-19 15:40:41 -05:00
Michael Quigley
1c77fdc065
remove frontend service policies (#171) 2023-01-19 15:23:38 -05:00
Michael Quigley
8bf060f71d
remove any frontend records assigned to an environment when the environment (#171) 2023-01-19 15:17:30 -05:00
Cam Otts
a07c4a519c
initial pass for forgot password 2023-01-18 13:05:10 -06:00
Michael Quigley
8f517876e0
fixes to postgres migrations to prevent primary key collisions (#160); fixes to migrations to remove renaming lint 2023-01-17 11:59:27 -05:00
Michael Quigley
8ef5225b20
updated verifiation email styling (#157) 2023-01-17 11:23:26 -05:00
Michael Quigley
f5ab73bcb0
openziti-rest-kitchen -> openziti (#158) 2023-01-13 15:01:34 -05:00
Michael Quigley
e8e87ca6ac
fine, sqlite, fine... (#96) 2023-01-13 13:29:34 -05:00
Michael Quigley
4e4bd1c876
limitless flag on accounts (#96) 2023-01-13 13:16:10 -05:00
Michael Quigley
e6932d67f2
limits on shares (#96) 2023-01-13 10:34:21 -05:00
Michael Quigley
faf3834c42
environment limits (#96) 2023-01-13 10:19:11 -05:00
Michael Quigley
0aa0eea0c7
the most rudimentary of limits (#96) 2023-01-13 09:42:42 -05:00
Michael Quigley
2da67d4a29
account expiration tweaks (#135) 2023-01-12 16:00:09 -05:00
Michael Quigley
a48fb04870
Merge branch 'v0.3.0' into stale-account-request-cleanup 2023-01-12 15:15:30 -05:00
Michael Quigley
7324c01fe8
controller config defaults 2023-01-12 15:12:48 -05:00
Cam Otts
679aa09615
added batch limits 2023-01-12 14:09:04 -06:00
Michael Quigley
63edd0ed48
logging improvements 2023-01-12 15:01:34 -05:00
Michael Quigley
627d9eb882
the 'registration' stanza should not be required (#147) 2023-01-12 14:17:09 -05:00
Cam Otts
0db3f0c9e6
added explicit get and delete for expired account requests 2023-01-12 13:00:16 -06:00
Cam Otts
deb6831fee
remove old test log and add log for exiting loop 2023-01-12 10:15:10 -06:00
Cam Otts
3a79608474
Merge branch 'v0.3.0' into stale-account-request-cleanup 2023-01-12 10:14:03 -06:00
Cam Otts
602c54cc43
Merge branch 'v0.3.0' into alternate-token-method 2023-01-12 10:08:06 -06:00
Cam Otts
e69119896e
added go routine to cleaup expired access requests 2023-01-12 10:04:56 -06:00
Michael Quigley
575a3f7030
a random token will work better 2023-01-10 16:43:58 -05:00
Michael Quigley
4792aa0064
include the secret token in the identity name to avoid collisions 2023-01-10 16:41:45 -05:00
Cam Otts
ee078a9e10
pr comments 2023-01-10 12:26:22 -06:00
Cam Otts
049ef6c9e9
send correct unauthorized error 2023-01-10 10:05:57 -06:00
Cam Otts
bb3d488212
move token generation to admin and add needed security to it 2023-01-10 09:53:41 -06:00
Cam Otts
354ccb853f
sqlite typo 2023-01-09 13:40:32 -06:00
Cam Otts
0734e7b511
pr comments 2023-01-09 13:23:02 -06:00
Cam Otts
e5b749be71
initial rough pass for a stored token implementation 2023-01-09 11:00:37 -06:00
Michael Quigley
e9c888f41d
elide secrets; tidy messes (#107) 2023-01-05 13:40:34 -05:00
Michael Quigley
d0cdcd3956
don't abandon detail generation if sparkdata is not available 2023-01-05 13:06:15 -05:00
Michael Quigley
3943aef40a
service -> share (#144) 2023-01-04 14:42:58 -05:00
Michael Quigley
74b9786a61
more services -> shares (#144) 2023-01-04 14:21:23 -05:00
Michael Quigley
fe89551bfb
massive services -> share boatload (#144) 2023-01-04 13:43:37 -05:00
Michael Quigley
9572ed3c73
controller, store infrastructure; services -> shares (#144) 2023-01-04 13:13:50 -05:00
Michael Quigley
1e6c35d6de
services -> shares in the schema (#144) 2023-01-04 12:59:36 -05:00
Michael Quigley
e0541ad094
controller organizational lint 2022-12-22 16:06:23 -05:00
Michael Quigley
a125c4b40b
/detail/service backend (#107) 2022-12-22 15:09:37 -05:00
Michael Quigley
3856d6eb61
roughed in environment details (#107) 2022-12-22 14:56:19 -05:00
Michael Quigley
a0fd3a9c63
/detail/environmment; environment detail api backend (#107) 2022-12-22 13:51:29 -05:00
Michael Quigley
2fb9e4fa9b
quick hack to make identity names more unique 2022-12-21 21:48:24 -05:00
Michael Quigley
ad515147b5
fix for non-unique service policy names (#112) 2022-12-21 14:31:14 -05:00
Michael Quigley
c9a96aa473
smol lint and polish on zrokEdgeSdk (#112) 2022-12-15 11:50:30 -05:00
Michael Quigley
44da809c94
further cleanup of sp dial and bind (#112) 2022-12-14 17:21:56 -05:00
Michael Quigley
1c5b030472
massive zrokEdgeSdk cleanups around service policies (#112) 2022-12-14 17:17:19 -05:00
Michael Quigley
d9148490a3
more zrokEdgeSdk lint and consolidation (#112) 2022-12-14 15:47:14 -05:00
Michael Quigley
8e56117c51
ziti_edge_sdk; config naming lint (#112) 2022-12-14 15:10:45 -05:00
Michael Quigley
0fe55e8213
improvements to zrok_sdk_edge for identities (#112) 2022-12-14 14:57:55 -05:00
Michael Quigley
65ff0f4f23
let's try embracing more camel case 2022-12-14 14:40:45 -05:00
Michael Quigley
856cf45ddc
zrok_edge_sdk; identity (#112) 2022-12-14 14:31:47 -05:00
Michael Quigley
f1388ab271
ziti_edge_sdk; erp (#112) 2022-12-14 14:13:40 -05:00
Michael Quigley
a77f39e97d
CreateShareService (#112) 2022-12-14 14:11:50 -05:00
Michael Quigley
cc1f62e317
edge sdk config (#112) 2022-12-14 14:09:54 -05:00
Michael Quigley
f46a1533a6
service policy (#112) 2022-12-14 14:04:29 -05:00
Michael Quigley
7b520597d6
edge_ctrl -> zrok_edge_sdk; serp (#112) 2022-12-14 13:58:41 -05:00
Michael Quigley
06ce17ae8f
centralizing edge_ctrl sdk; tags, service (#112) 2022-12-14 13:06:26 -05:00
Michael Quigley
ac09f2d749
modular backend implementation for share private (#95) 2022-12-13 12:24:28 -05:00
Michael Quigley
7585691b07
default metrics service name 2022-12-07 13:41:16 -05:00
Michael Quigley
362b8c2b84
more slickness tweaks for demonstration purposes 2022-12-07 12:24:00 -05:00
Michael Quigley
f12868c116
quickstart polish 2022-12-07 12:01:56 -05:00
Michael Quigley
4b7c1d3b51
formatting faux pas'es 2022-12-06 14:53:59 -05:00
Michael Quigley
9f4c37f88a
create service (dial) policy for new identity for metrics service (#130) 2022-12-06 14:16:15 -05:00
Michael Quigley
13fabc9ec6
basic 'admin create identity' infrastructure (#130) 2022-12-06 14:06:12 -05:00
Michael Quigley
4c70212304
zrok admin bootstrap now checks frontend entry for frontend identity (#131) 2022-12-06 12:25:17 -05:00
Michael Quigley
a0c50c68e5
allow share endpoint to return multiple frontends; more frontend selection (#110) 2022-12-06 12:00:25 -05:00
Michael Quigley
081a558ba2
refactor public sharing backend to use frontend selection, rather than hard-wired frontend zids (#110) 2022-12-06 11:48:59 -05:00
Michael Quigley
95adcfe10a
assert service policies for frontend and ctrl <-> metrics (#131) 2022-12-05 17:29:37 -05:00
Michael Quigley
6e42fa0225
assert metrics serp (#131) 2022-12-05 16:48:59 -05:00
Michael Quigley
4d75e2da4f
lint; assert 'metrics' service (#131) 2022-12-05 16:10:38 -05:00
Michael Quigley
15d289cc87
create ctrl and frontend identities if missing (#131) 2022-12-05 15:40:42 -05:00
Michael Quigley
e13ff1f090
fix for error message parameter lint (#131) 2022-12-05 15:03:55 -05:00
Michael Quigley
0dcd614cd5
create missing erps for ctrl and frontend identities (#131) 2022-12-05 15:00:22 -05:00
Michael Quigley
f385d9de3b
assert erps for identities (#131) 2022-12-05 14:25:49 -05:00
Michael Quigley
2fda4351ed
lint (#131) 2022-12-05 14:06:53 -05:00
Michael Quigley
d238809481
get zids from local identity configs (#131) 2022-12-05 14:00:51 -05:00
Michael Quigley
e0a734be2e
admin bootstrap scaffolding (#131) 2022-12-05 13:12:12 -05:00
Michael Quigley
7458c625aa
update backend proxy endpoint when overridden (#125) 2022-12-02 16:18:28 -05:00
Michael Quigley
135fd483fa
update share backend (#125) 2022-12-02 13:21:05 -05:00
Michael Quigley
5ba457313a
admin update frontend (#129) 2022-12-02 12:19:41 -05:00
Michael Quigley
38c83fda92
update frontend backend (#129) 2022-12-02 10:46:53 -05:00
Michael Quigley
d5d2497955
list frontends backend (#129) 2022-12-02 09:30:06 -05:00
Michael Quigley
309f4e7d87
add backend for 'admin delete frontend' (#129) 2022-12-02 08:58:41 -05:00