Skip to content

Security: Missing import for base64 module#6770

Open
tomaioo wants to merge 1 commit into
googleapis:mainfrom
tomaioo:fix/security/missing-import-for-base64-module
Open

Security: Missing import for base64 module#6770
tomaioo wants to merge 1 commit into
googleapis:mainfrom
tomaioo:fix/security/missing-import-for-base64-module

Conversation

@tomaioo
Copy link
Copy Markdown

@tomaioo tomaioo commented May 12, 2026

Summary

Security: Missing import for base64 module

Problem

Severity: High | File: .sample_configs/implementations.py:L13

The b64_encode function uses base64.b64encode() but base64 is not imported in the file. This will cause a NameError at runtime.

Solution

Add 'import base64' at the top of the file.

Changes

  • .sample_configs/implementations.py (modified)

The b64_encode function uses base64.b64encode() but base64 is not imported in the file. This will cause a NameError at runtime.

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
@tomaioo tomaioo requested a review from a team as a code owner May 12, 2026 06:06
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels May 12, 2026
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 12, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant