Skip to content

Conversation

@KevinFairise2
Copy link
Member

@KevinFairise2 KevinFairise2 commented Oct 15, 2025

Create LocalFeatureFlagManager vs CIFeatureFlagManager, these are two different subclasses because they are quite different in the way they retrieve secrets, and the context they provide.

Also add some documentation about how to use feature flags in actual dda code.

Using the feature flag in the CI expect you to pass some keys as environment variable. As the way the secrets can be retrieved is not the same on the different OSes and that the parameter name can be different, you need the following environment variables in .gitlab-ci.yaml to configure token retrieval for dda features flags
DDA_FEATURE_FLAGS_CI_VAULT_KEY
DDA_FEATURE_FLAGS_CI_VAULT_PATH
DDA_FEATURE_FLAGS_CI_VAULT_KEY_MACOS
DDA_FEATURE_FLAGS_CI_VAULT_PATH_MACOS
DDA_FEATURE_FLAGS_CI_SSM_KEY_WINDOWS

Example of jobs running with that on datadog-agent side: https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/1184492696

@KevinFairise2 KevinFairise2 requested a review from a team as a code owner October 15, 2025 16:27
@KevinFairise2 KevinFairise2 changed the title Address comment + some doc about using feature flags Support feature flags in the CI Oct 15, 2025
@KevinFairise2 KevinFairise2 force-pushed the kfairise/feature-flags-dda branch 3 times, most recently from 536a5fc to d7a0c79 Compare October 16, 2025 09:00
@KevinFairise2 KevinFairise2 force-pushed the kfairise/support-feature-flag-ci branch 25 times, most recently from 4355fe1 to 3dea7c7 Compare October 17, 2025 12:20
@KevinFairise2 KevinFairise2 force-pushed the kfairise/support-feature-flag-ci branch 2 times, most recently from ccb34b4 to f0dcb5e Compare October 17, 2025 12:24
Add support for CI use for feature flags
@KevinFairise2 KevinFairise2 force-pushed the kfairise/support-feature-flag-ci branch from f0dcb5e to be7a4ee Compare October 17, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants