-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/minio file upload #125
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
83245b2
Update minio chart with new image and better configs
sandstromviktor ab0fb8a
revert to minio image
sandstromviktor 4ea77b5
New minio image, with postStartHook that creates user, bucket add add…
sandstromviktor 8124307
update
sandstromviktor 682d800
update charts with ftp service using nodeport
sandstromviktor b178c2a
mounting TLS cert
sandstromviktor cef6de4
update
sandstromviktor 9dab4f2
Working minio chart with logic for activating s3 and console
sandstromviktor 650f563
updated task to automatically delete minio apps
sandstromviktor 4e63c6a
removed manage files if not superuser
sandstromviktor d37b501
Fixed ingress proxy body size and minio permission error
sandstromviktor c510817
added password reveal function
sandstromviktor a2f8c5b
limit proxy-body-size to 10 gigs
sandstromviktor b8ceebf
added admin command to add user to db - draft
sandstromviktor 1e491ec
added copied info
sandstromviktor 6f0a162
update
sandstromviktor a0d1f8b
Added admin commands to create stuff for locust tests
sandstromviktor c301748
Pre commit fix
sandstromviktor 03b69e6
quotify proxy-body-size
sandstromviktor a6b7272
fixed ingress indentation error and command enumeration
sandstromviktor 2146658
sorting users in admin command + adding link to documentation
sandstromviktor ba82f7a
added new app called minio-admin that should cover other use cases
sandstromviktor 04b2e2e
show password in settings
sandstromviktor eff8cbc
Merge branch 'develop' into feature/minio-file-upload
sandstromviktor 4269e1a
fix pre-commit
sandstromviktor cbac487
Up pillow version
sandstromviktor e05beae
pre commit run
sandstromviktor 2527ca1
Fix view for empty case
sandstromviktor 4fae835
allowing minio to use flavor and set to public
sandstromviktor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
nginx.ingress.kubernetes.io/proxy-body-size: "10000M" | ||
name: {{ .Release.Name }}-minio | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
rules: | ||
- host: {{ .Release.Name }}.{{ .Values.global.domain }} | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
service: | ||
name: {{ .Values.service.name }} | ||
port: | ||
name: console | ||
pathType: ImplementationSpecific | ||
- host: api-{{ .Release.Name }}.{{ .Values.global.domain }} | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
service: | ||
name: {{ .Values.service.name }} | ||
port: | ||
name: api | ||
pathType: ImplementationSpecific | ||
|
||
tls: | ||
- secretName: {{ .Values.ingress.secretName }} | ||
hosts: | ||
- {{ .Values.global.domain }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from django.contrib.auth import get_user_model | ||
from django.core.management.base import BaseCommand, CommandError | ||
from django.db.utils import IntegrityError | ||
|
||
User = get_user_model() | ||
|
||
|
||
class Command(BaseCommand): | ||
help = "Adds user to database" | ||
|
||
def add_arguments(self, parser): | ||
parser.add_argument("num_users", type=int) | ||
|
||
def handle(self, *args, **options): | ||
for i in range(1, options["num_users"] + 1): | ||
username = f"locust_test_user_{i}" | ||
email = f"locust_test_user_{i}@test.uu.net" | ||
password = "password123" | ||
try: | ||
user = User.objects.create_user(username, email, password) | ||
user.is_active = True | ||
user.save() | ||
except IntegrityError: | ||
self.stdout.write(self.style.WARNING("User with the given username or email already exists.")) | ||
|
||
self.stdout.write(self.style.SUCCESS(f"Successfully created {i} users")) | ||
Comment on lines
+23
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why aren't you using django's password generator? I believe, that this way is most probably insecure and exploitable