mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-21 12:37:35 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
13a4de046d | ||
|
d030ce00cc | ||
|
a2ea852bd4 |
10
CHANGELOG
10
CHANGELOG
@@ -1130,4 +1130,12 @@ Improve replication performance. See (#12080, #12054, #12009) for more details.
|
|||||||
* Update minio to 2022-04-29T01-27-09Z
|
* Update minio to 2022-04-29T01-27-09Z
|
||||||
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-04-29T01-27-09Z)
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-04-29T01-27-09Z)
|
||||||
|
|
||||||
|
[2.4.13]
|
||||||
|
* Update minio to 2022-05-03T20-36-08Z
|
||||||
|
* [Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2022-05-03T20-36-08Z)
|
||||||
|
* fix: panic in browser redirect handler for unexpected r.Host by @harshavardhana in #14844
|
||||||
|
* fix: reject invalid r.Host headers by @harshavardhana in #14846
|
||||||
|
* fix: disallow newer policies, users & groups with space characters by @harshavardhana in #14845
|
||||||
|
* Check error status codes by @klauspost in #14850
|
||||||
|
* Log Range Header by @klauspost in #14851
|
||||||
|
* fix: remove embedded-policy as requested by the user by @harshavardhana in #14847
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"changelog": "file://CHANGELOG",
|
"changelog": "file://CHANGELOG",
|
||||||
"tagline": "Distributed object storage",
|
"tagline": "Distributed object storage",
|
||||||
"version": "2.4.12",
|
"version": "2.4.13",
|
||||||
"upstreamVersion": "2022-04-29T01-27-09Z",
|
"upstreamVersion": "2022-05-03T20-36-08Z",
|
||||||
"healthCheckPath": "/minio/login",
|
"healthCheckPath": "/minio/login",
|
||||||
"httpPort": 8000,
|
"httpPort": 8000,
|
||||||
"httpPorts": {
|
"httpPorts": {
|
||||||
|
@@ -3,7 +3,7 @@ FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd1
|
|||||||
RUN mkdir -p /app/code
|
RUN mkdir -p /app/code
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
|
|
||||||
ARG VERSION=RELEASE.2022-04-29T01-27-09Z
|
ARG VERSION=RELEASE.2022-05-03T20-36-08Z
|
||||||
ARG MC_VERSION=RELEASE.2022-04-26T18-00-22Z
|
ARG MC_VERSION=RELEASE.2022-04-26T18-00-22Z
|
||||||
|
|
||||||
# sometimes here https://dl.min.io/server/minio/release/linux-amd64/archive/
|
# sometimes here https://dl.min.io/server/minio/release/linux-amd64/archive/
|
||||||
@@ -11,6 +11,6 @@ RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio.${VERSION} -O
|
|||||||
# https://dl.min.io/client/mc/release/linux-amd64/
|
# https://dl.min.io/client/mc/release/linux-amd64/
|
||||||
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc.${MC_VERSION} -O /app/code/mc && chmod +x /app/code/mc
|
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc.${MC_VERSION} -O /app/code/mc && chmod +x /app/code/mc
|
||||||
|
|
||||||
COPY env.sh minio-credentials start.sh /app/code/
|
COPY env.sh start.sh /app/code/
|
||||||
|
|
||||||
CMD [ "/app/code/start.sh" ]
|
CMD [ "/app/code/start.sh" ]
|
||||||
|
@@ -1,41 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
const fs = require('fs');
|
|
||||||
|
|
||||||
const MINIO_CONFIG = '/app/data/data/.minio.sys/config/config.json';
|
|
||||||
|
|
||||||
function usage() {
|
|
||||||
console.log('Usage:\n');
|
|
||||||
console.log('\tminio-credentials get');
|
|
||||||
console.log('\tminio-credentials set <access key> <secret key>');
|
|
||||||
console.log();
|
|
||||||
}
|
|
||||||
|
|
||||||
let config = JSON.parse(fs.readFileSync(MINIO_CONFIG, 'utf8'));
|
|
||||||
let adminCredentials = config['credentials']['_'];
|
|
||||||
let accessKey = adminCredentials.filter(kv => kv.key === 'access_key')[0];
|
|
||||||
let secretKey = adminCredentials.filter(kv => kv.key === 'secret_key')[0];
|
|
||||||
|
|
||||||
if (process.argv[2] === 'get') {
|
|
||||||
console.log('Access Key:', accessKey.value);
|
|
||||||
console.log('Secret Key:', secretKey.value);
|
|
||||||
} else if (process.argv[2] === 'set') {
|
|
||||||
if (process.argv.length !== 5) return usage();
|
|
||||||
|
|
||||||
// https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateAccessKey.html
|
|
||||||
if (process.argv[4].length < 5) return console.log('secret key must be atleast 5 characters');
|
|
||||||
if (!/^[\w+=,.@-]+$/.test(process.argv[3])) return console.log('access key has invalid characters');
|
|
||||||
|
|
||||||
accessKey.value = process.argv[3];
|
|
||||||
if (process.argv[4].length < 8) return console.log('secret key must be atleast 8 characters');
|
|
||||||
|
|
||||||
secretKey.value = process.argv[4];
|
|
||||||
|
|
||||||
fs.writeFileSync(MINIO_CONFIG, JSON.stringify(config), 'utf8');
|
|
||||||
console.log('Credentials updated. Restart minio app for new credentials to take effect.\n');
|
|
||||||
} else {
|
|
||||||
usage();
|
|
||||||
}
|
|
||||||
|
|
Reference in New Issue
Block a user