I've been using the extract api locally (really enjoying it) but now I'm read to publish to the server. How should I go about storing the "pdfservices-api-credentials.json" and "private.key" files securely? My first thought was keyvault, but I don't see any options for storing json or .key file types... Has anyone done this?
All our SDKs support providing credentials via methods, like .clientId(...) (going by memory here, that's not the exact caall). So in production you would put the values in environment variables and pass them to our code that way.
Copy link to clipboard
To add to @Raymond Camden 's comment,
In the sample code there is an example that has those parameters:
Credentials credentials = Credentials.serviceAccountCredentialsBuilder() .withClientId("CLIENT_ID") .withClientSecret("CLIENT_SECRET") .withPrivateKey("PRIVATE_KEY_FILE_CONTENTS") .withOrganizationId("ORGANIZATION_ID") .withAccountId("ACCOUNT_ID") .build();