-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove id validation on mwlid namespace and managed identity. #14110
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
Remove id validation on mwlid namespace and managed identity. #14110
Conversation
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @melinath, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 37 Click here to see the affected service packages
Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🟢 All tests passed! |
melinath
left a comment
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.
Validation functions are generally useful because they allow errors to happen at plan time instead of apply time. We do sometimes remove them if there's evidence that the validation won't be stable over time - is that the case here? Otherwise I don't think there's a need to remove this validation.
Is there some additional context for this change? Like a bug that the validation is causing?
cc @zli82016 as the commenter of #14048 (comment)
Managed Workload Identity (MWLID) Namespace and Managed Identity are parts of a set of new API resources provided for the managed workload identities feature. I'm not sure if there'll be changes on the server-side validation, but IMO the change would probably rarely happen because that will likely be a breaking change. I'm afraid this is all the context I have for this one. Might need @zli82016's input here. |
There isn't a bug related to the validation itself. My main concern is simply that I remember we prefer to avoid client-side validation, as it could cause issue if the validation changes on the service side. |
|
Ack, thanks @zli82016! @stevenyang72 is this field likely to have looser validation in the future? If so we should just remove the validation; if it's expected to be static we should probably leave the validation in place. |
|
oh you already said:
I think I'd lean towards leaving the validation there in that case. |
Got it. Thanks! Shall I open another PR to bring back the ID validation on Managed Identity then? @melinath |
|
@stevenyang72 I checked with other folks on the team just to be sure and it sounds like we generally allow validation of ID segments like this. If you'd like to open a PR to add that validation back you're welcome to. |
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.
Remove ID validation on WorkloadIdentityPool Namespace and Managed Identity, clean up associated test files.
Context: #14048 (comment)