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

[v17] Add Identity Center Account Assignments to Unified Resource Cache #49976

Conversation

tcsc
Copy link
Contributor

@tcsc tcsc commented Dec 10, 2024

Backports #49580 and #49977

Adds Identity Center Account Assignments to the Unified resource cache
so they can be requested in access requests.

Unfortunately we can't just include an identitycenterv1.AccountAssignment
directly in the resource cache ListResources output because the legacy
protobuf codegen used for the authservice and the new codegen used for
identitycenter/v1 produce incompatible serialization code, so resulting
generated code does not compile.

To get around this issue, this change introduces a parallel (and slightly
simplified) definition of an IdentityCenterAccountAssignment in the authservice
protobuf spec to act as the wire format for this type. The cached
identitycenterv1.AccountAssignment resources are copied into a
proto.IdentityCenterAccountAssignment on a cache read.

Includes:

  • adding resources to cache
  • adding account assignment paginated resource
  • account assignment role condition matching for RBAC

@tcsc tcsc added backport no-changelog Indicates that a PR does not require a changelog entry aws-iam-identity-center labels Dec 10, 2024
@tcsc tcsc requested review from smallinsky and flyinghermit and removed request for smallinsky December 10, 2024 00:12
@tcsc tcsc removed the request for review from r0mant December 10, 2024 00:12
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from smallinsky December 10, 2024 00:29
@tcsc tcsc force-pushed the tcsc/branch/v17/idc-expose-account-assignmens-via-resource-cache branch from 238c042 to a16d3ec Compare December 10, 2024 00:31
Backports #49580 and #49977

Adds Identity Center Account Assignments to the Unified resource cache
so they can be requested in access requests.

Unfortunately we can't just include an `identitycenterv1.AccountAssignment`
directly in the resource cache ListResources output because the legacy
protobuf codegen used for the authservice and the new codegen used for
identitycenter/v1 produce incompatible serialization code, so resulting
generated code does not compile.

To get around this issue, this change introduces a parallel (and slightly
simplified) definition of an IdentityCenterAccountAssignment in the authservice
protobuf spec to act as the wire format for this type. The cached
`identitycenterv1.AccountAssignment` resources are copied into a
`proto.IdentityCenterAccountAssignment` on a cache read.

Includes:
 - adding resources to cache
 - adding account assignment paginated resource
 - account assignment role condition matching for RBAC
@tcsc tcsc force-pushed the tcsc/branch/v17/idc-expose-account-assignmens-via-resource-cache branch from a16d3ec to bf62f45 Compare December 10, 2024 04:59
@tcsc tcsc enabled auto-merge December 10, 2024 05:07
@tcsc tcsc added this pull request to the merge queue Dec 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 10, 2024
…he (#49976)

Backports #49580 and #49977

Adds Identity Center Account Assignments to the Unified resource cache
so they can be requested in access requests.

Unfortunately we can't just include an `identitycenterv1.AccountAssignment`
directly in the resource cache ListResources output because the legacy
protobuf codegen used for the authservice and the new codegen used for
identitycenter/v1 produce incompatible serialization code, so resulting
generated code does not compile.

To get around this issue, this change introduces a parallel (and slightly
simplified) definition of an IdentityCenterAccountAssignment in the authservice
protobuf spec to act as the wire format for this type. The cached
`identitycenterv1.AccountAssignment` resources are copied into a
`proto.IdentityCenterAccountAssignment` on a cache read.

Includes:
 - adding resources to cache
 - adding account assignment paginated resource
 - account assignment role condition matching for RBAC
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 10, 2024
@tcsc tcsc added this pull request to the merge queue Dec 10, 2024
Merged via the queue into branch/v17 with commit 7ff7a46 Dec 10, 2024
42 checks passed
@tcsc tcsc deleted the tcsc/branch/v17/idc-expose-account-assignmens-via-resource-cache branch December 10, 2024 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-iam-identity-center backport no-changelog Indicates that a PR does not require a changelog entry size/md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants