-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension API support #252
Comments
Sounds interesting. I'am not really sure how this would be implented here tho...
|
I agree. I think in the other project that was just to get around having to deal with duplicates.
Stuff like this really is up to the user. if they want to push the new config 1 time a year, or 1000 times a day, this is something that the other extension would handle.
Depends on the source
Unsure what this is in reference to.
It's a solution to those who want to integrate with the extension if they have unique requirements. For example, in our AWS environment, we have a lambda which automatically generates AWSCLI configs and the switch role configs for the entire organization and other organizations we look after to a file in an S3 bucket. We don't use user accounts in the org, but rather use STS with Azure AD, which assumes a role (so we can't just create a token to get the file from S3 on a per person basis). In an ideal world, there would be some default, easy to integrate methods of having configs update. Google Drive, S3, etc. but also at least a method for other developers to integrate. The problem statement for me is:
There will be loads of other unique challenges people will have with this, and developing for all of them isn't fesible, so having an API at least allows people to extend for their own usecases. Hope the above adds some context! :) |
I think it's up to the user to avoid duplicates.
The external config has to be stored somewhere temporarly. I could image this place should be local or session storage, not sync storage as it is alredy stored remotly. A datamodel coud look like this // session store
{
"external_configs": {
// configs per external extension id
"<extension_id>": {
active: true,
config: "[my-role]\naws_account_id=123\n..."
}
}
}
Yes. Thanks. You have a very specific usecase tho. A common usecase would be to get a config from a http url with basic auth or something. But i'll definitly look into this... ref |
* add basic external listener * lock chrome extension id via public key ref #252
I tried moving events between a sidecar extension and aws-role-switch. It's pretty easy so far.
What we need i guess:
|
Solid role switch implementation, checked out this repo after seeing one of your messages in an issue on AESR.
A feature which I've developed on top of from AESR was the ability to push AWS configs from one extention to AESR's API. For example, in https://github.com/XargsUK/aesr-s3-config-sender, I use AWS Cognito is used to authenticate with the user pool, gets tokens, then uses the tokens to GetObject from S3, and that config is then passed to AESR; which allows a team of engineers to sync the latest configurations without having to manually download the latest config and update it in AESR.
This wouldn't be possible without the AESR Extension API: https://github.com/tilfinltd/aws-extend-switch-roles/wiki/External-API
It would be really useful to see some implementation which would allow other extensions to push configs into this extension.
The text was updated successfully, but these errors were encountered: