You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnlogical.ErrorResponse("can not mix %q with values", "*"), nil
340
340
}
341
341
342
-
// audiences will be required in kubernetes roles in a future Vault version
343
342
ifaudience, ok:=data.GetOk("audience"); ok {
344
343
role.Audience=audience.(string)
345
344
}
346
345
347
-
// Vault 1.21+ will require an audience to be set on a role for security reasons.
348
-
// Log a warning if the role does not specify an audience.
346
+
// Warn if audience is not set
349
347
ifstrings.TrimSpace(role.Audience) =="" {
350
348
ifresp==nil {
351
349
resp=&logical.Response{}
352
350
}
353
351
354
-
b.Logger().Warn("This role does not have an audience. In Vault v1.21+, specifying an audience on roles will be required.", "role_name", roleName)
355
-
resp.AddWarning(fmt.Sprintf("Role %s does not have an audience. In Vault v1.21+, specifying an audience on roles will be required.", roleName))
352
+
b.Logger().Warn("This role does not have an audience configured. While audiences are not required, consider specifying one if your use case would benefit from additional JWT claim verification.", "role_name", roleName)
353
+
resp.AddWarning(fmt.Sprintf("Role %s does not have an audience configured. While audiences are not required, consider specifying one if your use case would benefit from additional JWT claim verification.", roleName))
356
354
}
357
355
358
356
ifsource, ok:=data.GetOk("alias_name_source"); ok {
0 commit comments