Skip to content

Conversation

@petertriho
Copy link

This PR

  • Adds AWS SSM Provider for OpenFeature Python SDK

Notes

  • Had to relax types-requests versions due to resolution issue with boto3

@petertriho petertriho requested review from a team as code owners January 18, 2026 08:38
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @petertriho, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the OpenFeature Python SDK by adding a new provider for AWS Systems Manager Parameter Store. This integration enables developers to leverage AWS SSM as a backend for managing feature flags, benefiting from its secure and centralized parameter management capabilities. The new provider is designed for flexibility, offering both synchronous and asynchronous operations, along with configurable caching mechanisms to ensure efficient flag retrieval. It also includes comprehensive support for various flag data types and handles the mapping of flag keys to SSM parameter names, making it a robust solution for feature flag management in AWS environments.

Highlights

  • New AWS SSM Provider: Introduces a new OpenFeature provider for Python that integrates with AWS Systems Manager (SSM) Parameter Store, allowing feature flags to be managed directly within SSM.
  • Synchronous and Asynchronous Support: The provider supports both synchronous and asynchronous flag evaluation, catering to different application architectures.
  • Configurable Caching: Includes flexible caching strategies (LRU and TTL) to optimize performance and reduce calls to AWS SSM, with the option to disable caching entirely.
  • Comprehensive Flag Type Handling: Supports all OpenFeature flag types (boolean, string, integer, float, object) with robust parsing logic and error handling for type mismatches or invalid formats.
  • Dependency Version Adjustment: Relaxed the version requirement for types-requests in existing providers (flipt, ofrep) to resolve a potential dependency conflict with boto3.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/build.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new provider for AWS Systems Manager (SSM) Parameter Store. The implementation is well-structured, separating concerns into a service layer for AWS interaction, parsers for type conversion, and the provider itself. The caching implementation is flexible, supporting both LRU and TTL strategies, and can be disabled. The provider supports both synchronous and asynchronous operations. The accompanying documentation is thorough, and the test coverage is excellent, including unit, integration, and async tests.

I have a few suggestions to further improve the code's maintainability and clarity by removing some redundant validation logic, improving type hints, and clarifying a documentation example. Overall, this is a high-quality contribution.

Had to relax `types-requests` versions due to resolution issue with boto3

Signed-off-by: Peter Tri Ho <mail@petertriho.com>
@petertriho
Copy link
Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new aws-ssm provider for the OpenFeature Python SDK, a valuable addition for users leveraging AWS Parameter Store for feature flagging. The implementation is robust, featuring both synchronous and asynchronous support, configurable caching (LRU and TTL), and clear separation of concerns between the service layer, parsers, and the provider itself. The error handling is particularly well-done, mapping specific AWS errors to OpenFeature exceptions. The accompanying test suite is comprehensive, covering unit, integration, and caching scenarios, which provides high confidence in the provider's correctness. I've included a couple of minor suggestions to improve configuration file clarity and documentation. Overall, this is an excellent contribution.

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.

1 participant