Skip to content

fix: keep login reminder configuration private - #474

Merged
xujin177 merged 1 commit into
linuxdeepin:masterfrom
xujin177:fix/dconfig-public-audit-task-398753
Nov 19, 2026
Merged

xujin177 merged 1 commit into
linuxdeepin:masterfrom
xujin177:fix/dconfig-public-audit-task-398753

Conversation

@xujin177

@xujin177 xujin177 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

按DConfig审查表收敛dde-session-ui的内部配置声明:共1个键、1份JSON从public改为private。

public表示提供给其他应用直接访问,private表示应用内部使用。外部通过D-Bus使用功能、只读取同JSON其他属性、同宿主插件或已无有效业务消费的配置,按表内逐键结论处理。

JSON(仓库内路径) 本次改为private的键 数量
deepin-login-reminder/dconf/org.deepin.login-reminder.json LoginReminder 1

保留接口/排除项:unrelated session UI settings。表中判为合理的public以及未安装旧副本均不调整。
仅修改上述JSON的visibility;默认值、serial、flags、permissions、键名和业务逻辑均不变。
这是接口声明收敛,不宣称仅改private已实现运行时访问隔离。

验证:全部改动JSON解析通过;逐键语义差异及逐行diff确认只包含表中visibility变化;git diff --check通过。
运行时回归建议见提交信息Influence;本次未启动或修改运行中的桌面配置。

PMS: TASK-398753

@sourcery-ai

sourcery-ai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Review the DConfig visibility change for LoginReminder, ensuring only its public/private declaration changes while the key’s other settings remain unchanged.

  • deepin-login-reminder/dconf/org.deepin.login-reminder.json L14

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@deepin-ci-robot

Copy link
Copy Markdown

deepin pr auto review

🤖 AI 代码审查报告

总体评分: 100 分 (通过阈值: 70分)

Pass


📊 总体评价

项目 结果
审查结论 代码审查通过
评分详情 本次变更将 dde-session-ui 登录提醒的 dconf 配置项可见性从 public 改为 private, 是一项安全性提升改动。变更仅涉及 JSON 配置文件单行修改,语法正确、逻辑清晰, 无安全漏洞引入,四维度均通过,代码审查通过。

🔍 详细分析

1. 语法逻辑 ✅

评价: 语法正确,逻辑清晰 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


2. 代码质量 ✅

评价: 代码结构清晰,注释完整 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


3. 代码性能 ✅

评价: 性能良好,资源使用合理 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


4. 代码安全 🔒

评价: 存在0个安全漏洞 ✅ 通过

🔐 发现 0 个安全漏洞

安全漏洞详情:
✅ 未发现安全漏洞

建议: ['建议审查项目中其他涉及敏感信息的 dconf 配置项,确认其 visibility 是否也应设为 private。']


💡 改进建议代码示例

本次变更已为最佳实践,无需额外修复。建议检查项目中其他 dconf 配置文件中 涉及敏感信息的配置项,确保其 visibility 设为 private,例如: {
  "key": "show-login-reminder",
  "description": "...",
  "permissions": "readwrite",
  "visibility": "private"
}

本报告由 AI 代码审查工具自动生成

@xujin177
xujin177 force-pushed the fix/dconfig-public-audit-task-398753 branch from 69a0415 to 4975844 Compare November 16, 2026 07:06
1. Mark 1 audited keys private across 1 DConfig schemas.
2. Preserve shared public interfaces and uninstalled source copies.
3. Keep values, flags, permissions and business logic unchanged.

Log: No user-facing changes

Influence:

1. Validate that all changed DConfig schemas load without JSON errors.
2. Open the login reminder and verify its enable switch persists.
3. Verify retained public and excluded keys match the audit workbook.

fix: 登录提醒内部配置声明为private

1. 按审查表将1份DConfig定义中的1个属性声明为private。
2. 保留跨应用共享public接口及当前构建不安装的旧定义。
3. 不修改默认值、flags、permissions或业务逻辑。

Influence:

1. 校验所有改动的DConfig JSON可正常解析和加载。
2. 打开登录提醒,确认启用开关和提示功能正常。
3. 对照审查表确认保留的public属性和排除项未被修改。

Log: 无用户可见变化
PMS: TASK-398753
@xujin177
xujin177 force-pushed the fix/dconfig-public-audit-task-398753 branch from 4975844 to 846602d Compare November 18, 2026 10:04
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, xujin177

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@xujin177
xujin177 merged commit d0a03e8 into linuxdeepin:master Nov 19, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants