Device password policy: require a screen lock (passwordComplexity)
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by reading proto/registry.md and tracing the Android agent’s config.apply handling and check-in reporting for security.deviceSecure. The issue proposes Android API 31+ password complexity, an API 24–30 fallback, a prompt for users, and a compliance signal; it does not name implementation files or tests. Done means policy can be applied and unmet requirements are reported to the console.
索引モデルが issue の本文から書いたものです。
説明
Area
Device agent (Android)
The problem
We need to require a screen lock (PIN, pattern or password) on managed devices. Today MDMesh can see whether a device has one (the agent reports security.deviceSecure, shown as "Screen lock set" on the device page), but it can't require one: proto/registry.md lists passwordComplexity as "Planned: not advertised yet".
A lost device without a screen lock gives access to everything on it, and a remote device.lock does little when there is no lock to return to.
In #2 you listed password policy among the tracked follow-ups and offered to prioritise one that matters. For us this is the one.
Proposed solution
A password policy in the configuration, applied with config.apply (Device Owner):
- API 31+:
DevicePolicyManager.setRequiredPasswordComplexity(NONE/LOW/MEDIUM/HIGH). - API 24–30:
setPasswordQualitywithsetPasswordMinimumLengthas the fallback. - When the current lock doesn't meet the policy, the agent asks the user to set one (a notification that opens
DevicePolicyManager.ACTION_SET_NEW_PASSWORD), since Android doesn't prompt by itself. - Compliance in the check-in (
isActivePasswordSufficient, next to the existingdeviceSecure), so the console can flag devices whose lock doesn't meet the policy.
The configuration still has the Headwind-era passwordMode field, which could be reused or replaced.
If it helps, we can prepare a pull request.
Alternatives considered
Asking users to set a screen lock and checking "Screen lock set" on each device page by hand. That can't be enforced, and it doesn't scale.
Before submitting
- I searched existing issues and discussions for the same idea.
- 主要言語
- Java
- スター
- 44
- フォーク
- 25
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 80
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MDMesh-app/MDMesh のほかの issue
-
enhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
MDMesh-app/MDMesh#252 ·
メンテナーはふだん 2 日以内に返信
-
Change Kiosk Titleオープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
MDMesh-app/MDMesh#253 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
MDMesh-app/MDMesh#232 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 3/5 半日 初心者へのやさしさ 45/100
MDMesh-app/MDMesh#205 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
MDMesh-app/MDMesh#204 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
MDMesh-app/MDMesh の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug devops low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
aphtech/brailleblaster#209 ·
メンテナーはふだん 1 日以内に返信