Copy-DbaLogin - Copy the permissions of a login on logins, server roles, endpoints and availability groups
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- databases, powershell
- 領域
- database
調査の方向性
Read Copy-DbaLogin, Sync-DbaLoginPermission, and Export-DbaLogin, focusing on how they use Server.EnumServerPermissions and Server.EnumObjectPermissions. The proposal leaves open whether endpoint and availability-group permissions should be copied behind a switch, so first clarify the intended scope. Done means the agreed permissions are copied or scripted correctly, including the behavior for missing securables and renamed logins.
索引モデルが issue の本文から書いたものです。
説明
Copy-DbaLogin, Sync-DbaLoginPermission and Export-DbaLogin handle the permissions of a login on the server itself (Server.EnumServerPermissions, class 100 in sys.server_permissions), its server roles, its database users and their permissions. They never copy the permissions of the login on other server securables (Server.EnumObjectPermissions):
- logins and server roles (class 101):
IMPERSONATE ON LOGIN::x,CONTROL/ALTER/VIEW DEFINITION ON LOGIN::xorON SERVER ROLE::x - endpoints (class 105):
CONNECT ON ENDPOINT::x - availability groups (class 108):
ALTER/CONTROL/VIEW DEFINITION ON AVAILABILITY GROUP::x
A login copied to a new instance therefore loses, for example, the IMPERSONATE an application login needs for EXECUTE AS LOGIN. Since #10801, an existing login that -UpdateExisting or Sync-DbaLoginPermission syncs loses the class 101 permissions that the source login does not have, but it gets none that the source login has.
Proposal:
- Copy the class 101 permissions of the source login whose securable exists on the destination (with a rename, the securable is matched by name, the grantee is the new login). A missing securable gives a verbose message, not a failure.
- Leave endpoints and availability groups out by default. They belong to the replica: a secondary grants
CONNECTon its endpoint to the service account of the primary, and endpoint names may differ per replica. A switch could copy them where the names match. - Script the same permissions in Export-DbaLogin.
Is this wanted, and should 2 be a switch or left out entirely?
This text was created by Claude and reviewed by Andreas Jordan.
- 主要言語
- PowerShell
- スター
- 2.9k
- フォーク
- 869
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 38
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dataplat/dbatools のほかの issue
-
bugs life triage required
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信
-
bugs life triage required
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
Invoke-DbaDbPiiScan - Fix broken PII patterns, add Nordic known names, and proposals for metadata-only scan and native classification対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 2 日以内に返信
-
bugs life triage required
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
dataplat/dbatools#10860 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bugs life Chrissy needed
難易度 3/5 半日 初心者へのやさしさ 38/100
メンテナーはふだん 2 日以内に返信
dataplat/dbatools の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug db/postgres user-priority/P1
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
kagent-dev/kagent#3789 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信