Block Deactivated Apps

In order to block requests from deactivated apps which are still being sent from the SDK from reaching our web workers, we need to route them to our 404 backend which simply returns 404 response back to the SDK.

To do so, we need to update rules in the ingress files (gap/staging/gap_ingress.yaml or gap/production/gap_ingress.yaml). Once the SDK stops sending requests for the deactivated app we can remove those rules from the ingress file.

For this we have a helper tool.

Add rules to Ingress

To block the requests from the app:

npm run manage-ingress-404-rules --\
  --action add \
  --environment production \
  --app-code EMSAB-12345

Remove rules from Ingress

Once the SDK stops sending requests we can remove the rule:

npm run manage-ingress-404-rules --\
  --action remove \
  --environment production \
  --app-code EMSAB-12345