Add tests and implement StubBearer authentication for Signer endpoints
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Docs CI / lint-and-preview (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Docs CI / lint-and-preview (push) Has been cancelled
				
			- Created SignerEndpointsTests to validate the SignDsse and VerifyReferrers endpoints. - Implemented StubBearerAuthenticationDefaults and StubBearerAuthenticationHandler for token-based authentication. - Developed ConcelierExporterClient for managing Trivy DB settings and export operations. - Added TrivyDbSettingsPageComponent for UI interactions with Trivy DB settings, including form handling and export triggering. - Implemented styles and HTML structure for Trivy DB settings page. - Created NotifySmokeCheck tool for validating Redis event streams and Notify deliveries.
This commit is contained in:
		| @@ -539,9 +539,53 @@ PY | ||||
|           echo "   Service path: ${{ steps.params.outputs.path || '(skipped)' }}" | ||||
|           echo "   Docs path: ${{ steps.params.outputs['docs-path'] || '(skipped)' }}" | ||||
|  | ||||
|       - name: Deployment skipped summary | ||||
|         if: steps.check-deploy.outputs.should-deploy != 'true' | ||||
|         run: | | ||||
|           echo "ℹ️ Deployment stage skipped" | ||||
|           echo "   Event: ${{ github.event_name }}" | ||||
|           echo "   Ref: ${{ github.ref }}" | ||||
|       - name: Deployment skipped summary | ||||
|         if: steps.check-deploy.outputs.should-deploy != 'true' | ||||
|         run: | | ||||
|           echo "ℹ️ Deployment stage skipped" | ||||
|           echo "   Event: ${{ github.event_name }}" | ||||
|           echo "   Ref: ${{ github.ref }}" | ||||
|  | ||||
|   notify-smoke: | ||||
|     runs-on: ubuntu-22.04 | ||||
|     needs: deploy | ||||
|     if: needs.deploy.result == 'success' | ||||
|     env: | ||||
|       DOTNET_VERSION: ${{ env.DOTNET_VERSION }} | ||||
|       NOTIFY_SMOKE_REDIS_DSN: ${{ secrets.NOTIFY_SMOKE_REDIS_DSN }} | ||||
|       NOTIFY_SMOKE_NOTIFY_BASEURL: ${{ secrets.NOTIFY_SMOKE_NOTIFY_BASEURL }} | ||||
|       NOTIFY_SMOKE_NOTIFY_TOKEN: ${{ secrets.NOTIFY_SMOKE_NOTIFY_TOKEN }} | ||||
|       NOTIFY_SMOKE_NOTIFY_TENANT: ${{ secrets.NOTIFY_SMOKE_NOTIFY_TENANT }} | ||||
|       NOTIFY_SMOKE_NOTIFY_TENANT_HEADER: ${{ secrets.NOTIFY_SMOKE_NOTIFY_TENANT_HEADER }} | ||||
|       NOTIFY_SMOKE_EXPECT_KINDS: ${{ vars.NOTIFY_SMOKE_EXPECT_KINDS || secrets.NOTIFY_SMOKE_EXPECT_KINDS }} | ||||
|       NOTIFY_SMOKE_LOOKBACK_MINUTES: ${{ vars.NOTIFY_SMOKE_LOOKBACK_MINUTES || secrets.NOTIFY_SMOKE_LOOKBACK_MINUTES }} | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         uses: actions/checkout@v4 | ||||
|  | ||||
|       - name: Setup .NET ${{ env.DOTNET_VERSION }} | ||||
|         uses: actions/setup-dotnet@v4 | ||||
|         with: | ||||
|           dotnet-version: ${{ env.DOTNET_VERSION }} | ||||
|           include-prerelease: true | ||||
|  | ||||
|       - name: Validate Notify smoke configuration | ||||
|         run: | | ||||
|           missing=() | ||||
|           for name in NOTIFY_SMOKE_REDIS_DSN NOTIFY_SMOKE_NOTIFY_BASEURL NOTIFY_SMOKE_NOTIFY_TOKEN NOTIFY_SMOKE_NOTIFY_TENANT NOTIFY_SMOKE_EXPECT_KINDS NOTIFY_SMOKE_LOOKBACK_MINUTES | ||||
|           do | ||||
|             value="${!name}" | ||||
|             if [ -z "$value" ]; then | ||||
|               missing+=("$name") | ||||
|             fi | ||||
|           done | ||||
|           if [ ${#missing[@]} -gt 0 ]; then | ||||
|             echo "❌ Missing Notify smoke configuration: ${missing[*]}" | ||||
|             exit 1 | ||||
|           fi | ||||
|  | ||||
|       - name: Restore Notify smoke checker | ||||
|         run: dotnet restore tools/NotifySmokeCheck/NotifySmokeCheck.csproj | ||||
|  | ||||
|       - name: Run Notify smoke validation | ||||
|         run: dotnet run --project tools/NotifySmokeCheck/NotifySmokeCheck.csproj --configuration Release | ||||
|   | ||||
		Reference in New Issue
	
	Block a user