Skip to content
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

Add allowed_email_sans field to write and update functions of vault_cert_auth_backend_role #1140

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions vault/resource_cert_auth_backend_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ func certAuthResourceWrite(d *schema.ResourceData, meta interface{}) error {
data["allowed_dns_sans"] = v.(*schema.Set).List()
}

if v, ok := d.GetOk("allowed_email_sans"); ok {
data["allowed_email_sans"] = v.(*schema.Set).List()
}

if v, ok := d.GetOk("allowed_uri_sans"); ok {
data["allowed_uri_sans"] = v.(*schema.Set).List()
}
Expand Down Expand Up @@ -255,6 +259,10 @@ func certAuthResourceUpdate(d *schema.ResourceData, meta interface{}) error {
if v, ok := d.GetOk("allowed_dns_sans"); ok {
data["allowed_dns_sans"] = v.(*schema.Set).List()
}

if v, ok := d.GetOk("allowed_email_sans"); ok {
data["allowed_email_sans"] = v.(*schema.Set).List()
}

if v, ok := d.GetOk("allowed_uri_sans"); ok {
data["allowed_uri_sans"] = v.(*schema.Set).List()
Expand Down