İşleme Grafiği

438 commits

Yazar SHA1 Mesaj Tarih
222eb6b2a8 v23.8.0 2023-08-24 21:25:08 +02:00
d36015102c fix: repeated oauth redirection when token has an expiration time of < 5 minutes (#150)
# Issue

Currently, if oauth token will be expired in 5 minutes, the handler performs a new auth redirection flow. This will cause an indefinite redirections in the case where the newly refreshed token has an expration time of < 5 minutes.

# Quick Fix

1. The 5-minute buffer is only added when refreshed token expration time > 10 minutes.
2. For (1) to work, the 5-minute buffer is now calculated on token refresh, instead of on regular auth check.

Co-authored-by: Rophy Tsai <rophy@users.noreply.github.com>
Reviewed-on: #150
Co-authored-by: rophy <rophy@noreply.codeberg.org>
Co-committed-by: rophy <rophy@noreply.codeberg.org>
2023-08-24 19:04:29 +00:00
b840881776 Add parameter to disable access_log (#151)
I'm working on a patch to allow disabling access logs. This is because they expose JWT tokens which get logged and it raises alerts for us. This is a very rudimentary approach I've added here to be able to disable only the access_logs while keeping the rest of the container logs which might be useful for users.

Please let me know what you think about it and how this can be improved. I'll then also add updates for the documentation.

Co-authored-by: Noor Malik <nmalik@zalando-70804.corp.ad.zalando.net>
Reviewed-on: #151
Co-authored-by: demoncoder95 <demoncoder95@noreply.codeberg.org>
Co-committed-by: demoncoder95 <demoncoder95@noreply.codeberg.org>
2023-07-10 20:58:16 +00:00
4b0dd2b632 v23.7.0 2023-07-01 13:55:22 +02:00
e47443faf9 update dependencies 2023-07-01 13:55:06 +02:00
6b82174541 Add length to the OAuth2 state (#152)
The OAuth2 provider we are working with returns an error before showing the username/password login screen due to the state variable not having enough length / entropy.  This happens if you navigate to the root URL "/" or any URL path that is less than 8 characters long.  Navigating to "/clusters/local" or another longer path allows the login to function as normal.

This PR makes the state query param a JSON object with the redirect URL in it, simply since I couldn't think of a better way to make it longer 🤷‍♀️.  The length of the JSON key is long enough so that our OAuth2 provider will properly redirect even on the shortest URL "/".  I'm happy to use a different scheme if you have any ideas.

I've also added some basic unit tests around the OAuth2 logic to make sure this functionality all works.

Co-authored-by: Andrew Russell <russell@idelic.com>
Reviewed-on: #152
Co-authored-by: idelic_russell <idelic_russell@noreply.codeberg.org>
Co-committed-by: idelic_russell <idelic_russell@noreply.codeberg.org>
2023-07-01 10:48:47 +00:00
cc249d15f0 update dependencies 2023-04-18 21:57:45 +02:00
cb0ecdb5f8 feat: add support for external kube-web-view instances (#149)
### Background

in corporate environment (intranet), a single instance of kube-web-view may not be able to access all k8s clusters directly, e.g.:

1. Developer laptop can access ingress endpoints exposed from both QA cluster and prod cluster, but
2. Pods in QA k8s cluster cannot access k8s api of prod cluster, and vice versa

### Goal

Minimally provide support for multiple kube-web-view instances

### PR

1. An optional arg, `--external-clusters` is added to declare a list of "external clusters".

```
--external-clusters=kube-web-view-us=https://kube-web-view.mycompany.com/us;kube-web-view-eu=https://kube-web-view.mycompany.com/eu'
```

2. When the list exists, it will be appeneded to /clusters page as "external clusters", which actually is just a static link, i.e. clicking the link will exit current kube-web-view and loads the external link.

### Screenshot

![image](/attachments/086816cb-39be-4e14-b5f4-dd33a9da5cab)

Co-authored-by: Rophy Tsai <111145158+yltsaize@users.noreply.github.com>
Co-authored-by: Rophy Tsai <rophy@users.noreply.github.com>
Reviewed-on: #149
Co-authored-by: rophy <rophy@noreply.codeberg.org>
Co-committed-by: rophy <rophy@noreply.codeberg.org>
2023-04-18 19:45:15 +00:00
1b367b60ba v23.2.0 2023-02-19 17:12:11 +01:00
629dface9a update dependencies 2023-02-19 17:10:42 +01:00
944edf6d9f Feature: filterable namespace dropdown (#145)
Issue: the current navbar namespace dropdown isn't really usable for more than a couple namespaces (not scrollable, not searchable).

The PR tries to add a textfield to the dropdown for filtering.

1. The navbar item is changed from "is-hoverable" to activate on click.
2. The textfield is focused upon display:

![namespace-filter-1](/attachments/e23c3b8e-33bf-42c0-917b-9f35ea471b3f)

3. Dropdown items are filtered by typing:

![namespace-filter-2](/attachments/25df52ba-7f2f-4e3b-a8e0-c7dbe232bb03)

4. When user presses enter, first matched namespace is clicked.

Co-authored-by: Rophy Tsai <rophy@noreply.codeberg.org>
Reviewed-on: #145
Co-authored-by: rophy <rophy@noreply.codeberg.org>
Co-committed-by: rophy <rophy@noreply.codeberg.org>
2023-02-19 15:59:09 +00:00
Henning Jacobs
011c784bbd v22.11.0 2022-11-30 18:23:07 +01:00
Henning Jacobs
ad5fccfa63 update dependencies 2022-11-30 18:20:50 +01:00
Henning Jacobs
cdfde3431a #144 remove demo.j-serv.de (was shut down) 2022-11-30 18:07:21 +01:00
Henning Jacobs
f363fc353f allow listing ALL resource types in a namespace with _all 2022-09-08 15:02:56 +02:00
Henning Jacobs
f66b1572a8 v22.9.0 2022-09-08 12:30:02 +02:00
Henning Jacobs
2d6f5dca49 update for Kubernetes v1.25 (kind v0.15) 2022-09-08 12:29:18 +02:00
Henning Jacobs
7317c0073a update Python dependencies and fix e2e for v1.24 2022-09-08 12:01:40 +02:00
Henning Jacobs
f12dee6872 update dependencies 2022-07-12 18:31:54 +02:00
Henning Jacobs
4348261b09 build multi arch image 2022-07-12 18:30:36 +02:00
Henning Jacobs
fd37e57242 update dependencies 2022-05-24 10:24:33 +02:00
Henning Jacobs
ba2bd2af39 update dependencies 2022-05-02 22:01:14 +02:00
Henning Jacobs
b6bf2fc0a1 deploy v22.3.0 2022-03-02 14:07:44 +01:00
Henning Jacobs
575a6edad6 v22.3.0 2022-03-02 14:05:55 +01:00
Henning Jacobs
fba7583196 fix None reference 2022-03-02 14:05:09 +01:00
Henning Jacobs
a7a7b9f7cc update dependencies 2022-03-02 13:04:22 +01:00
bc52312963 Merge pull request 'add missing assigment to scope in oauth2 usage' (#136) from sybnex/kube-web-view:main into main
Reviewed-on: #136
2021-03-12 20:29:08 +01:00
fb7f04bbb0 add missing assigment to scope in oauth2 usage 2021-03-12 07:08:42 +01:00
211f146c8e Merge pull request 'Add timestamp-links arg' (#133) from fishy/kube-web-view:timestamp-link into main
Reviewed-on: #133
2021-03-07 18:27:37 +01:00
69695b1810 Add timestamp-links arg
Also find and replace ISO-8601 timestamps in highlight filter according
to timestamp-links arg.

This could be used to link timestamps directly to the centralized log
viewer at the specific timestamp (for example, finishedAt timestamp).
2021-03-06 09:24:13 -08:00
Henning Jacobs
70c57f1382 use v21.2.0 for deploy 2021-02-05 12:27:53 +01:00
Henning Jacobs
98f87f53a3 v21.2.0 2021-02-05 12:24:40 +01:00
Henning Jacobs
175decb170 update dependencies 2021-02-05 12:19:32 +01:00
Henning Jacobs
507d9d632a workaround to fix session cookie 2021-02-05 12:08:41 +01:00
Henning Jacobs
7569c74944 update dependencies 2021-01-26 22:59:23 +01:00
7c7e7f4d71 update to kind v0.10 and Kubernets 1.20 2021-01-24 19:50:19 +01:00
Henning Jacobs
ce924c8b3f update dependencies incl. new pytest-kind release 2021-01-22 08:49:37 +01:00
Henning Jacobs
533d7b289b deploy v21.1.0 2021-01-11 17:59:49 +01:00
Henning Jacobs
00f9835acd v21.1.0 2021-01-11 17:57:08 +01:00
Henning Jacobs
10ed4c3ec9 update Python dependencies 2021-01-11 17:56:05 +01:00
Henning Jacobs
6fef6b06ec update to pytest-kind 21.1.1 with isolated kubeconfig 2021-01-07 23:24:41 +01:00
Henning Jacobs
f27bc7af24 update dependencies 2020-11-12 22:28:56 +01:00
3ad17a7623 github.com -> codeberg.org 2020-10-11 20:37:47 +02:00
fd07a5a82c fix name: Kubernator 2020-10-11 20:24:57 +02:00
b92e2df0ad update dependencies incl. black 2020-10-11 13:08:30 +02:00
bd67ab9d4b github.com -> codeberg.org 2020-10-11 12:39:56 +02:00
15c9e894ca remove outdated github tag badge 2020-10-11 12:37:53 +02:00
Henning Jacobs
067cd40a48 v20.10.0 2020-10-02 22:05:22 +02:00
Henning Jacobs
6dd9ff3293 update dependencies 2020-10-02 22:04:12 +02:00
bee7482c4a Merge pull request 'Bring in GCC (and some other stuff) into the initial stage of the build' (#123) from lbruno/kube-web-view:lbruno-patch-1 into master
Reviewed-on: #123
2020-10-02 21:38:35 +02:00