Giter VIP home page Giter VIP logo

googlecloudplatform / dlp-pdf-redaction Goto Github PK

View Code? Open in Web Editor NEW
37.0 82.0 23.0 277 KB

This solution provides an automated, serverless way to redact sensitive data from PDF files using Google Cloud Services like Data Loss Prevention (DLP), Cloud Workflows, and Cloud Run.

License: Apache License 2.0

Dockerfile 11.18% Python 39.87% HCL 48.95%
dlp workflows redaction gcp pdf documents serverless cloud cloudrun cloudfunctions

dlp-pdf-redaction's Issues

500 server error

BUG: Single Page PDF's fail on Splitter phase.
Description: i get a 500 error anytime i upload a single page, multiple page works good.

Error 2022-07-07T21:54:40.463871ZPOST500653 B160 msGoogleCloudWorkflows; (+https://cloud.google.com/workflows/docs) https://pdf-splitter-98ea-buxissg3zq-uc.a.run.app/ Default 2022-07-07T21:54:46.046341Z[2022-07-07 21:54:46 +0000] [1] [INFO] Starting gunicorn 20.1.0 Default 2022-07-07T21:54:46.047609Z[2022-07-07 21:54:46 +0000] [1] [INFO] Listening at: http://0.0.0.0:8080 (1) Default 2022-07-07T21:54:46.047657Z[2022-07-07 21:54:46 +0000] [1] [INFO] Using worker: gthread Default 2022-07-07T21:54:46.079066Z[2022-07-07 21:54:46 +0000] [2] [INFO] Booting worker with pid: 2 Default 2022-07-07T21:57:12.792512ZDownloading file: gs://pdf-input-bucket-98ea/nospacename.pdf Default 2022-07-07T21:57:12.908398ZInput file downloaded from GCS to 970778b2-3ef6-4a0b-b7d3-b623f3c297fa Default 2022-07-07T21:57:12.935872Zerror: Unable to get page count. Default 2022-07-07T21:57:12.935893ZSyntax Error: Gen inside xref table too large (bigger than INT_MAX) Default 2022-07-07T21:57:12.935902ZSyntax Error: Couldn't find trailer dictionary Default 2022-07-07T21:57:12.935911ZSyntax Error: Gen inside xref table too large (bigger than INT_MAX) Default 2022-07-07T21:57:12.935919ZSyntax Error: Couldn't find trailer dictionary Default 2022-07-07T21:57:12.935927ZSyntax Error: Couldn't read xref table Default

usage of archived TF provider

As per: https://registry.terraform.io/providers/hashicorp/template/latest

This provider has been archived. Please use the templatefile function or the Cloudinit provider instead. See documentation for more details.

Solution can't be deployed from m1 Mac as archived provider doesn't support new architecture.


Current state:

can't terraform apply fails with error:

│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider may have different platforms supported.
╵

Seems to be failing on step 2 for me which is Split PDF into Pages

HTTP server responded with error code 503
in step "2. Split PDF into pages", routine "main", line: 48
{
"body": "Service Unavailable",
"code": 503,
"headers": {
"Alt-Svc": "h3=":443"; ma=2592000,h3-29=":443"; ma=2592000",
"Content-Length": "19",
"Content-Type": "text/plain",
"Date": "Fri, 03 Nov 2023 17:47:53 GMT",
"Server": "Google Frontend",
"X-Cloud-Trace-Context": "853a3ce82faa491cbd266fd3aa572001;o=1"
},
"message": "HTTP server responded with error code 503",
"tags": [
"HttpError"
]
}

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.