Code Monkey home page Code Monkey logo

kube-auth's Introduction

KubeAuth

An easy way to login into Kubernetes dashboard

Description

The goal of this package (the combination of npm package and browser extension) is to provide an easier way to login into Kubernetes dashboard on an Amazon EKS cluster then described on Amazon's blog.

Previously you had to manually generate and paste the token from the CLI into the "Enter token" input and then choose "Sign in".

If you are lazy like me, then most probably you find it boring as heck 🥱, so what if you could configure it once on your machine and forget about this routine 🤯? And yes, now you can do it!

Prerequisites

  • Node.js v8+
  • aws-cli installed & configured
  • Make sure your AWS user has access to AWS EKS cluster

Installation

  • npm install -g kube-auth
  • kube-auth configure --browser chrome
  • Open chrome://extensions/ page
  • Enable developer mode
  • Press "Load unpacked" and select the directory returned by a kube-auth whereis command
  • Click on extension icon (browser extension bar) and fill Amazon EKS cluster information
  • That's it!

Todo

  • Automatic native host generation for all browsers and OS'
  • Get rid of aws eks get-token CLI command by using aws-sdk (see Python example)
  • Rewrite to typescript
  • Use webpack for extension build
  • Support Windows machines (regedit might needed)
  • Use Mozilla's polyfill in order to support Chrome, Firefox, Opera & Edge
  • Get rid of native-messaging library (maybe...)
  • Think about installing browser extension automatically (see docs)
  • Add tests
  • Move host generation into separate package (after good testing)

Improvements

  • If you are facing some issues, please don't hesitate to open an issue
  • If you have any idea on how to improve this module, feel free to contribute or open an issue with enhancement label

We will get back to you as soon as possible.

License

This repository can be used under the MIT license.

kube-auth's People

Contributors

ciolak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.