larksuite / larksuite/cli

recommend 权限限制

Open
#390 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

domain/auth enhancement
Dominant language
Go
Stars
17.3k
Forks
1.4k
Avg merge
2d 4h
Merged PRs (30d)
105

Description

lark-cli auth login --recommend

该指令会默认授权几乎所有功能的读写权限,个人认为不太合理,会有很大的越权风险,当前 AI 并不可靠。数据安全比功能可用性更重要,对飞书产品我认为并不友好。建议可以开通所有的只读权限,写权限应当根据客户使用情况提示客户开通。

或者至少提供一个 readonly 的全局推荐配置,现在的读写权限全部开通太吓人了。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the lark-cli auth login --recommend entry point and trace how its default permission scopes are assembled. Review any nearby authentication tests or configuration handling before deciding how the proposed read-only behavior fits the existing flow. Done means the recommendation no longer grants broad write access by default and its permission behavior is covered by verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authorization, cli, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.