Skip to content

Commit 8bd3a99

Browse files
feat(session_recording): configure dyn ext from pomerium ingress CR (#1469)
Backport 5145888 from #1468 Co-authored-by: Alexandre Lamarre <alamarre@pomerium.com>
1 parent 4e93b3b commit 8bd3a99

5 files changed

Lines changed: 32 additions & 0 deletions

File tree

apis/ingress/v1/pomerium_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ type PomeriumSpec struct {
390390
//
391391
// +kubebuilder:validation:Optional
392392
CertificateAutoProvision *CertificateAutoProvision `json:"certificateAutoProvision,omitzero"`
393+
394+
// EnvoyDynamicExtensions file paths to the extensions to be loaded by Envoy at runtime.
395+
EnvoyDynamicExtensions *[]string `json:"envoyDynamicExtensions,omitempty"`
393396
}
394397

395398
// OTEL configures OpenTelemetry.

apis/ingress/v1/zz_generated.deepcopy.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/ingress.pomerium.io_pomerium.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ spec:
304304
format: int32
305305
type: integer
306306
type: object
307+
envoyDynamicExtensions:
308+
description: EnvoyDynamicExtensions file paths to the extensions to
309+
be loaded by Envoy at runtime.
310+
items:
311+
type: string
312+
type: array
307313
identityProvider:
308314
description: |-
309315
IdentityProvider configure single-sign-on authentication and user identity details

deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@ spec:
446446
format: int32
447447
type: integer
448448
type: object
449+
envoyDynamicExtensions:
450+
description: EnvoyDynamicExtensions file paths to the extensions to
451+
be loaded by Envoy at runtime.
452+
items:
453+
type: string
454+
type: array
449455
identityProvider:
450456
description: |-
451457
IdentityProvider configure single-sign-on authentication and user identity details

pomerium/config.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,14 @@ func applySetOtherOptions(_ context.Context, p *pb.Config, c *model.Config) erro
230230
} else {
231231
p.Settings.AllowUpgrades = nil
232232
}
233+
234+
if c.Spec.EnvoyDynamicExtensions != nil {
235+
p.Settings.EnvoyDynamicExtensions = &pb.Settings_StringList{
236+
Values: *c.Spec.EnvoyDynamicExtensions,
237+
}
238+
} else {
239+
p.Settings.EnvoyDynamicExtensions = nil
240+
}
233241
return nil
234242
}
235243

0 commit comments

Comments
 (0)