Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e580cb2
feat(credentials): Add PasswordAttributes credential type (#6110)
bgajjala8 Oct 3, 2025
2851b9c
feat(db): Add new tables for password credential type (#6101)
laero Oct 3, 2025
454d95f
feat(db): Password credential migration (#6125)
bgajjala8 Oct 9, 2025
d66c250
feat(db): Add db migration to support vault password credential (#6129)
laero Oct 10, 2025
df60265
feat(credential/vault): Implement repository for vault password crede…
laero Oct 15, 2025
74c7824
feat(handlers): Implement CRUDL for vault generic Password credential…
laero Oct 20, 2025
7c9258b
feat(credential/static): Implement CRUDL support for password credent…
bgajjala8 Oct 21, 2025
1a0a02b
feat(handlers): CRUDL support for static password credential (#6181)
bgajjala8 Oct 27, 2025
b7dd7ad
feat(cli): Add password credential CLI commands (#6117)
bgajjala8 Oct 29, 2025
9f7f0f0
feat(credentials): Add PasswordAttributes credential type (#6110)
bgajjala8 Oct 3, 2025
c6699cd
feat(db): Add new tables for password credential type (#6101)
laero Oct 3, 2025
962b3f3
feat(db): Password credential migration (#6125)
bgajjala8 Oct 9, 2025
05801f2
feat(db): Add db migration to support vault password credential (#6129)
laero Oct 10, 2025
da9bc7f
feat(credential/vault): Implement repository for vault password crede…
laero Oct 15, 2025
98c267b
feat(handlers): Implement CRUDL for vault generic Password credential…
laero Oct 20, 2025
cb9065f
feat(credential/static): Implement CRUDL support for password credent…
bgajjala8 Oct 21, 2025
72fdaa3
feat(handlers): CRUDL support for static password credential (#6181)
bgajjala8 Oct 27, 2025
5ee7555
feat(cli): Add password credential CLI commands (#6117)
bgajjala8 Oct 29, 2025
33fa943
Merge branch 'llb-password-credential-type' of github.com:hashicorp/b…
bgajjala8 Oct 29, 2025
efbb09f
Merge branch 'main' of github.com:hashicorp/boundary into llb-passwor…
bgajjala8 Oct 29, 2025
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
12 changes: 12 additions & 0 deletions api/credentials/option.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions api/credentials/password_attributes.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions api/sessionrecordings/password_credential_attributes.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions globals/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const (
UnspecifiedCredentialType CredentialType = "unspecified"
UsernamePasswordCredentialType CredentialType = "username_password"
UsernamePasswordDomainCredentialType CredentialType = "username_password_domain"
PasswordCredentialType CredentialType = "password"
SshPrivateKeyCredentialType CredentialType = "ssh_private_key"
SshCertificateCredentialType CredentialType = "ssh_certificate"
JsonCredentialType CredentialType = "json"
Expand Down
6 changes: 6 additions & 0 deletions globals/prefixes.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ const (
// UsernamePasswordCredentialPreviousPrefix is the previous prefix for
// username/password creds
UsernamePasswordCredentialPreviousPrefix = "cred"
// PasswordCredentialPrefix is the prefix for password creds
PasswordCredentialPrefix = "credp"
// SshPrivateKeyCredentialPrefix is the prefix for SSH private key creds
SshPrivateKeyCredentialPrefix = "credspk"
// JsonCredentialPrefix is the prefix for generic JSON creds
Expand Down Expand Up @@ -260,6 +262,10 @@ var prefixToResourceType = map[string]ResourceInfo{
Type: resource.Credential,
Subtype: UnknownSubtype,
},
PasswordCredentialPrefix: {
Type: resource.Credential,
Subtype: UnknownSubtype,
},
SshPrivateKeyCredentialPrefix: {
Type: resource.Credential,
Subtype: UnknownSubtype,
Expand Down
41 changes: 41 additions & 0 deletions internal/api/genapi/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,22 @@ var inputStructs = []*structInfo{
versionEnabled: true,
createResponseTypes: []string{CreateResponseType, ReadResponseType, UpdateResponseType, DeleteResponseType, ListResponseType},
},
{
inProto: &credentials.PasswordAttributes{},
outFile: "credentials/password_attributes.gen.go",
subtypeName: "PasswordCredential",
subtype: "password",
fieldOverrides: []fieldInfo{
{
Name: "Password",
SkipDefault: true,
},
},
parentTypeName: "Credential",
templates: []*template.Template{
mapstructureConversionTemplate,
},
},
{
inProto: &credentials.UsernamePasswordAttributes{},
outFile: "credentials/username_password_attributes.gen.go",
Expand Down Expand Up @@ -720,6 +736,22 @@ var inputStructs = []*structInfo{
mapstructureConversionTemplate,
},
},
{
inProto: &credentials.PasswordAttributes{},
outFile: "credentials/password_attributes.gen.go",
subtypeName: "PasswordCredential",
subtype: "password",
fieldOverrides: []fieldInfo{
{
Name: "Password",
SkipDefault: true,
},
},
parentTypeName: "Credential",
templates: []*template.Template{
mapstructureConversionTemplate,
},
},
{
inProto: &credentials.SshPrivateKeyAttributes{},
outFile: "credentials/ssh_private_key_attributes.gen.go",
Expand Down Expand Up @@ -1262,6 +1294,15 @@ var inputStructs = []*structInfo{
inProto: &session_recordings.Credential{},
outFile: "sessionrecordings/credential.gen.go",
},
{
inProto: &session_recordings.PasswordCredentialAttributes{},
outFile: "sessionrecordings/password_credential_attributes.gen.go",
subtype: "password",
parentTypeName: "Credential",
templates: []*template.Template{
mapstructureConversionTemplate,
},
},
{
inProto: &session_recordings.UsernamePasswordCredentialAttributes{},
outFile: "sessionrecordings/username_password_credential_attributes.gen.go",
Expand Down
12 changes: 12 additions & 0 deletions internal/cmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,12 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) {
Func: "create",
}
}),
"credentials create password": wrapper.Wrap(func() wrapper.WrappableCommand {
return &credentialscmd.PasswordCommand{
Command: base.NewCommand(ui, opts...),
Func: "create",
}
}),
"credentials create username-password": wrapper.Wrap(func() wrapper.WrappableCommand {
return &credentialscmd.UsernamePasswordCommand{
Command: base.NewCommand(ui, opts...),
Expand Down Expand Up @@ -639,6 +645,12 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) {
Func: "update",
}
}),
"credentials update password": wrapper.Wrap(func() wrapper.WrappableCommand {
return &credentialscmd.PasswordCommand{
Command: base.NewCommand(ui, opts...),
Func: "update",
}
}),
"credentials update username-password": wrapper.Wrap(func() wrapper.WrappableCommand {
return &credentialscmd.UsernamePasswordCommand{
Command: base.NewCommand(ui, opts...),
Expand Down
Loading
Loading