Our IT department was most comfortable with using a serial connection. If either Pi was compromised, it wouldn't be possible to access the 2nd Pi (aside from sending a bogus text file). We also disabled SSH on both Pi's.
With this connection we were able to send a 2.4 MB JPG in 3.5 minutes. Slow, but plenty fast for our 200 KB text file once per day.
We added the "node-red-node-serialport" module to our Node-Red palette and connected two Rasberry Pi 3B+ GPIO pins like this:
6 <--> 6
8 <--> 10
10 <--> 8
Node-Red code for Pi #1:
[{"id":"92c3a1f3.1cf57","type":"serial in","z":"7b16bbdf.248634","name":"","serial":"63bffdd8.42c784","x":80,"y":160,"wires":[["e4f84e78.517f4","95b00c19.e230f"]]},{"id":"e4f84e78.517f4","type":"debug","z":"7b16bbdf.248634","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":250,"y":160,"wires":[]},{"id":"14987050.2eb25","type":"serial out","z":"7b16bbdf.248634","name":"","serial":"63bffdd8.42c784","x":260,"y":220,"wires":[]},{"id":"e7982ac8.16e148","type":"inject","z":"7b16bbdf.248634","name":"","topic":"","payload":"howdy","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":220,"wires":[["14987050.2eb25"]]},{"id":"63bffdd8.42c784","type":"serial-port","z":"","serialport":"/dev/ttyS0","serialbaud":"115200","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"500","bin":"bin","out":"interbyte","addchar":"","responsetimeout":"10000"}]
Node-Red code for Pi #2:
[{"id":"a547c005.edffd","type":"serial in","z":"7f8c87e2.149d28","name":"","serial":"83fa47b4.296c18","x":120,"y":180,"wires":[["f167f9c5.3a4438"]]},{"id":"f167f9c5.3a4438","type":"debug","z":"7f8c87e2.149d28","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":270,"y":180,"wires":[]},{"id":"2983374a.1dcbd8","type":"inject","z":"7f8c87e2.149d28","name":"","topic":"","payload":"hello","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":400,"wires":[["b2a889ab.2644c8"]]},{"id":"b2a889ab.2644c8","type":"serial out","z":"7f8c87e2.149d28","name":"","serial":"83fa47b4.296c18","x":260,"y":400,"wires":[]},{"id":"83fa47b4.296c18","type":"serial-port","z":"","serialport":"/dev/ttyS0","serialbaud":"115200","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"500","bin":"bin","out":"interbyte","addchar":"","responsetimeout":"10000"}]
FYI, this is the site that sparked our idea: https://scribles.net/setting-up-uart-serial-communication-between-raspberry-pis/