-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(grafana): create access for dialogporten devs #1205
Conversation
📝 WalkthroughWalkthroughThe changes involve updating the Grafana configuration in the Terraform file for the Altinn Monitor Test Resource Group. Two new local variables representing Dialogporten developer groups are introduced, with specific GUID values. These variables are then added to the existing Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
infrastructure/adminservices-test/altinn-monitor-test-rg/grafana.tf (1)
77-79
: LGTM! Consider documenting access permissions.The addition of Dialogporten developer groups to the Grafana editors list is appropriate and follows existing patterns. Since this introduces new access permissions, consider:
- Documenting these permissions in the relevant documentation
- Adding a description of the access level granted to Dialogporten developers
Would you like me to help create a documentation PR in the altinn-studio-docs repository as mentioned in the PR checklist?
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
infrastructure/adminservices-test/altinn-monitor-test-rg/grafana.tf
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Analyze (go)
🔇 Additional comments (1)
infrastructure/adminservices-test/altinn-monitor-test-rg/grafana.tf (1)
68-69
: Verify Azure AD group IDs for Dialogporten developersThe GUIDs appear to be Azure AD group IDs. Let's verify they correspond to the correct Dialogporten developer groups.
✅ Verification successful
Implementation of Dialogporten developer groups follows established patterns
The new Dialogporten developer groups are correctly integrated into the Grafana configuration:
- Follow consistent naming convention with other developer groups
- Properly assigned Grafana Editor permissions
- Part of a complete Dialogporten integration setup
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify Azure AD group IDs exist and match the expected groups # Note: This requires Azure CLI authentication # Check dialogporten_developers group echo "Checking dialogporten_developers group (857b3aa1-bde3-469c-a052-a24c81503646):" az ad group show --group 857b3aa1-bde3-469c-a052-a24c81503646 --query "displayName" 2>/dev/null # Check dialogporten_developers_prod group echo "Checking dialogporten_developers_prod group (415cfc7b-40f6-4540-9aef-cb9c9050aada):" az ad group show --group 415cfc7b-40f6-4540-9aef-cb9c9050aada --query "displayName" 2>/dev/nullLength of output: 511
Script:
#!/bin/bash # Search for the Dialogporten developer group IDs across the codebase echo "Searching for dialogporten_developers group ID:" rg -l "857b3aa1-bde3-469c-a052-a24c81503646" echo -e "\nSearching for dialogporten_developers_prod group ID:" rg -l "415cfc7b-40f6-4540-9aef-cb9c9050aada" echo -e "\nChecking for similar Grafana configuration patterns:" fd "grafana.tf" --type fLength of output: 665
Script:
#!/bin/bash # Examine the complete grafana.tf file to understand the context echo "Checking complete grafana.tf content:" cat infrastructure/adminservices-test/altinn-monitor-test-rg/grafana.tf echo -e "\nChecking for similar group ID patterns:" rg -A 1 -B 1 '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}' infrastructure/adminservices-test/altinn-monitor-test-rg/grafana.tfLength of output: 7766
Terraform environment testFormat and Style 🖌
|
Context | Values |
---|---|
Pusher | @sduranc |
Action | push |
Working Directory | ./infrastructure/adminservices-test/altinn-monitor-test-rg |
State File | github.com/altinn/altinn-platform/environments/test/altinn-monitor-test-rg.tfstate |
Plan File | github.com_altinn_altinn-platform_environments_test_altinn-monitor-test-rg.tfstate.tfplan |
Description
Related Issue(s)
Verification
Documentation
Summary by CodeRabbit