0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-19 21:03:20 +01:00
gitea/modules
Michael Owoc 713364fc71
Support optional/configurable IAMEndpoint for Minio Client (#32581) (#32581)
Targeting issue #32271

This modification allows native Kubernetes + AWS (EKS) authentication
with the Minio client, to Amazon S3 using the IRSA role assigned to a
Service account by replacing the hard coded reference to the
`DefaultIAMRoleEndpoint` with an optional configurable endpoint.

Internally, Minio's `credentials.IAM` provider implements a discovery
flow for IAM Endpoints if it is not set.

For backwards compatibility: 
- We have added a configuration mechanism for an `IamEndpoint` to retain
the unit test safety in `minio_test.go`.
- We believe existing clients will continue to function the same without
needing to provide a new config property since the internals of Minio
client also often resolve to the `http://169.254.169.254` default
endpoint that was being hard coded before

To test, we were able to build a docker image from source and, observe
it choosing the expected IAM endpoint, and see files uploaded via the
client.
2024-11-22 20:12:06 +00:00
..
actions
activitypub
analyze
assetfs
auth
avatar
badge
base
cache
charset
container
csv Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
dump
emoji
eventsource
generate
git Fix submodule parsing (#32571) 2024-11-20 19:26:12 +00:00
gitgraph
gitrepo
globallock
graceful
hcaptcha
highlight
hostmatcher
htmlutil Refactor markup render system (#32533) 2024-11-18 13:25:42 +08:00
httpcache
httplib Add avif image file support (#32508) 2024-11-15 00:55:50 +00:00
indexer Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
issue/template
json
label
lfs
lfstransfer Refactor LFS SSH and internal routers (#32473) 2024-11-12 02:38:22 +00:00
log Improve testing and try to fix MySQL hanging (#32515) 2024-11-15 23:45:07 +08:00
markup Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
mcaptcha
metrics
migration
nosql
optional
options
packages cargo registry - respect renamed dependencies (#32430) 2024-11-12 02:57:30 +00:00
paginator
pprof
private Refactor LFS SSH and internal routers (#32473) 2024-11-12 02:38:22 +00:00
process
proxy
proxyprotocol
public
queue Improve testing and try to fix MySQL hanging (#32515) 2024-11-15 23:45:07 +08:00
recaptcha
references
regexplru
repository disable gravatar in test (#32529) 2024-11-21 04:30:48 +00:00
secret
session
setting Support optional/configurable IAMEndpoint for Minio Client (#32581) (#32581) 2024-11-22 20:12:06 +00:00
sitemap
ssh
storage Support optional/configurable IAMEndpoint for Minio Client (#32581) (#32581) 2024-11-22 20:12:06 +00:00
structs Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
svg Refactor markup render system (#32533) 2024-11-18 13:25:42 +08:00
sync
system
templates Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
test
testlogger Improve testing and try to fix MySQL hanging (#32515) 2024-11-15 23:45:07 +08:00
timeutil
translation
turnstile
typesniffer Add avif image file support (#32508) 2024-11-15 00:55:50 +00:00
updatechecker
uri
user
util
validation
web Refactor LFS SSH and internal routers (#32473) 2024-11-12 02:38:22 +00:00
webhook
zstd