alibaba / alibaba/funcraft

context.credentials 在本地调试环境中缺失

Open
#479 1 comment 0 reactions 1 assignee Claimed by @coco-super View on GitHub
enhancement
Dominant language
JavaScript
Stars
931
Forks
128
PR merge metrics
No merged PRs in 30d

Description

用户的代码如下图所示。本地调试发现 context.credentials 中的 security token 为 none type,本地调试语法就出错,通不过。

![图片](https://user-images.githubusercontent.com/626967/65847109-c86eeb00-e372-11e9-9bd9-ed707690de5f.png)

这种问题用户调查的代价很高,我们有什么好的办法能在本地模拟这个功能吗?

1. 能获得有效的 credentials,用户在本地调试环境就能获得 OSS 等云端资源的权限,让函数正确运行。

2. 没有安全隐患。

看起来1,2有点冲突,这个功能很有挑战。:-)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.