Skip to content
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

Granular Slack and LinkedIn app control actions error as invalid actions #382

Open
MilesTails opened this issue Nov 27, 2024 · 0 comments
Open
Assignees
Labels
🐛 type/bug :bug: type/bug

Comments

@MilesTails
Copy link

MilesTails commented Nov 27, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v1.5.7

Affected Resource(s)

  • zia_cloud_app_control_rule - specifically actions for Slack and LinkedIn

Terraform Configuration Files

resource "zia_cloud_app_control_rule" "slack" {
    name                         = "Slack"
    order                        = 3
    rank                         = 7
    state                        = "ENABLED"
    type                         = "ENTERPRISE_COLLABORATION"
    actions                      = [
           "ALLOW_ENTERPRISE_COLLABORATION_APPS"
           "ALLOW_ENTERPRISE_COLLABORATION_CHAT",
           "ALLOW_ENTERPRISE_COLLABORATION_CREATE",
           "ALLOW_ENTERPRISE_COLLABORATION_DELETE",
           "ALLOW_ENTERPRISE_COLLABORATION_DOWNLOAD",
           "ALLOW_ENTERPRISE_COLLABORATION_EDIT",
           "ALLOW_ENTERPRISE_COLLABORATION_HUDDLE",
           "ALLOW_ENTERPRISE_COLLABORATION_INVITE",
           "ALLOW_ENTERPRISE_COLLABORATION_UPLOAD",
    ]
    applications          = [
        "SLACK",
    ]
}

resource "zia_cloud_app_control_rule" "linkedin_readonly" {
    name                         = "LinkedIn Read Only"
    order                        = 4
    rank                         = 7
    state                        = "ENABLED"
    type                         = "SOCIAL_NETWORKING"
     actions                      = [
           "ALLOW_SOCIAL_NETWORKING_VIEW",
           "BLOCK_SOCIAL_NETWORKING_CHAT",
           "BLOCK_SOCIAL_NETWORKING_COMMENT",
           "BLOCK_SOCIAL_NETWORKING_CREATE",
           "BLOCK_SOCIAL_NETWORKING_EDIT",
           "BLOCK_SOCIAL_NETWORKING_POST",
           "BLOCK_SOCIAL_NETWORKING_SHARE",
           "BLOCK_SOCIAL_NETWORKING_UPLOAD",    
    ]
    applications          = [
        "LINKEDIN",
    ]
}

Debug Output

Panic Output

Expected Behavior

Rules should have been created.

Actual Behavior

│ Error: invalid actions [ALLOW_ENTERPRISE_COLLABORATION_DELETE ALLOW_ENTERPRISE_COLLABORATION_CHAT ALLOW_ENTERPRISE_COLLABORATION_CREATE ALLOW_ENTERPRISE_COLLABORATION_DOWNLOAD ALLOW_ENTERPRISE_COLLABORATION_EDIT ALLOW_ENTERPRISE_COLLABORATION_UPLOAD ALLOW_ENTERPRISE_COLLABORATION_HUDDLE ALLOW_ENTERPRISE_COLLABORATION_INVITE] for type ENTERPRISE_COLLABORATION. Valid actions are: [ALLOW_ENTERPRISE_COLLABORATION_APPS BLOCK_ENTERPRISE_COLLABORATION_APPS CAUTION_ENTERPRISE_COLLABORATION_APPS ISOLATE_ENTERPRISE_COLLABORATION_APPS]. Please adjust the type or actions accordingly

│ Error: invalid actions [BLOCK_SOCIAL_NETWORKING_SHARE BLOCK_SOCIAL_NETWORKING_COMMENT BLOCK_SOCIAL_NETWORKING_CREATE BLOCK_SOCIAL_NETWORKING_EDIT BLOCK_SOCIAL_NETWORKING_UPLOAD BLOCK_SOCIAL_NETWORKING_CHAT] for type SOCIAL_NETWORKING. Valid actions are: [ALLOW_SOCIAL_NETWORKING_VIEW ALLOW_SOCIAL_NETWORKING_POST BLOCK_SOCIAL_NETWORKING_VIEW BLOCK_SOCIAL_NETWORKING_POST CAUTION_SOCIAL_NETWORKING_VIEW]. Please adjust the type or actions accordingly

Steps to Reproduce

  1. Copy above config
  2. terraform plan
  3. Error

Important Factoids

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 type/bug :bug: type/bug
Projects
Status: No status
Development

No branches or pull requests

2 participants