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

IAM Role Assignment #665

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

l0wl3vel
Copy link

@l0wl3vel l0wl3vel commented Feb 4, 2025

Reattempts implementing Role Assignment as a separate resource instead of a field in an existing resource, which lead to problems with inherited group membership and general composability.

This attempt should mesh better with the internal behaviour of STACKIT API, which creates an anonymous "association object" when assigning roles: https://docs.stackit.cloud/stackit/en/identity-and-access-management-134415813.html

Currently only implements roles for STACKIT Projects, but most functionality could be broken out as a provider-internal utility to enable role assignments for other resources.

Fixes: #435

@l0wl3vel l0wl3vel force-pushed the feat/role-assignment branch from b1fe2c3 to cebf615 Compare February 6, 2025 16:54
Copy link
Contributor

@Fyusel Fyusel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add also an example terraform config file please (under /examples folder)?
And you can run make generate-docs to generate the documentation

@l0wl3vel
Copy link
Author

Can you add also an example terraform config file please (under /examples folder)? And you can run make generate-docs to generate the documentation

Sure. Just FYI: The Docs generated have a diff outside of the areas I touched.

@l0wl3vel l0wl3vel force-pushed the feat/role-assignment branch from 9cd3acd to b35a03d Compare February 10, 2025 08:48
Signed-off-by: Benjamin Ritter <[email protected]>
@l0wl3vel l0wl3vel changed the title WIP: Initial PoC for a Project Role Assignment resource Project Role Assignment resource Feb 11, 2025
@l0wl3vel l0wl3vel force-pushed the feat/role-assignment branch from 4f27e27 to a275197 Compare February 11, 2025 16:02
@l0wl3vel l0wl3vel changed the title Project Role Assignment resource IAM Role Assignment Feb 11, 2025
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.

Support for IAM
2 participants