25db3f81b0
- Add DatabaseCredentialStorage with async CRUD operations - Create Credential SQLAlchemy model with encrypted values - Update GitCredential and AccessTokenCredential to support async - Fix SSH key encryption to use Fernet instead of base64 placeholder
17 lines
402 B
Python
17 lines
402 B
Python
from typing import TYPE_CHECKING
|
|
|
|
from sqlalchemy import String, Text
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.models.base import Base, TimestampMixin, UUIDMixin
|
|
|
|
if TYPE_CHECKING:
|
|
pass
|
|
|
|
|
|
class Credential(Base, UUIDMixin, TimestampMixin):
|
|
__tablename__ = "credential"
|
|
|
|
kind: Mapped[str] = mapped_column(String(50))
|
|
encrypted_payload: Mapped[str] = mapped_column(Text)
|