-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: サーバー初期設定時に初期パスワードを要求できるように #14626
feat: サーバー初期設定時に初期パスワードを要求できるように #14626
Conversation
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -1971,6 +1971,12 @@
"password": {
"type": "string",
"minLength": 1
+ },
+ "initialPassword": {
+ "type": [
+ "string",
+ "null"
+ ]
}
},
"required": [
@@ -2009,6 +2015,24 @@
"$ref": "#/components/schemas/Error"
},
"examples": {
+ "ACCESS_DENIED": {
+ "value": {
+ "error": {
+ "message": "Access denied.",
+ "code": "ACCESS_DENIED",
+ "id": "1fb7cb09-d46a-4fff-b8df-057708cce513"
+ }
+ }
+ },
+ "INCORRECT_INITIAL_PASSWORD": {
+ "value": {
+ "error": {
+ "message": "Initial password is incorrect.",
+ "code": "INCORRECT_INITIAL_PASSWORD",
+ "id": "97147c55-1ae1-4f6f-91d6-e1c3e0e76d62"
+ }
+ }
+ },
"INVALID_PARAM": {
"value": {
"error": { |
…okari-gtyih/misskey into feat-setup-initial-password
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #14626 +/- ##
===========================================
+ Coverage 39.69% 41.39% +1.70%
===========================================
Files 1545 1549 +4
Lines 193848 199643 +5795
Branches 3608 2631 -977
===========================================
+ Hits 76952 82650 +5698
- Misses 116299 116428 +129
+ Partials 597 565 -32 ☔ View full report in Codecov by Sentry. |
This reverts commit 66b2b48.
Co-authored-by: syuilo <[email protected]>
動いてそうだけど手元で検証できないのでやっていただきたい気持ち |
試しにcypressでパスワードの値を変えてみたら( 66b2b48 )変な止まり方して成功扱いになった https:/misskey-dev/misskey/actions/runs/11024875489/job/30618786666 |
packages/backend/src/server/api/endpoints/admin/accounts/create.ts
Outdated
Show resolved
Hide resolved
|
なおったかも |
packages/backend/src/server/api/endpoints/admin/accounts/create.ts
Outdated
Show resolved
Hide resolved
👍🏻 |
.github/misskey/test.ymlに初期パスワード設定し忘れている+それでtest通ってるのでまだなにかおかしいかも(ローカルで試した?) |
パスワード有りパターン / パスワード無しパターン 両方試した |
じゃあなんでtestは通ったんだろう… |
|
パスワード無し設定でパスワード有り(適当)で登録できる ↑これってどうあるべきなんだろう…? |
どうでもよさそう |
これ対応には時間かかるんじゃないかしら |
しばらく初期設定は初期パスワード無効にした方が良い気がする |
そうでないと事業者が対応できるまでMisskeyをアップデートすることができなくなる |
それか、コンフィグに「コメントアウトすればスキップできます」と明記して対応が完了するまではスキップしておいてもらうか |
コメントアウトであっても対応は対応だからなぁ 初期設定パスワードがない状態(現在)→初期設定パスワードをオプトインできる状態→初期設定パスワードをオプトアウトできる状態 として段階的に導入した方が丸そう |
あと initialPassword じゃなくて setupPassword の方が分かりやすそう |
What
初期設定開始時に初期パスワードを要求できるように
Why
Additional info (optional)
Checklist