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

Support for IAM #435

Open
gfelbing opened this issue Jun 26, 2024 · 3 comments
Open

Support for IAM #435

gfelbing opened this issue Jun 26, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@gfelbing
Copy link

We are using the provider to create our stackit projects.
But the resources only allows us to set the project owner, not the actual access rights to the projects, but has to be maintained by hand.

I see two options fixing that:

  1. Extend stackit_resourcemanager_project to maintain the list of members (as far as supported by the api)
  2. Add a resource to support the membership api

Or obvious 3rd option: both.

@joaopalet
Copy link
Contributor

Hi @gfelbing,

Thanks for opening the issue. As far as I could see providing a list of members is supported in the memberships API (members field of the "create project" endpoint). Although the list cannot be updated after creation (it's not present in the "update project" endpoint)

So we will plan the integration of the members field in the project resource, and will look into what funcionality from the membership API can be onboarded in separate resources

@joaopalet joaopalet added the enhancement New feature or request label Jun 27, 2024
@joaopalet
Copy link
Contributor

Hi @gfelbing,

We've added support for members in the project resource in version v0.26.1. You can now specify a list of members, each consisting in a subject and role, that will be added to the project.

We have deprecated the existing owner_email field, but it will still work to set the user as a project owner for backwards compatibility. The new members field will take precedence and be used if it's specified in the config.

@GokceGK GokceGK reopened this Sep 13, 2024
@GokceGK
Copy link
Contributor

GokceGK commented Sep 13, 2024

Hi @gfelbing,

after discussions with the product team, we agreed that managing IAM resources with TFP is not currently possible and may be supported in the future. Therefore, we need to remove the members field from the stackit_resourcemanager_project resource.

In order not to completely break the TFP settings, we will mark members field as deprecated for a while. Any changes made to the field will not affect existing projects. We strongly recommend against using the members field.

The owner_email field will remain in use so that a user can be added to the resource at project creation.

We apologize for any inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants