signal-setup-guide icon indicating copy to clipboard operation
signal-setup-guide copied to clipboard

replacement of GCP configuration ?

Open rabihbeyrouty opened this issue 4 years ago • 4 comments

Server Version : Server v3.21

Dependencies : GCP

is there any replacement of GCP configuration inside the config.yml , because it same as S3 amazon need subscription

thanks and regards,

rabihbeyrouty avatar Mar 22 '21 08:03 rabihbeyrouty

@rabihbeyrouty I personally use something like this, it is because I use minio for attachment

gcpAttachments: # gcp storage configuration
  domain: domain.com 
  email: [email protected]
  maxSizeInBytes: 1000000
  pathPrefix: /
  rsaSigningKey: "-----BEGIN RSA PRIVATE KEY-----\r\n ...  \r\n-----END RSA PRIVATE KEY-----"

madeindra avatar Mar 22 '21 13:03 madeindra

@madeindra - I got an invalid RSA key error when I copied this.

java.io.IOException: Invalid RSA key
        at org.whispersystems.textsecuregcm.gcp.CanonicalRequestSigner.initializeRsaSigningKey(CanonicalRequestSigner.java:89)
        at org.whispersystems.textsecuregcm.gcp.CanonicalRequestSigner.<init>(CanonicalRequestSigner.java:34)
        at org.whispersystems.textsecuregcm.controllers.AttachmentControllerV3.<init>(AttachmentControllerV3.java:52)
        at org.whispersystems.textsecuregcm.WhisperServerService.run(WhisperServerService.java:507)
        at org.whispersystems.textsecuregcm.WhisperServerService.run(WhisperServerService.java:206)
        at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:59)
        at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
        at io.dropwizard.cli.Cli.run(Cli.java:78)
        at io.dropwizard.Application.run(Application.java:94)
        at org.whispersystems.textsecuregcm.WhisperServerService.main(WhisperServerService.java:641)

ankushbhardwxj avatar May 23 '21 15:05 ankushbhardwxj

@madeindra - I got an invalid RSA key error when I copied this.

java.io.IOException: Invalid RSA key
        at org.whispersystems.textsecuregcm.gcp.CanonicalRequestSigner.initializeRsaSigningKey(CanonicalRequestSigner.java:89)
        at org.whispersystems.textsecuregcm.gcp.CanonicalRequestSigner.<init>(CanonicalRequestSigner.java:34)
        at org.whispersystems.textsecuregcm.controllers.AttachmentControllerV3.<init>(AttachmentControllerV3.java:52)
        at org.whispersystems.textsecuregcm.WhisperServerService.run(WhisperServerService.java:507)
        at org.whispersystems.textsecuregcm.WhisperServerService.run(WhisperServerService.java:206)
        at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:59)
        at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
        at io.dropwizard.cli.Cli.run(Cli.java:78)
        at io.dropwizard.Application.run(Application.java:94)
        at org.whispersystems.textsecuregcm.WhisperServerService.main(WhisperServerService.java:641)

Well because you aren't suppose to copy and paste that value, above RSA key was redacted from the original, however you can generate your own rsa key pair

madeindra avatar May 24 '21 01:05 madeindra

Yes, I figured it out later. Thank you.

ankushbhardwxj avatar May 24 '21 07:05 ankushbhardwxj