Skip to content

fix(gcp): throw error instead of panicking if read pem fails#421

Merged
tustvold merged 1 commit into
apache:mainfrom
hugocasa:hc/no-panic-on-invalid-pem-gcp
Jul 8, 2025
Merged

fix(gcp): throw error instead of panicking if read pem fails#421
tustvold merged 1 commit into
apache:mainfrom
hugocasa:hc/no-panic-on-invalid-pem-gcp

Conversation

@hugocasa

@hugocasa hugocasa commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #419

Rationale for this change

See issue

What changes are included in this PR?

Return a ReadPem error instead of panicking when the GCS service account key contains an invalid private key.

Are there any user-facing changes?

No

@tustvold

tustvold commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

It would be even better to have a test for this, but also not a requirement by any means

@tustvold tustvold merged commit 83235d1 into apache:main Jul 8, 2025
8 checks passed
crepererum pushed a commit to crepererum/arrow-rs-object-store that referenced this pull request Jul 10, 2025
@crepererum crepererum mentioned this pull request Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Builder panics on malformed GCS private key instead of returning error

2 participants