-
Notifications
You must be signed in to change notification settings - Fork 3
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
Importing existing platform_oidc_identity_mapping
results in invalid resource configuration
#145
Comments
@nbaju1 Which version of Artifactory are you on? |
Sorry, forgot to add that. 7.98.2. |
@nbaju1 Thanks! The reason I asked is that I don't see that field "Pattern" in our dev and test environments. Which type of OIDC provider are you using? I don't think this changes the OIDC mapping screen but would be good to know. |
@alexhung The resource in question is using the Azure OIDC provider. |
@alexhung This is what I see when configuring a OIDC Identity Mapping for Azure OIDC integration: Note it is the "User name" field, not "Pattern" here. The REST API also (AFAIK) only support |
@nbaju1 Are you setting up OIDC identity mapping with Project (vs Global)? |
@alexhung Global. If changing to Project, the below image is the identity mapping screen. Which options do you have for the "Token scope" with Global? We have "Admin", "User", "Group", "User Mapping" and "Groups Mapping". User and Groups Mapping has the "Pattern" input. |
@nbaju1 Thanks! Now I see the "Pattern" field in the UI as well as the API response. I'll add this to our plan to add to the resource. |
…ty-mapping Add patterns to OIDC identity mapping
Describe the bug
I'm attempting to import an existing identity mapping to inspect the resulting syntax in the Terraform config. The imported resource in the state does not match the actual mapping in the GUI and also has values not allowed by the provider.
Identity mapping in the GUI:
Resource in state after import:
Requirements for and issue
Provider version: 1.15.1
Terraform version: 1.9.3
Artifactory version: 7.98.2
Expected behavior
Resource imported with correct values.
The text was updated successfully, but these errors were encountered: