-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Nexus-611] feat: added permission boundary support #27
base: main
Are you sure you want to change the base?
Conversation
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.
Hi @DavideNale , I am receiving an error when testing this PR:
│ Error: Invalid variable validation condition
│
│ on .terraform/modules/org_sso/modules/sso/variables.tf line 18, in variable "managed_permission_sets":
│ 18: condition = alltrue([
│ 19: for ps in var.inline_permission_sets :
│ 20: ps.permissions_boundary == null ||
│ 21: (ps.permissions_boundary.managed_policy_arn != null) !=
│ 22: (ps.permissions_boundary.customer_managed_policy_reference != null)
│ 23: ])
│
│ The condition for variable "managed_permission_sets" must refer to var.managed_permission_sets in order to test incoming values.
modules/sso/variables.tf
Outdated
name = string | ||
description = string | ||
inline_policy = string | ||
session_duration = optional(string) |
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.
session_duration = optional(string) | |
session_duration = optional(string, "PT12H") |
Declaring this argument without a default is overriding the try statement in the resource block, resulting in all session durations being changed back to the default of PT1H1
Co-authored-by: Carl Hattingh <[email protected]>
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.
I'm till getting an error:
│ Error: Attempt to get attribute from null value
│
│ on .terraform/modules/org_sso/modules/sso/variables.tf line 49, in variable "inline_permission_sets":
│ 49: (ps.permissions_boundary.customer_managed_policy_reference != null)
│ ├────────────────
│ │ ps.permissions_boundary is null
│
│ This value is null, so it does not have any attributes.
How are you testing this?
65c640f
to
8d49b67
Compare
@schattingh I'm testing it with nexus-config/platform-identity but I was doing a mistake while doing so. |
Related Tasks
Does this PR relate to other tasks?
No
Depends on
Are there any other PRs that need to be merged first?
No
What
What changes have been made within this PR?
Added the support for permission boundary for
managed_permission_sets
andinline_permission_sets
.Why
Why are we submitting this PR? What is the context, engineering and business goals being satisfied by this PR?
Added the support for permission boundary to allow the attachment of restriction policies to allow the AU platform team to work on EU resources without infringing GDPR.