Comments (3)
Sorry for the delay.
Okay, here's the deal: if you want to make cloudapi calls using token authentication, you need to provide http-signature details signed using the caller's account (e.g. you need an account for your portal, since the portal is on the other side of the HTTP request). The X-Auth-Token stuffed with the keyapi token contains the details about the user the portal is calling on behalf of.
Basically, your headers would look something like the following:
Authorization: Signature keyId="/<your portal or ops account>/keys/<some portal key>",algorithm="RSA-SHA256" <base64-encoded http-signature chunk>
X-Auth-Token: {"keyid":"<keyapi-generated UUID","data":"<base64 data about the portal's user initiating this call>","version":"0.1.0","hash":"<base64 hash of data>"}
Authorization is the http-signature for your portal. X-Auth-Token is the token provided by keyapi on behalf of the user using your portal.
I hope that clarifies things. My apologies that there are no docs about it. I'll at least improve the big-theory statement at the top of cloudapi's auth.js.
from sdc-cloudapi.
@arekinath this issue has been sitting open for a while. Do we have an open JIRA ticket associated with it, or an RFD or mailing list discussion? Or is it safe to close this GitHub issue?
from sdc-cloudapi.
Safe to close. The keyapi
repo was opened up.
from sdc-cloudapi.
Related Issues (20)
- token based authentication issues with account being interpreted as string vs object
- Instance resize fails with differing traits error HOT 1
- cueball HTTP agent config missing pinger or TCP keepalives
- CloudAPI should allow provisioning machines with delegated datasets HOT 13
- ChangeFeed Events seem to come in out of order HOT 5
- Add incremental argument to CreateImageFromMachine HOT 1
- Malformed user-agent breaks prometheus parser HOT 1
- Network List should List subnet and address range if admin HOT 1
- Provision IP outside of Range
- provision_limits plugin does not enforce limits on resize HOT 1
- AddNic should accept a "primary" argument
- want support for additional "external" NIC tags
- tests/runtests runner does not count failed and skipped tests HOT 1
- Tests failing due to changed tape behaviour
- InternalError exceptions when handling user ids in roles HOT 2
- users.test.js failing due to stale policy checks HOT 1
- plugins tests not updated to use tape HOT 1
- nics.test.js failing due to double callback HOT 1
- Machines resize tests failing on COAL HOT 1
- openssl pkgsrc version bump
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 sdc-cloudapi.