Skip to content

feat: support IAM policy resource #105

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

Merged
merged 5 commits into from
Apr 24, 2025
Merged

feat: support IAM policy resource #105

merged 5 commits into from
Apr 24, 2025

Conversation

ecmadao
Copy link
Collaborator

@ecmadao ecmadao commented Apr 22, 2025

  • Feat: Add bytebase_iam_policy resource for workspace/project IAM, and support allUsers in the IAM
resource "bytebase_iam_policy" "workspace_iam" {
  parent = "workspaces/-" // parent can be "projects/{id}" for project IAM policy
  iam_policy {
    binding {
      role = "roles/workspaceAdmin"
      members = ["user:[email protected]", "user:[email protected]"]
    }

    binding {
      role = "roles/workspaceDBA"
      members = ["allUsers"]
    }
  }
}
  • Break change: remove members from bytebase_project
  • Break change: remove roles from bytebase_user and bytebase_group

@ecmadao ecmadao enabled auto-merge (squash) April 22, 2025 08:16
@ecmadao ecmadao disabled auto-merge April 23, 2025 14:06
@ecmadao ecmadao marked this pull request as draft April 23, 2025 14:06
@ecmadao ecmadao changed the title chore: support all users in project IAM WIP: support all users in project IAM Apr 23, 2025
@ecmadao ecmadao changed the title WIP: support all users in project IAM feat: support IAM policy resource Apr 24, 2025
@ecmadao ecmadao marked this pull request as ready for review April 24, 2025 05:06
@ecmadao ecmadao requested a review from d-bytebase April 24, 2025 05:06
@d-bytebase d-bytebase merged commit ca99208 into main Apr 24, 2025
3 checks passed
@d-bytebase d-bytebase deleted the chore/BYT-7295 branch April 24, 2025 05:43
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.

2 participants