url link 저장 및 변경 관리 계정에서 할수 있도록 추가
All checks were successful
Build And Test / build-and-push (push) Successful in 4m8s
All checks were successful
Build And Test / build-and-push (push) Successful in 4m8s
This commit is contained in:
@ -5,15 +5,29 @@ from cryptography.fernet import Fernet
|
||||
|
||||
|
||||
class CustomUser(AbstractUser):
|
||||
"""사용자 모델 - 기존 필드 + SSH Private Key 관리 필드"""
|
||||
|
||||
# 기존 필드 유지
|
||||
# 사용자 모델 - 기존 필드 + SSH Private Key 관리 필드
|
||||
grade = models.CharField(max_length=50, blank=True, null=True)
|
||||
nhnc_id = models.CharField(max_length=100, blank=True, null=True)
|
||||
nhnc_api_tenant_id = models.CharField(max_length=100, blank=True, null=True)
|
||||
|
||||
"""사용자 모델 - SSH Private Key 관리 필드"""
|
||||
# 사용자 모델 - SSH Private Key 관리 필드
|
||||
encrypted_private_key = models.BinaryField(blank=True, null=True) # 암호화된 SSH 키
|
||||
|
||||
# Custom URL 필드 - 2025-01-25
|
||||
# 여기 추가하면 components/_nav.html 수정
|
||||
# custom_auth/forms.py 수정, custom_auth/views.py 수정
|
||||
url_gitea = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_harbor = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_argocd = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_web_ide = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_rancher = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_grafana = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_prometheus = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_opensearch = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_kiali = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_nexus = models.URLField(max_length=200, blank=True, null=True)
|
||||
url_mattermost = models.URLField(max_length=200, blank=True, null=True)
|
||||
|
||||
|
||||
def encrypt_private_key(self, private_key: str) -> bytes:
|
||||
"""SSH Private Key 암호화"""
|
||||
|
Reference in New Issue
Block a user