update STS docs with new values (#10055)

Co-authored-by: Poorna <poornas@users.noreply.github.com>
This commit is contained in:
Harshavardhana
2020-07-15 14:36:14 -07:00
committed by GitHub
parent 9c66812b99
commit cd849bc2ff
5 changed files with 24 additions and 24 deletions

View File

@@ -123,8 +123,8 @@ func GetDefaultExpiration(dsecs string) (time.Duration, error) {
// The duration, in seconds, of the role session.
// The value can range from 900 seconds (15 minutes)
// to 12 hours.
if expirySecs < 900 || expirySecs > 43200 {
// up to 7 days.
if expirySecs < 900 || expirySecs > 604800 {
return 0, auth.ErrInvalidDuration
}

View File

@@ -126,7 +126,7 @@ func TestDefaultExpiryDuration(t *testing.T) {
expectErr: true,
},
{
reqURL: "http://localhost:8443/?DurationSeconds=43201",
reqURL: "http://localhost:8443/?DurationSeconds=604801",
expectErr: true,
},
{