Skip to content

Conversation

@ecmadao
Copy link
Collaborator

@ecmadao ecmadao commented Feb 20, 2025

resource "bytebase_role" "auditor" {
  resource_id = "auditor-role"
  title       = "Auditor role"
  description = "This role can only list audit logs"
  permissions = [
    "bb.auditLogs.search"
  ]
}

resource "bytebase_user" "workspace_auditor" {
  depends_on = [
    bytebase_role.auditor
  ]
  title = "Auditor"
  email = "[email protected]"

  # Grant workspace level roles.
  roles = [bytebase_role.auditor.name]
}

@ecmadao ecmadao requested a review from d-bytebase February 20, 2025 08:01
@d-bytebase d-bytebase merged commit f02c61e into main Feb 20, 2025
4 checks passed
@d-bytebase d-bytebase deleted the chore/BYT-6984 branch February 20, 2025 08:58
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.

3 participants