Page MenuHomePhabricator

create stripe audit directories and config
Closed, ResolvedPublic

Description

As we add stripe, we need to create the audit directories. We may also need to create config templates and an ipset for call outs.

  • audit dirs
  • template config ?
  • ipset ?

Event Timeline

Dwisehaupt moved this task from Triage to In Progress on the fundraising-tech-ops board.

stripe added to modules/civicrm/manifests/audit.pp

Success looks like this script downloading a file to the new dir

php vendor/wikimedia/smash-pig/PaymentProviders/Stripe/Maintenance/GetReport.php --gateway-account WMF_ONLINE

@Dwisehaupt we ARE hitting IP address limits

ip address is being dropped & whoa they have a long list ... https://docs.stripe.com/ips

I've seen a few of them

34.200.47.89
34.200.27.109
34.202.153.183

This command attempts to run run-job -j stripe_audit_download

Added the ipset (api.stripe) to the puppet config and deployed it to the civicrm role. Updated iptables to add an outbound rule for connections.

I'm not seeing that one in the dns list from api.stripe.com and it hasn't been cached by our checker. Not sure how you are getting that IP at this point. Is it calling out to a different dns address?

I expect it's files.stripe - cos it kicks in when initiating the fetch of the report

Ok, I just added entries for api.stripe.com. Are we making calls to others? That ip is in the list for files.stripe.com, armada.stripe.com, and gator.stripe.com.

I guess more correctly stated, Which dns names are we calling out to so we can add them as sets?

Yeah - so we call the api & say 'generate us a report' - then it replies with the url where we can download the report from - so I don't know for sure what the possible urls are

Ok. If we can figure out what that would be (I'm guessing files.) then we can add it in. There is quite the list of domains at the top of the doc page.

Based on a returned call we added an ipset and rules for files.stripe.com.