fix(handler): return targetId as hostId for cli edge case support (#2920)
This commit is contained in:
1 parent
f88547bbf5
commit
cabe362534
2 files changed
+18
No files matched your search
@@ -28,6 +28,7 @@ const (
|
||||
MultiHopSessionFeature
|
||||
IncludeStatusInCli
|
||||
CredentialLibraryVaultSubtype
|
||||
UseTargetIdForHostId
|
||||
)
|
||||
|
||||
var featureMap map[Feature]MetadataConstraint
|
||||
@@ -65,6 +66,15 @@ func init() {
|
||||
MetaInfo: []Metadata{OSS, HCP},
|
||||
Constraints: mustNewConstraints("< 0.14.0"),
|
||||
}
|
||||
|
||||
// UseTargetIdForHostId supports old CLI clients that are unaware of host-sourceless targets,
|
||||
// this feature populates the target's public id into the AuthorizeSessionResponse
|
||||
// and the SessionAuthroizationData so the CLI can properly build the ssh command
|
||||
// when calling "boundary connect ssh..."
|
||||
featureMap[UseTargetIdForHostId] = MetadataConstraint{
|
||||
MetaInfo: []Metadata{OSS, HCP},
|
||||
Constraints: mustNewConstraints("< 0.14.0"),
|
||||
}
|
||||
}
|
||||
|
||||
func metadataStringToMetadata(m string) Metadata {
|
||||
|
||||
Reference in new issue
Block a user