Skip to content

Commit

Permalink
Automated from: 9af0663605f10067bcfa1bce91fd13474df3a2bd
Browse files Browse the repository at this point in the history
  • Loading branch information
thycotic-rd committed Oct 25, 2022
1 parent 5a7762f commit 7edfaa0
Show file tree
Hide file tree
Showing 45 changed files with 679 additions and 946 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

An automation tool for the management of credentials for applications, databases, CI/CD tools, and services.

## Installation

Prebuilt binaries for Linux, macOS and Windows can be downloaded from https://dsv.secretsvaultcloud.com/downloads.

## Documentation

The documentation is available at https://docs.delinea.com/dsv/current
The documentation is available at https://docs.delinea.com/dsv/current.

## Development environment setup

Expand Down
3 changes: 1 addition & 2 deletions auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"thy/paths"
"thy/requests"
"thy/store"
"thy/utils"

"github.com/spf13/viper"
)
Expand Down Expand Up @@ -315,7 +314,7 @@ func (r *requestBody) validate(at AuthType) error {
for _, k := range paramSpecDict[at] {
f := ref.FieldByName(k.PropName)
if f.String() == "" {
return utils.NewMissingArgError(k.ArgName)
return errors.NewF("--%s must be set", k.ArgName)
}
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion cicd-integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func init() {
},

{"sign-with-root-cert", []string{"pki", "sign", "--rootcapath", existingRootSecret,
"--csrpath", "@" + csrPath, "--maxttl", "100H",
"--csrpath", "@" + csrPath, "--ttl", "100H",
},
outputPattern("certificate"),
},
Expand Down
6 changes: 2 additions & 4 deletions commands/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ Usage:
FlagsPredictor: []*predictor.Params{
{Name: cst.StartDate, Shorthand: "s", Usage: "Start date from which to fetch audit data (required)"},
{Name: cst.EndDate, Usage: "End date to which to fetch audit data (optional)"},
{Name: cst.Limit, Shorthand: "l", Usage: "Maximum number of results per cursor (optional)"},
{Name: cst.Limit, Shorthand: "l", Usage: cst.LimitHelpMessage},
{Name: cst.Cursor, Usage: cst.CursorHelpMessage},
{Name: cst.Path, Usage: "Path (optional)"},
{Name: cst.NounPrincipal, Usage: "Principal name (optional)"},
{Name: cst.DataAction, Usage: "Action performed (POST, GET, PUT, PATCH or DELETE) (optional)"},
{Name: cst.Sort, Usage: "Change result sorting order (asc|desc) [default: desc] when search field is specified (optional)"},
},
MinNumberArgs: 1,
RunFunc: func(vcli vaultcli.CLI, args []string) int {
return handleAuditSearch(vcli, args)
},
RunFunc: handleAuditSearch,
})
}

Expand Down
16 changes: 4 additions & 12 deletions commands/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ Usage:
• auth --auth-username %[3]s --auth-password %[4]s
• auth --auth-type %[5]s --auth-client-id %[6]s --domain %[7]s --auth-client-secret %[8]s
`, cst.NounAuth, cst.ProductName, cst.ExampleUser, cst.ExamplePassword, cst.ExampleAuthType, cst.ExampleAuthClientID, cst.ExampleDomain, cst.ExampleAuthClientSecret, string(auth.FederatedAws)),
RunFunc: func(vcli vaultcli.CLI, args []string) int {
return handleAuth(vcli, args)
},
RunFunc: handleAuth,
})
}

Expand All @@ -48,9 +46,7 @@ Usage:
• auth clear
`, cst.NounAuth, cst.ProductName, cst.NounToken),
NoPreAuth: true,
RunFunc: func(vcli vaultcli.CLI, args []string) int {
return handleAuthClear(vcli, args)
},
RunFunc: handleAuthClear,
})
}

Expand All @@ -64,9 +60,7 @@ Usage:
• auth list
`, cst.NounAuth, cst.ProductName, cst.NounToken),
NoPreAuth: true,
RunFunc: func(vcli vaultcli.CLI, args []string) int {
return handleAuthList(vcli, args)
},
RunFunc: handleAuthList,
})
}

Expand All @@ -78,9 +72,7 @@ func GetAuthChangePasswordCmd() (cli.Command, error) {
Usage:
• auth change-password`,
RunFunc: func(vcli vaultcli.CLI, args []string) int {
return handleAuthChangePassword(vcli, args)
},
RunFunc: handleAuthChangePassword,
})
}

Expand Down
Loading

0 comments on commit 7edfaa0

Please sign in to comment.