Commit 730c626
authored
refactor(identity): move equality check into app (#4430)
* refactor(app/identity): TlsIdAndServerNameNotMatching is Clone
Signed-off-by: katelyn martin <kate@buoyant.io>
* refactor(app/identity): EnvError: From<TlsIdAndServerNameNotMatching>
Signed-off-by: katelyn martin <kate@buoyant.io>
* refactor(identity): move equality check into app
this addresses a long-standing todo comment in the linkerd-identity
library. this moves a bit of validation logic that confirms, when
running in the regular "Linkerd" mode, that the `id` field contains a
DNS name, and that `server_name` matches it.
Signed-off-by: katelyn martin <kate@buoyant.io>
* refactor(identity): EnvError::TlsIdAndServerNameNotMatching
Signed-off-by: katelyn martin <kate@buoyant.io>
* nit(app): address clippy `useless_conversion` lint
Signed-off-by: katelyn martin <kate@buoyant.io>
---------
Signed-off-by: katelyn martin <kate@buoyant.io>1 parent 64101a2 commit 730c626
2 files changed
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
906 | 908 | | |
907 | 909 | | |
908 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
909 | 918 | | |
910 | 919 | | |
911 | 920 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| |||
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 82 | + | |
94 | 83 | | |
95 | 84 | | |
96 | 85 | | |
| |||
0 commit comments