Blueprint Issue: Upgrade AWS SDK for C++ to Support `credential_process`
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- aws, cmake, cpp
- Lĩnh vực
- build-system, cloud, documentation, security
Hướng nghiên cứu
Bắt đầu với submodule AWS SDK tại libraries/cmake/source/aws-sdk-cpp/src/aws-sdk-cpp và xem xét libraries/cmake/source/aws-sdk-cpp/CMakeLists.txt về phiên bản được đề xuất cũng như các tác động đến quá trình build. Kiểm tra osquery/utils/aws/aws_util.cpp và các bộ kiểm thử hiện có, sau đó cập nhật docs/wiki/deployment/aws-logging.md; công việc được xem là hoàn tất khi dependency build được trên tất cả các nền tảng được hỗ trợ, các phương thức thông tin xác thực hiện có vẫn hoạt động và credential_process đã được xác thực.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Blueprint Issue: Upgrade AWS SDK for C++ to Support credential_process
Title
Upgrade AWS SDK for C++ to Support credential_process for IAM Roles Anywhere and Custom Credential Helpers
Problem Statement
OSQuery currently uses AWS SDK for C++ version 1.7.230 (updated in November 2020), which does not support the credential_process capability. This feature is essential for modern AWS authentication patterns, particularly:
- IAM Roles Anywhere: AWS's solution for workload identity outside of AWS infrastructure
- Custom credential helpers: Enterprise-specific credential management systems
- Short-lived credentials: Enhanced security through external credential rotation
The credential_process feature allows AWS SDKs to execute an external command to fetch credentials dynamically, as specified in the AWS config file (~/.aws/config). This is documented in the AWS CLI configuration documentation.
Current Behavior
When a user configures credential_process in their AWS profile:
[profile osquery]
credential_process = /usr/local/bin/aws-credential-helper
region = us-east-1
And runs osquery with --aws_profile_name=osquery --aws_kinesis_stream=my-stream, the credential process is silently ignored. OSQuery's ProfileConfigFileAWSCredentialsProvider (from SDK 1.7.230) only reads static credentials from the credentials file and does not recognize or execute the credential_process directive.
Impact
This limitation affects all AWS service integrations in osquery:
- Kinesis Streams (
aws_kinesislogger) - Kinesis Firehose (
aws_firehoselogger) - S3 (file carving, log forwarding)
- STS (assume role operations)
- EC2 (instance metadata tables)
Organizations using IAM Roles Anywhere or custom credential systems cannot use osquery's native AWS integrations without workarounds like hardcoded credentials or wrapper scripts.
Proposed Solution
Upgrade the AWS SDK for C++ dependency from 1.7.230 to a version ≥ 1.9.0, which includes support for credential_process.
Recommended Target Version
AWS SDK for C++ 1.11.x (latest stable: 1.11.680 as of submission)
Rationale for 1.11.x:
- Mature and actively maintained branch
- Full
credential_processsupport (added in 1.9.0) - Extensive bug fixes and security updates since 1.7.230
- Better long-term maintenance story
- Backward compatible with existing credential provider chains
Alternative: Minimum viable version would be 1.9.379 (last patch of 1.9.x series) if concerns about the larger version jump exist.
Implementation Changes Required
-
Update Git Submodule
- File:
.gitmodules - Update submodule reference for
libraries/cmake/source/aws-sdk-cpp/src/aws-sdk-cpp
- File:
-
Review CMake Build Configuration
- File:
libraries/cmake/source/aws-sdk-cpp/CMakeLists.txt - Verify source file lists are current with new SDK version
- Check for new dependencies or build flags
- File:
-
No Changes to Credential Chain Expected
- File:
osquery/utils/aws/aws_util.cpp - The existing
ProfileConfigFileAWSCredentialsProviderin SDK ≥1.9.0 automatically supportscredential_process - The credential provider chain order remains unchanged
- No osquery-specific code changes required - this is purely a dependency upgrade
- File:
-
Update Documentation
- File:
docs/wiki/deployment/aws-logging.md - Add example of
credential_processconfiguration - Document IAM Roles Anywhere use case
- File:
Testing Requirements
-
All existing credential methods must continue to work:
- ✅ Command-line flags (
--aws_access_key_id,--aws_secret_access_key) - ✅ Named AWS profiles with static credentials
- ✅ Environment variables (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY) - ✅ EC2 instance profile metadata
- ✅ STS assume role
- ✅ NEW: AWS profiles with
credential_process
- ✅ Command-line flags (
-
Test across all supported platforms:
- Linux x86_64, Linux ARM64
- macOS x86_64, macOS ARM64
- Windows x86_64
-
Specific AWS service validation:
- Kinesis logger plugin
- Firehose logger plugin
- S3 operations
- EC2 metadata tables
Backward Compatibility
The AWS SDK for C++ maintains backward compatibility between minor versions. Upgrading from 1.7.x to 1.9.x or 1.11.x should not break existing functionality. The credential provider chain behavior is additive - existing methods continue to work, with credential_process support added when configured.
Security Considerations
✅ Enhances security by enabling:
- Short-lived credentials via external rotation
- Elimination of long-lived static credentials
- Integration with enterprise identity systems
- Support for AWS IAM Roles Anywhere (temporary credentials)
Use Cases
Use Case 1: IAM Roles Anywhere
Organizations with workloads outside AWS can use IAM Roles Anywhere to obtain temporary credentials:
[profile osquery]
credential_process = aws_signing_helper credential-process --certificate /path/to/cert.pem --private-key /path/to/key.pem --trust-anchor-arn arn:aws:rolesanywhere:... --profile-arn arn:aws:rolesanywhere:... --role-arn arn:aws:iam::...
region = us-east-1
Use Case 2: Enterprise Credential Management
Companies with custom credential vending systems can integrate seamlessly:
[profile osquery]
credential_process = /usr/local/bin/company-credential-helper --environment prod --service osquery
region = us-west-2
Use Case 3: Kubernetes Workload Identity
Workloads in Kubernetes can fetch credentials dynamically without storing secrets:
[profile osquery]
credential_process = /opt/k8s/aws-credential-provider
region = eu-west-1
Migration Path
For users currently working around this limitation:
Before (workaround):
eval $(credential-helper) # Sets AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
osqueryd --aws_kinesis_stream=...
After (native):
# ~/.aws/config
[profile osquery]
credential_process = /usr/local/bin/credential-helper
region = us-east-1
osqueryd --aws_profile_name=osquery --aws_kinesis_stream=...
Implementation Timeline
-
Phase 1: Blueprint Review (this issue)
- Community discussion
- Core team approval
- Finalize target SDK version
-
Phase 2: Development
- Update submodule reference
- Verify CMake builds across platforms
- Run existing test suites
-
Phase 3: Testing
- CI validation on all platforms
- Community beta testing
- Documentation updates
-
Phase 4: Release
- Merge to master
- Include in next minor release
- Update CHANGELOG
Open Questions
- Preferred SDK version: 1.9.x (conservative) vs 1.11.x (recommended)?
- Release targeting: Next minor release or patch release?
- Beta testing: Would the team want beta testers with IAM Roles Anywhere setups?
- Build time impact: Should we measure build time differences with newer SDK?
Additional Context
- AWS SDK C++
credential_processwas added in version 1.9.0 (released late 2021) - AWS SDK C++ repository: https://github.com/aws/aws-sdk-cpp
- Current osquery SDK update commit:
e2b3598ba(Nov 2020) - Submodule location:
libraries/cmake/source/aws-sdk-cpp/src/aws-sdk-cpp
References
- AWS
credential_processdocumentation: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html - IAM Roles Anywhere: https://docs.aws.amazon.com/rolesanywhere/latest/userguide/introduction.html
- AWS SDK C++ changelog: https://github.com/aws/aws-sdk-cpp/blob/main/CHANGELOG.md
- osquery AWS utilities:
osquery/utils/aws/aws_util.cpp
I am willing to:
- Contribute the implementation
- Test beta builds with IAM Roles Anywhere
- Update documentation
- Provide feedback during review
- Ngôn ngữ chính
- C++
- Star
- 23.8k
- Fork
- 2.7k
- Merge trung bình
- 6 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 69
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của osquery/osquery
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 3 ngày
-
usb_devices: usb_address and usb_port are wrong for bus/device numbers 8–99 on Linux (zero-padded udev values parsed as octal)Có thể đã có người làm @mjatin2007 đã nhận 6 ngày trước. Đang mởLinux virtual tables
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Update the expired Slack invite link in READMECó thể làm lại được @ayushkrsingh946 đã nhận 39 ngày trước và không có pull request nào đang mở. Đang mởmaintainer task
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
osquery/osquery#9215 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
fix(docs): debugging guide incorrectly says invalid configuration blocks daemon startupCó thể đã có người làm @nightcityblade đã nhận 54 ngày trước. Đang mởconfiguration documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
osquery/osquery#9143 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
scheduled_tasks.hidden returns the task's Enabled state instead of Hidden (Windows)Có thể đã có người làm @a-bonfim-tech đã nhận 67 ngày trước. Đang mởbug triage virtual tables Windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của osquery/osquery
Issue tương tự
-
Make the HTTP server's keep-alive and headers timeouts configurableCó thể đã có người làm @mattgodbolt đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Nixtla/statsforecast#1371 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfCó thể đã có người làm @fedonman đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
SparseLinearAlgebra/spla#316 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày