Comments (6)
Unfortunately, there is no concept of users
or fine grained access control. You can secure global API by issuing JWT tokens, please check the Authentication docs for more information. For fine grain control, you can set route level JWT tokens, and distribute to your users maybe.
from functions.
good to know. to have access control to /v1/apps (deploying and updating apps), what kind of middleware will i need to write? is there a guide somewhere?
from functions.
You don't need to write any middleware. You just need to pass an ENV when starting the functions server. You also need to pass the same token when you are issuing commands via the fn
tool (or accessing the API in any way). Please check the documentation I provided before.
If you need to modify the implementation (write your own middleware etc), please check the following PRs, they may give you ideas. Thank you !
from functions.
hmm i can't find the name of the env...help pls?
for my use case, i would really need a per-user jwt token as described before. Is this already on your roadmap? I would certainly like to help on this feature if you think it's a good idea.
from functions.
does this help ?
As for users, I am afraid that is not in the roadmap. If you are willing to help though, of course we would appreciate your input !
from functions.
tks that certainly helps. I'll try to implement users then...
from functions.
Related Issues (20)
- Is there any way to get resource usage? HOT 1
- unsupported runtime nodejs6.10 HOT 2
- How do I get route config json in java? HOT 1
- any open open source group channels? HOT 1
- Function orchestator HOT 1
- Hi there! This projects seems very interesting.... HOT 1
- fn build python example not working HOT 1
- Combining IronFunctions with IronMQ
- make build Error HOT 4
- questions about operating service HOT 1
- "More on apps" link is broken in the README
- got an "exec format error" on raspberrypi3
- the way of multiple routes
- no working compiler
- Removing iron-functions from homebrew
- Errors will happen when upgrading the libraries HOT 1
- Sounds promising but HOT 2
- Segmentaion fault mac
- Error while adding app using CURL
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 functions.