Skip to content
Merged
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- run: ./gradlew assemble

- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.2.1
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets/v1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Agentic Security Review

Severity: MEDIUM

Description: build-and-run now executes launchdarkly/gh-actions at the moving tags release-secrets/v1 and verify-hello-app/v2. Those tags are force-updated by that repo's release workflow and are not immutable releases. The job grants id-token: write, has no environment approval, and passes vars.AWS_ROLE_ARN plus the hello-app SSM parameter names, so whatever commit those tags point at runs with this repository's OIDC identity and can assume the role and read the server SDK key and flag key without a reviewed pin bump in this repo.

Impact: A principal who can push main or force-update tags in launchdarkly/gh-actions can change the only steps that mint this workflow's OIDC token and call AssumeRoleWithWebIdentity on vars.AWS_ROLE_ARN. The next schedule, push to main or feat/**, or same-repo pull_request then runs that code and can export /sdk/common/hello-apps/server-key and boolean-flag-key. The previous uses were immutable patch releases, so this removes the consumer-repo review gate before credentialed execution. Fork pull_request runs are not the path; tag update rights on gh-actions are.

Remediation: Pin both uses entries to full commit SHAs (the previous immutable patch tags are the alternative reviewed pin) and bump them only through a reviewed workflow change. If major-line tracking stays, keep those tags limited to a protected release identity and keep the AWS role trust restricted to this repository's workflow subject, so a force-push of release-secrets/v1 or verify-hello-app/v2 cannot assume vars.AWS_ROLE_ARN.

name: 'Get the server SDK key'
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
Expand All @@ -38,7 +38,7 @@ jobs:

- run: java -jar build/libs/hello-openfeature-java-server-1.0-SNAPSHOT-all.jar

- uses: launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app-v2.0.2
- uses: launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app/v2
with:
use_server_key: true
role_arn: ${{ vars.AWS_ROLE_ARN }}
Expand Down