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
Copy file name to clipboardExpand all lines: docs/resources/password_policy.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,13 @@ A password policy specifies the requirements that must be met to create and rese
24
24
### Optional
25
25
26
26
-`comment` (String) Adds a comment or overwrites an existing comment for the password policy.
27
+
-`history` (Number) Specifies the number of the most recent passwords that Snowflake stores. These stored passwords cannot be repeated when a user updates their password value. The current password value does not count towards the history. When you increase the history value, Snowflake saves the previous values. When you decrease the value, Snowflake saves the stored values up to that value that is set. For example, if the history value is 8 and you change the history value to 3, Snowflake stores the most recent 3 passwords and deletes the 5 older password values from the history. Default: 0 Max: 24
27
28
-`if_not_exists` (Boolean) Prevent overwriting a previous password policy with the same name.
28
29
-`lockout_time_mins` (Number) Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD_MAX_RETRIES). Supported range: 1 to 999, inclusive. Default: 15
29
30
-`max_age_days` (Number) Specifies the maximum number of days before the password must be changed. Supported range: 0 to 999, inclusive. A value of zero (i.e. 0) indicates that the password does not need to be changed. Snowflake does not recommend choosing this value for a default account-level password policy or for any user-level policy. Instead, choose a value that meets your internal security guidelines. Default: 90, which means the password must be changed every 90 days.
30
31
-`max_length` (Number) Specifies the maximum number of characters the password must contain. This number must be greater than or equal to the sum of PASSWORD_MIN_LENGTH, PASSWORD_MIN_UPPER_CASE_CHARS, and PASSWORD_MIN_LOWER_CASE_CHARS. Supported range: 8 to 256, inclusive. Default: 256
31
32
-`max_retries` (Number) Specifies the maximum number of attempts to enter a password before being locked out. Supported range: 1 to 10, inclusive. Default: 5
33
+
-`min_age_days` (Number) Specifies the number of days the user must wait before a recently changed password can be changed again. Supported range: 0 to 999, inclusive. Default: 0
32
34
-`min_length` (Number) Specifies the minimum number of characters the password must contain. Supported range: 8 to 256, inclusive. Default: 8
33
35
-`min_lower_case_chars` (Number) Specifies the minimum number of lowercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
34
36
-`min_numeric_chars` (Number) Specifies the minimum number of numeric characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
Copy file name to clipboardExpand all lines: pkg/resources/password_policy.go
+48-5Lines changed: 48 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,13 @@ var passwordPolicySchema = map[string]*schema.Schema{
90
90
Description: "Specifies the minimum number of special characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1",
91
91
ValidateFunc: validation.IntBetween(0, 256),
92
92
},
93
+
"min_age_days": {
94
+
Type: schema.TypeInt,
95
+
Optional: true,
96
+
Default: 0,
97
+
Description: "Specifies the number of days the user must wait before a recently changed password can be changed again. Supported range: 0 to 999, inclusive. Default: 0",
98
+
ValidateFunc: validation.IntBetween(0, 999),
99
+
},
93
100
"max_age_days": {
94
101
Type: schema.TypeInt,
95
102
Optional: true,
@@ -111,6 +118,13 @@ var passwordPolicySchema = map[string]*schema.Schema{
111
118
Description: "Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD_MAX_RETRIES). Supported range: 1 to 999, inclusive. Default: 15",
112
119
ValidateFunc: validation.IntBetween(1, 999),
113
120
},
121
+
"history": {
122
+
Type: schema.TypeInt,
123
+
Optional: true,
124
+
Default: 0,
125
+
Description: "Specifies the number of the most recent passwords that Snowflake stores. These stored passwords cannot be repeated when a user updates their password value. The current password value does not count towards the history. When you increase the history value, Snowflake saves the previous values. When you decrease the value, Snowflake saves the stored values up to that value that is set. For example, if the history value is 8 and you change the history value to 3, Snowflake stores the most recent 3 passwords and deletes the 5 older password values from the history. Default: 0 Max: 24",
0 commit comments