Comments (8)
I'll close this for now as it's available on master.
I'm working on some updates to documentation and a new release.
from dex-k8s-authenticator.
Perhaps we can do this by defining placeholders for each section, providing defaults, but also letting the user supply their own templates to customize the output if required. The path to kubectl could probably be provided / overridden by the configuration file.
The current sections of the page can probably be divided into the following sections:
- Cert Configuration
- Token Validation (show groups etc)
- Kubeconfig configuration
- Resources / Download links
Would these make sense as the headings for each tab?
from dex-k8s-authenticator.
I was thinking a tab for each OS. Since the kubectl download and commands are different for every OS (with some overlap for Mac/Linux). Token validation is in common though, and could come first. (I'd like to extract and format the email address and group list.). Each user only needs one OS tab (at a time), and on selecting that OS tab can see everything they need in one screen.
- Token Validation
- Linux
- kubectl download
- Cert download
- Kubeconfig configuration
- Mac
- kubectl download
- Cert download
- Kubeconfig configuration
- Windows
- kubectl download
- Cert download
- Kubeconfig configuration
I think it ok to stick with a go template and let users override that template, e.g. using a configmap mapped over the file.
from dex-k8s-authenticator.
Ok, this makes sense :)
from dex-k8s-authenticator.
A howto on tabs: https://www.w3schools.com/howto/howto_js_tabs.asp
To recap:
- Add tabs for Linux, Mac and Windows
- Re-add '\' esc char for Linux/Mac to allow us to continue the command onto the next line (makes it easier to read)
- See if we can provide a single 'copy-all-to-clipboard' button - you could copy/paste all commands previously, but the 'copy to clipboard' buttons now break that, due to the alt text
from dex-k8s-authenticator.
Regarding kubectl
installation, we need to clarify this.
Official installation overview: https://kubernetes.io/docs/tasks/tools/install-kubectl
These options differ per OS.
We could do the following
- Linux: Give instructions to latest stable via cURL
- Mac: Give cURL instructions and also homebrew
- Windows: Give Powershell, Chocolatey and cURL instructions
At this point, we should consider whether it's better to just to redirect users to the official installation overview page (not sure). I'm a bit wary that the official guide will get updated, and our instructions could become outdated.
from dex-k8s-authenticator.
A link to the official instructions is great. However for some clusters will need a specific version of kubectl
. So how about rather that curl
instructions, we provide just two links on the per-OS page:
- A link to the official install instructions (or a configurable override URL, e.g. to a company Intranet page)
- A download link to the appropriate Linux/Mac/Windows binary on the official build archive, with a configurable X.Y.Z version e.g.
https://storage.googleapis.com/kubernetes-release/release/vX.Y.Z/bin/linux/amd64/kubectl
. If no version is configured, just don't display this link.
from dex-k8s-authenticator.
For PowerShell the continuation character is backquote, but there must be no whitespace after the backtick (on that line) or it won't work.
For cmd.exe
the continuation character is caret (^), but the following newline is removed, so you must have a space before the caret and/or on the beginning of the next line.
from dex-k8s-authenticator.
Related Issues (20)
- Failed to query provider "https://dex.example.org/": 400 Bad Request: Client sent an HTTP request to an HTTPS server.
- invalid_scope: Unknown/invalid scope(s): [offline_access, groups] HOT 1
- Add trivy container scanning to gh-action.
- k8s_ca_pem_base64_encoded not used? HOT 1
- Support raw copy kubeconfig file
- Hardcoded Secret in Dex Authenticator ConfigMap HOT 16
- Ability to work outside of Dex HOT 2
- TLS v1.3 Unsupported HOT 2
- Crashloop with no logs between querying provider and verifying client HOT 1
- Finalize upstream helm repo HOT 3
- helm chart not found HOT 1
- Expose user IP address in the logs HOT 2
- UI: cluster names are empty
- Add a arm64 image HOT 1
- Project maintenance (finding a new home for this repo) HOT 1
- Template for ingress not working in newer Kubernetes HOT 1
- You must be logged in to the server HOT 1
- Current Docker image has CVE-2023-0286 HOT 1
- can we use dex-k8s-authenticator without dex
- dex-k8s-authenticator web-app like CLI app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dex-k8s-authenticator.