Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v16] Backport Bot Instances to branch/v16 #45104

Merged
merged 19 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
10ceb2a
Add basic CRUD for BotInstanceService (#42899)
timothyb89 Jun 25, 2024
a610824
Create Bot Instances during initial bot join (#43577)
timothyb89 Jul 3, 2024
eca56d1
Machine ID: Provide existing identity when rejoining as part of renew…
strideynet Jul 23, 2024
ce63778
Fix built gRPC
timothyb89 Aug 5, 2024
5c90885
Machine ID: Bot Instance heartbeating (#43463)
strideynet Jul 8, 2024
e70ed0d
Allow bots to provide client cert authentication when rejoining (#44257)
timothyb89 Jul 23, 2024
e7f3234
Machine ID: Include Bot Instance ID in audit logs (#43786)
strideynet Jul 25, 2024
1b3a013
Show bot instance ID in tbot log output (#44578)
timothyb89 Jul 26, 2024
a933e8e
Machine ID: Validate generation counter using bot instances (#44583)
timothyb89 Jul 30, 2024
df19dd6
Fix HostCAs not being returned during bot renewal (#44832)
strideynet Jul 31, 2024
4fc663d
Machine ID: Remove `BOT_INSTANCE_EXPERIMENT` feature flag (#44904)
timothyb89 Aug 2, 2024
17660b4
Machine ID: Only set legacy generation counter for renewable joins (#…
timothyb89 Aug 2, 2024
099a11e
Remove unused function sshPublicKeyToPKIXPEM
timothyb89 Aug 6, 2024
2e99574
Always use PEM PKIX DER representation of public keys for BotInstance…
strideynet Jul 8, 2024
75b0740
Merge remote-tracking branch 'origin/branch/v16' into timothyb89/v16/…
timothyb89 Aug 13, 2024
c400e1a
Remove mistakenly included TestVerifyALPNUpgradedConn
timothyb89 Aug 14, 2024
b9059df
Merge remote-tracking branch 'origin/branch/v16' into timothyb89/v16/…
timothyb89 Aug 26, 2024
a2d02ac
Merge remote-tracking branch 'origin/branch/v16' into timothyb89/v16/…
timothyb89 Aug 26, 2024
518e15d
Merge branch 'branch/v16' into timothyb89/v16/bot-instances
timothyb89 Aug 26, 2024
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
5 changes: 5 additions & 0 deletions api/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,11 @@ func (c *Client) BotServiceClient() machineidv1pb.BotServiceClient {
return machineidv1pb.NewBotServiceClient(c.conn)
}

// BotInstanceServiceClient returns an unadorned client for the bot instance service
func (c *Client) BotInstanceServiceClient() machineidv1pb.BotInstanceServiceClient {
return machineidv1pb.NewBotInstanceServiceClient(c.conn)
}

func (c *Client) SPIFFEFederationServiceClient() machineidv1pb.SPIFFEFederationServiceClient {
return machineidv1pb.NewSPIFFEFederationServiceClient(c.conn)
}
Expand Down
7 changes: 7 additions & 0 deletions api/client/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func EventToGRPC(in types.Event) (*proto.Event, error) {
out.Resource = &proto.Event_DatabaseObject{
DatabaseObject: r,
}
case *machineidv1.BotInstance:
out.Resource = &proto.Event_BotInstance{
BotInstance: r,
}
case *machineidv1.SPIFFEFederation:
out.Resource = &proto.Event_SPIFFEFederation{
SPIFFEFederation: r,
Expand Down Expand Up @@ -521,6 +525,9 @@ func EventFromGRPC(in *proto.Event) (*types.Event, error) {
} else if r := in.GetDatabaseObject(); r != nil {
out.Resource = types.Resource153ToLegacy(r)
return &out, nil
} else if r := in.GetBotInstance(); r != nil {
out.Resource = types.Resource153ToLegacy(r)
return &out, nil
} else if r := in.GetSPIFFEFederation(); r != nil {
out.Resource = types.Resource153ToLegacy(r)
return &out, nil
Expand Down
605 changes: 315 additions & 290 deletions api/client/proto/event.pb.go

Large diffs are not rendered by default.

Loading
Loading