Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Reasoning Engine - support for environment variable #961

Open
1 task done
darrenchiu opened this issue Aug 18, 2024 · 1 comment
Open
1 task done

[Feat]: Reasoning Engine - support for environment variable #961

darrenchiu opened this issue Aug 18, 2024 · 1 comment
Assignees

Comments

@darrenchiu
Copy link

Is your feature request related to a problem? Please describe.

Our agent would leverage some third party API, but we don't want to hard code these API keys in the code. We would like to be able to supply the keys using environment variables for best security practice

Describe the solution you'd like

We would like to be able to supply the keys using environment variables for best security practice

Describe alternatives you've considered

Hard-coding the API keys and credentials

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@koverholt koverholt self-assigned this Aug 21, 2024
@koverholt
Copy link
Member

Hi @darrenchiu! The recommended way to handle this is to use Secret Manager within a given Python function / tool, which will allow the secret to be securely retrieved by the deployed Reasoning Engine agent. You can implement this within your tool(s) using the sample code shown at https://cloud.google.com/secret-manager/docs/access-secret-version. Let me know if that approach works for you or if you run into any issues. This is also something I can pass to the Reasoning Engine team that we can write up more thoroughly in our documentation and sample notebooks.

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

No branches or pull requests

2 participants