Commit Graph

187 Commits

Author SHA1 Message Date
Darren Shepherd
92638937df Add state info to relationships 2020-10-23 14:00:11 -07:00
Darren Shepherd
a44863b331 Switch clustercache to index by gvk not gvr 2020-10-23 13:57:57 -07:00
Darren Shepherd
12b7626eda Don't drop schemas that have existing authorization 2020-10-22 17:03:41 -07:00
Darren Shepherd
c84c1b52af Fix impersonating serviceaccounts for podimpersonation 2020-10-21 22:39:34 -07:00
Darren Shepherd
e7858849e9 Send 401 not 403 for local cluster proxy when unauthed 2020-09-30 11:23:48 -07:00
Darren Shepherd
f86e19a301 Don't put an update link if update is not allowed 2020-09-29 10:47:59 -07:00
Darren Shepherd
a8ce2f5ec8 Ensure we send an error when the resource version is too old. 2020-09-27 17:51:52 -07:00
Darren Shepherd
4e31a4b24b Close watch channel on exit 2020-09-25 18:03:59 -07:00
Darren Shepherd
09d79b238b Normalize conditions 2020-09-22 13:46:46 -07:00
Darren Shepherd
8db386d225 If no namespace access at all still include list 2020-09-18 17:19:14 -07:00
Darren Shepherd
7c151f76f8 Ensure that impersonation pods are deleted after an hour 2020-09-17 12:23:07 -07:00
Darren Shepherd
cfede8c002 Make podimpersonation image configurable 2020-09-10 23:56:18 -07:00
Darren Shepherd
e106b9e16b Remove userpreferences from steve 2020-09-10 23:04:28 -07:00
Darren Shepherd
d496dd31d1 Convert array/map of native types properly 2020-09-10 21:34:27 -07:00
Darren Shepherd
9b7fcc9a01 Use local scheme for parameter decoding 2020-09-09 15:19:21 -07:00
Darren Shepherd
e81a4e2c6e Allow service account auth to work with Transport/WrapTransport set 2020-09-09 12:00:04 -07:00
Darren Shepherd
1b98deb6c9 Set x-forwarded-proto if unset and needed. 2020-09-08 14:30:46 -07:00
Darren Shepherd
cfcf1a5196 Support service accounts through the proxy by supporting bearer tokens 2020-09-06 21:30:17 -07:00
Darren Shepherd
f0b94379d1
Merge pull request #8 from ibuildthecloud/master
Don't return revision in counts and only return error/transitions states
2020-08-27 21:31:01 -07:00
Darren Shepherd
53e5a27ce7 Don't return revision in counts and only return error/transitions states 2020-08-27 21:28:37 -07:00
Darren Shepherd
4911ec913f Support lookups where user.Info refers to a serviceaccount. 2020-08-11 10:59:02 -07:00
Darren Shepherd
6ebfa39af8 Metadata field should be create/update=true 2020-08-10 12:43:05 -07:00
Darren Shepherd
f3edb7357f Bump to shell:v0.0.10 2020-08-07 15:21:03 -07:00
Darren Shepherd
a528c500cf Set pod status to state 2020-08-03 19:52:04 -07:00
Darren Shepherd
dcea1db3d7 Remove clusters and helm release resources 2020-07-29 21:47:58 -07:00
Darren Shepherd
a3fbe499d1 testing 2020-07-24 01:42:00 -07:00
Darren Shepherd
f403507ea9 Always calculate state from current object, not cached object 2020-07-21 08:26:28 -07:00
Darren Shepherd
10b1eac592 Fix concurrent map access panic 2020-07-21 08:26:08 -07:00
Darren Shepherd
4e81175966 Reenabled events 2020-07-20 09:21:18 -07:00
Darren Shepherd
e27f384795 Only send counts every second if there is a change 2020-07-20 09:21:03 -07:00
Darren Shepherd
ece0f7bce5 Rename to RESTConfig 2020-07-19 13:56:34 -07:00
Darren Shepherd
969e1adfed Add podimpersonation package 2020-07-19 13:55:34 -07:00
Darren Shepherd
34e6de07fb Make notifier optional 2020-07-14 13:28:21 -07:00
Darren Shepherd
f4ef308923 Drop rancher auth 2020-07-14 13:27:58 -07:00
Darren Shepherd
33b6924291 Update imports for wranger-api 2020-07-14 13:27:47 -07:00
Darren Shepherd
a9c39ef89b Support watching names and selector 2020-06-22 09:42:18 -07:00
Darren Shepherd
9571ce9890 Fix shell 2020-06-22 09:41:48 -07:00
Darren Shepherd
d796ed60a7 Show resource relationships 2020-06-22 08:49:49 -07:00
Darren Shepherd
5c768508bb Fix broken create. 2020-06-12 14:18:13 -07:00
Darren Shepherd
4c61f95a6a Don't redirect by default to dashboard 2020-06-12 14:17:57 -07:00
Darren Shepherd
d1a7dbb0b9 Shuffle around code and use rancher/apiserver 2020-06-11 21:51:19 -07:00
Darren Shepherd
2543926f99 Fix missing links on configmaps and secret 2020-06-10 21:18:22 -07:00
Darren Shepherd
8b9bea44c6 Don't cancel context of subscribe on method exit 2020-06-10 15:46:19 -07:00
Darren Shepherd
72db28d5ea Fix map concurrent read/write 2020-06-08 13:10:07 -07:00
Darren Shepherd
2eb87bffc1 Add fields to cluster 2020-06-05 20:45:26 -07:00
Darren Shepherd
0849182bdd Ensure that userpreferences always works. 2020-06-05 17:19:07 -07:00
Darren Shepherd
b60484bf2e Add support for listing helm releases 2020-06-05 13:30:33 -07:00
Darren Shepherd
445acdc240 Increase security around cluster shell 2020-06-02 08:51:42 -07:00
Darren Shepherd
3eba71d06b Add kubectl shell support 2020-06-01 15:59:38 -07:00
Darren Shepherd
d3ce9c1739 Add virtual clusters resource 2020-05-30 21:45:11 -07:00
Darren Shepherd
1336014def Add authentication by default 2020-05-30 19:02:49 -07:00
Darren Shepherd
a8e9297258 Fix possible context leaks 2020-05-22 15:34:59 -07:00
Darren Shepherd
a48c49f660 Don't reuse summary informer after the informer is stopped 2020-05-22 15:34:43 -07:00
Darren Shepherd
9e4ed62a47 Don't return tables for puts 2020-05-18 09:38:24 -07:00
Darren Shepherd
4d0c8c332c Allow factory options to be passed in 2020-05-16 22:25:31 -07:00
Darren Shepherd
bebae7637a Remove dependency on generic.ControllerManager 2020-04-15 22:49:45 -07:00
Dan Ramich
f620bd48b5 Drop things from the queue when completed 2020-04-15 17:46:35 -07:00
Darren Shepherd
4645d8df16 Don't consider x-forwarded-port for the value of HTTP HOST 2020-04-01 15:03:05 -07:00
Darren Shepherd
ccc92e7b19 Check for nil interface value 2020-03-30 17:17:32 -07:00
Darren Shepherd
420f62f642 Update to k8s 1.18 2020-03-26 13:58:51 -07:00
Darren Shepherd
7b434b1338 Fix panic in counts 2020-03-25 18:15:21 -07:00
Darren Shepherd
8f5ca57628 Set namespace to request namespace on create if namespace is empty 2020-03-24 15:10:17 -07:00
Darren Shepherd
1d84c1fc9f Only start informers once in clustercache 2020-03-24 15:10:01 -07:00
Darren Shepherd
3bb1459a8b Watch by name should use the admin client 2020-03-21 22:33:24 -07:00
Darren Shepherd
2daf0ce8ee Don't send access details in the schema as it's too large 2020-03-21 22:31:13 -07:00
Darren Shepherd
4c13c6bd95 Use ligherweight summarized objects for clustercache 2020-03-21 07:51:13 -07:00
Darren Shepherd
72eb648550 Return 401 on auth failure 2020-03-21 07:49:44 -07:00
Darren Shepherd
c61e788d6e Don't use slow strings.Compare 2020-03-21 07:49:17 -07:00
Darren Shepherd
b78a8b03dd Check for columns for non-watchable types too 2020-03-18 12:17:40 -07:00
Darren Shepherd
eda3ecf987 Fix counts 2020-03-14 11:46:20 -07:00
Darren Shepherd
d457428bff Add states to counts 2020-03-12 19:22:37 -07:00
Darren Shepherd
4f6e4d4e16 Create namespace on demand for rancher pref store 2020-03-12 14:01:52 -07:00
Darren Shepherd
c7a5c4f069 Only drop API type if replacement type can be found 2020-03-12 14:01:40 -07:00
Darren Shepherd
655b7a85ee Add userpreferences 2020-03-12 13:14:47 -07:00
Darren Shepherd
0ad6c2aba1 Drop non-preferred version and version in the schema id 2020-03-10 23:12:04 -07:00
Darren Shepherd
d6c6de17bd Transform table to obj on create 2020-03-10 13:30:46 -07:00
Darren Shepherd
02caeafb5d Support gzip encoding 2020-03-09 23:17:40 -07:00
Caleb Bron
7053fa63d4 Routes includes apis path prefix 2020-03-02 16:04:13 -07:00
Caleb Bron
b61c701f53 Allow UIs apikeys path by splitting steves api paths 2020-03-02 10:48:23 -07:00
Darren Shepherd
6dafed731f RBAC performance improvements 2020-03-01 22:23:36 -07:00
Darren Shepherd
283790802c Add back missing subscribe 2020-03-01 09:00:08 -07:00
Darren Shepherd
68ed467231 Ensure redirector supports Hijacking if possible 2020-02-28 09:30:25 -07:00
Darren Shepherd
9da27b7130 Set UseEncodedPath 2020-02-27 21:30:55 -07:00
Darren Shepherd
6b6ff53373 Add namespace filtering 2020-02-27 10:34:51 -07:00
Darren Shepherd
ae42b9422b Fix compilation error 2020-02-26 13:51:48 -07:00
Darren Shepherd
0846768069 CSRF Cookie fixes
- Only set the cookie if it doesn't exist
- Always mark it secure (it was previously getting re-sent as not)
- Check the value against the header even if there was no value (so that
a request that is missing the cookie but should have had one fails).
2020-02-26 12:35:24 -07:00
Darren Shepherd
e2e87cda53 Fix change events 2020-02-25 21:24:00 -07:00
Darren Shepherd
82c7877ba3 Add dashboard to steve 2020-02-21 22:18:58 -07:00
Darren Shepherd
c069f32bbe Fix x-api-host when port is set 2020-02-21 13:17:42 -07:00
Darren Shepherd
5b94b82bc6 Small fixes and enhancements 2020-02-20 16:06:43 -07:00
Darren Shepherd
4218314653 Add state fields to metadata 2020-02-14 16:20:04 -07:00
Darren Shepherd
51274d07e7 Fix compile error 2020-02-10 21:02:42 -07:00
Darren Shepherd
3a8e216ec8 Rename variable 2020-02-10 20:54:33 -07:00
Darren Shepherd
433a39dcab Deal with namespace bindings to cluster scoped resources 2020-02-10 20:53:45 -07:00
Darren Shepherd
d1ce16f351 Don't ever sent data == nil 2020-02-10 20:51:48 -07:00
Darren Shepherd
e64845dcb9 Full dynamic RBAC and pagination 2020-02-10 10:18:20 -07:00
Darren Shepherd
600f875fce Show server side columns 2020-02-08 13:04:20 -07:00
Darren Shepherd
9f771dcf65 RBAC caching 2020-02-08 13:03:57 -07:00
Darren Shepherd
87a107e23e Remove unused namespace field 2020-02-04 21:31:02 -07:00
Darren Shepherd
b51e14edfb Allow passing in access control impl to the server 2020-02-04 14:11:21 -07:00