Coder Social home page Coder Social logo

sync-aws-extend-switch-roles's Introduction

Intro

We find the AWS Extend Switch Roles extension considerably helpful. A must-have for everyone using many AWS accounts and IAM roles.

The only missing piece for this great extension is: how to manage the Roles configuration and how to sync it to many different users, assuming there is a team of people working on the same - ever changing Roles config.

Apparently we are not the only team that wanted this missing functionality badly:

Fortunately, the original AESR extension Author decided to help the community allowing to send the config from another extension:

This extension is the missing piece (at least to some extent).

Although it would probably be easier to simply download a raw file from S3 or another easily accessible endpoint, we prefer to control the version of the roles.txt file and keep it fairly secure.

That's why we decided to store it in a private Github repo (and yeah - everyone can have it for free)

The extension supports the background sync, on-demand sync, and notifications.

NOTE:

it's an extension to the extension, meaning sync-aws-extend-switch-roles is NOT a replacement but it injects some data into AWS Extend Switch Roles

It's not perfect, there are plenty of ideas on how to improve it, but it does the job in its current shape and we've decided to share it with the broader community.

A great thanks to tilfin for creating the AWS Extend Switch Roles!

Get

Set up

  • the Face icon represents one of our colleagues - please do not find it scary - he just wants to be famous :-)

  • right-click the doc/img/stefan_25x25.png icon (in the top-right corner), choose 'Options'

  • Configuration URL

  • Github Token [Set one at https://github.com/settings/tokens] (Select scopes: repo [Full control of private repositories - there is no read-only mode unfortunately])

  • Target Extension ID [AESR extension ID: jpmkfafbacpgapdghgdpembnojdlgkdl]

    • do not confuse with SYNC_AESR_EXT_ID
  • Auto-refresh in background (every 15min) (optional)

  • NOTE: you need to reload the extension after this setup for the options to take effect in the background process

  • choose doc/img/aesr_icon.png icon (Configuration/Options)

  • on the settings page, under Extension API

    • Config sender extension ID:
      • provide the SYNC_AESR_EXT_ID (default: kijiojldhailibohhoepplmmbfmhfdcp)
  • debug:

  • background script console

    • url available at chrome://extensions under Inspect views background page
  • manual trigger/popup console

    • url available at: click the SYNC_AESR icon, the refresh button will pop up
      • right click on the button, choose Inspect (and go to Console)

Develop

I want to modify something

Chrome extensions dev info

How to set it up for local development

  • install AWS Extend Switch Roles
  • go to chrome://extensions
  • turn on Developer mode in the top-right corner | IMPORTANT
  • click Load unpacked in the top-left corner at chrome://extensions and choose dist/ dir content
  • it'll be assigned an ID (aka SYNC_AESR_EXT_ID) [ajgjkeponjcjicdpgmeieipaikgnplde]
    • should look like this:
    • doc/img/where_to_find_ext_id.png

sync-aws-extend-switch-roles's People

Contributors

karolkania avatar

Watchers

James Cloos 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.