Skip to content

Commit ff7f538

Browse files
committed
fix cred fail
Fixes a cred failure caused by the provider incorrectly failing with client id and client secret pulled from a secret manager.
1 parent eda6800 commit ff7f538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redpanda/redpanda.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func providerSchema() schema.Schema {
9898
validators.NotUnknown(),
9999
},
100100
},
101+
// does not include NotUnknown to prevent incorrect failure for inputs from datasources that pull from secret managers
101102
"client_id": schema.StringAttribute{
102103
Optional: true,
103104
Sensitive: true,
@@ -108,17 +109,16 @@ func providerSchema() schema.Schema {
108109
path.MatchRoot("client_secret"),
109110
path.MatchRoot("access_token"),
110111
),
111-
validators.NotUnknown(),
112112
},
113113
},
114+
// does not include NotUnknown to prevent incorrect failure for inputs from datasources that pull from secret managers
114115
"client_secret": schema.StringAttribute{
115116
Optional: true,
116117
Sensitive: true,
117118
MarkdownDescription: fmt.Sprintf("Redpanda client secret. You need either `client_id` AND `client_secret`, "+
118119
"or `access_token`, to use this provider. Can also be set with the `%v` environment variable.", ClientSecretEnv),
119120
Validators: []validator.String{
120121
stringvalidator.AlsoRequires(path.MatchRoot("client_id")),
121-
validators.NotUnknown(),
122122
},
123123
},
124124
"azure_subscription_id": schema.StringAttribute{

0 commit comments

Comments
 (0)