Commit 1cf0c76
Add write-only password support to elasticsearch_security_user resource (#1419)
* Initial plan
* Migrate elasticsearch_security_user from SDKv2 to Plugin Framework
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
* Add write-only password attributes (password_wo and password_wo_version)
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
* Address code review feedback: simplify validators and fix unused variable
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
* Address PR review feedback: use built-in validators, add type assertions, fix password_wo version logic
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
* Update PutUser and DeleteUser to return Framework diagnostics directly
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
* Read password_wo from config instead of plan for write-only attributes
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
* Fix Go formatting (remove trailing whitespace)
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
* PR feedback
* Remove ephemeral random password
* PR feedback
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
Co-authored-by: Toby Brain <toby.brain@elastic.co>1 parent c8c0ca8 commit 1cf0c76
File tree
21 files changed
+736
-301
lines changed- docs/resources
- internal
- clients/elasticsearch
- elasticsearch/security
- user
- testdata
- TestAccImportedUserDoesNotResetPassword
- no_password
- update
- TestAccResourceSecurityUserFromSDK/create
- TestAccResourceSecurityUserWithPasswordWo/create
- TestAccResourceSecurityUser
- create
- update
- provider
21 files changed
+736
-301
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
72 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | | - | |
33 | | - | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
76 | | - | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | | - | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
83 | | - | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | | - | |
87 | | - | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
This file was deleted.
0 commit comments