Setting S3 configuration for all nodes in cluster

We are running OpenSearch 1.2.4 with the repository-s3 plugin. I have configured the appropriate key/value pairs in the keystore (s3.client.default.access_key, s3.client.default.secret_key, and s3.client.default.session_token) on the master node. When I try to register the repository using the REST API as instructed in the documentation, this seems to work fine on the master node but the data node, which is also trying to access S3, doesn’t seem to have the credentials. The data node request is failing with a 403 response from S3. How can I instruct the data node to use the access key pair and token from the keystore on the master node?