Comments (4)
I have a similar concern, as in we have to be careful not to bloat hologram with tons of options/features, but that does sound like it might be useful for some people without affecting the core functionality, so I'd be happy to review any PR you might want to send our way.
from hologram.
from boto import sts
import requests
import simplejson as json
import urllib
conn = sts.STSConnection()
role = conn.assume_role(','')
session = {
"sessionId":role.credentials.access_key,"sessionKey":role.credentials.secret_key,"sessionToken":role.credentials.session_token}
params = { "Action":"getSigninToken","Session":json.dumps(session)}
r=requests.get("https://signin.aws.amazon.com/federation", params=params)
token=json.loads(r.text)['SigninToken']
params2 = { "Action":"login", "Issuer":"adroll.com","Destination":"
https://console.aws.amazon.com/console/home","SigninToken":token}
print "https://signin.aws.amazon.com/federation?{}
".format(urllib.urlencode(params2))
neat. i just verified this works with hologram.
On Wed, Apr 1, 2015 at 10:18 AM, Fran Garcia [email protected]
wrote:
I have a similar concern, as in we have to be careful not to bloat
hologram with tons of options/features, but that does sound like it might
be useful for some people without affecting the core functionality, so I'd
be happy to review any PR you might want to send our way.—
Reply to this email directly or view it on GitHub
#37 (comment).
from hologram.
Yeah, I use something similar except with the current credentials instead
of another STS call. Just figured it would be smooth to add to the CLI :)
On Thursday, April 2, 2015, Walter King [email protected] wrote:
from boto import sts
import requests
import simplejson as json
import urllib
conn = sts.STSConnection()
role = conn.assume_role(','')
session = {
"sessionId":role.credentials.access_key,"sessionKey":role.credentials.secret_key,"sessionToken":role.credentials.session_token}
params = { "Action":"getSigninToken","Session":json.dumps(session)}
r=requests.get("https://signin.aws.amazon.com/federation", params=params)
token=json.loads(r.text)['SigninToken']
params2 = { "Action":"login", "Issuer":"adroll.com","Destination":"
https://console.aws.amazon.com/console/home","SigninToken":token}print "https://signin.aws.amazon.com/federation?{}
".format(urllib.urlencode(params2))neat. i just verified this works with hologram.
On Wed, Apr 1, 2015 at 10:18 AM, Fran Garcia <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');>
wrote:I have a similar concern, as in we have to be careful not to bloat
hologram with tons of options/features, but that does sound like it might
be useful for some people without affecting the core functionality, so
I'd
be happy to review any PR you might want to send our way.—
Reply to this email directly or view it on GitHub
#37 (comment).—
Reply to this email directly or view it on GitHub
#37 (comment).
from hologram.
I took a slightly different approach to the same problem and made a Chrome extension that leverages instance metadata to open the console. Closed this issue by building Holochrome.
from hologram.
Related Issues (20)
- Support for WSL? HOT 1
- Consider ECS Task role support
- Install is broken HOT 1
- mTLS support would be nice
- M1 chip support
- Receiving panic when trying to run hologram-agent in a Kubernetes pod
- No ability to easily open AWS console using hologram credentials HOT 5
- Provide better error message when hologram-agent is not running HOT 1
- hologram-ping can not connect to hologram-server
- Insecure default connection to hologram server? HOT 3
- Occasional DNS lookup failures when calling hologram agent HOT 5
- Go 1.4 builds as specified in the Dockerfile fail on macOS Sierra HOT 3
- Sierra issues HOT 3
- The hologram roles feature doesn't work with AD servers HOT 1
- hologram-boot process uses 60%+ CPU on macOS Sierra HOT 6
- Error reading data from stream HOT 6
- Support for iam/info endpoint? HOT 1
- gpg-agent managed SSH_AUTH_SOCK encounters signing error HOT 1
- Metadata available on network HOT 6
- Not able to getHologram working because userPassword field does not exist in the LDAP user entry.
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 hologram.