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

[DO NOT MERGE] Test aws init refactor #11570

Closed

Conversation

windmgc
Copy link
Member

@windmgc windmgc commented Sep 14, 2023

Summary

Need to debug a weird test failure

Checklist

  • The Pull Request has tests
  • A changelog file has been added to CHANGELOG/unreleased/kong or adding skip-changelog label on PR if unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Full changelog

  • [Implement ...]

Issue reference

Fix #[issue number]

windmgc and others added 14 commits September 15, 2023 14:41
…ntial provider (#11551)

This PR contains a fix to let aws-lambda plugin-level proxy configuration take effect when fetching IAM credentials in an EKS environment. The EKS IRSA credential provider(aka TokenFileWebIdentityCredentials) will fire a request to AWS STS service when fetching the credential, and the request itself may need to go through the plugin-level proxy configuration. Here we check if a proxy is configured and whether the plugin is running inside the EKS environment with IRSA related configuration provided, then we replace the provider with a new TokenFileWebIdentityCredentials that supports proxy.

FTI-5242
A worker singleton is a worker-global variable that is initialized only once.  The
get_worker_singleton function is used to access a worker singleton by name.  It
makes sure that when the variable is not yet initialized and multiple coroutines
try to access it, only one calls the initialization functions and other coroutines
wait.  If get_worker_singleton is called in the init_worker phase, initialization
is performed by the first call without locking as there are no other coroutines yet.
The init() function added in ea85db8 was perceived to have
too little overall value.  It is thus removed.
@windmgc windmgc changed the base branch from master to test-aws-init-refactor-fake-master September 15, 2023 06:52
@windmgc windmgc closed this Sep 21, 2023
@windmgc windmgc deleted the test-aws-init-refactor branch September 21, 2023 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Not part of the core functionality of kong, but still needed core/db plugins/aws-lambda schema-change-noteworthy size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants