Added DeploymentCredential to set of supported credentials
diff --git a/planetstack/core/models/credential.py b/planetstack/core/models/credential.py
index c7a04da..52670ea 100644
--- a/planetstack/core/models/credential.py
+++ b/planetstack/core/models/credential.py
@@ -36,3 +36,14 @@
def __unicode__(self):
return self.name
+
+class DeploymentCredential(PlCoreBase):
+ deployment = models.ForeignKey(Deployment, related_name='credentials', help_text="The User this credential is associated with")
+
+ name = models.SlugField(help_text="The credential type, e.g. ec2", max_length=128)
+ key_id = models.CharField(help_text="The backend id of this credential", max_length=1024)
+ enc_value = EncryptedCharField(help_text="The key value of this credential", max_length=1024)
+
+
+ def __unicode__(self):
+ return self.name