Copy-DbaLogin - Copy the permissions of a login on logins, server roles, endpoints and availability groups
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- databases, powershell
- Lĩnh vực
- database
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PowerShell
- Star
- 2.9k
- Fork
- 869
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dataplat/dbatools
-
bugs life triage required
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bugs life triage required
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Invoke-DbaDbPiiScan - Fix broken PII patterns, add Nordic known names, and proposals for metadata-only scan and native classificationCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bugs life triage required
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
dataplat/dbatools#10860 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bugs life Chrissy needed
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 38/100
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của dataplat/dbatools
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug db/postgres user-priority/P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kagent-dev/kagent#3789 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày