renovate
renovate copied to clipboard
Add ability to specify AWS credentials in hostRules block for private Maven repos hosted directly on S3
What would you like Renovate to be able to do?
This request is an enhancement for the https://github.com/renovatebot/renovate/issues/13825
AFAIU, it is only possible to pass AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
as environment variables if I want to use private maven repo hosted on S3, which is not possible when running Renovate as App on GitHub(https://github.com/apps/renovate) that hosted by Mend. So it would be good to have the ability to pass AWS credentials in the hostRules
block.
If you have any ideas on how this should be implemented, please tell us here.
It can be implemented like username/password fields for the Artifactory:
{
"hostRules": [
{
"matchHost": "s3://my-private-maven-repo/snapshots",
"hostType": "maven",
"encrypted": {
"accessKey": "...",
"secretKey": "..."
}
}
]
}
For example, something similar is implemented in Gradle:
repositories {
maven {
url = URI("s3://my-private-maven-repo/snapshots")
credentials(AwsCredentials::class.java) {
accessKey = "..."
secretKey = "..."
}
}
}
Is this a feature you are interested in implementing yourself?
No