2022-01-13 20:02:24 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package credentials;
|
|
|
|
|
2022-02-16 01:38:19 +00:00
|
|
|
option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/credentialspb";
|
2022-01-13 20:02:24 +00:00
|
|
|
|
2024-02-02 17:49:46 +00:00
|
|
|
import "validate/validate.proto";
|
|
|
|
|
2022-01-13 20:02:24 +00:00
|
|
|
message Unauthenticated {}
|
|
|
|
|
2022-09-28 18:40:01 +00:00
|
|
|
message SSHAuth {}
|
|
|
|
|
2022-01-13 20:02:24 +00:00
|
|
|
message CloudEnvironment {}
|
|
|
|
|
|
|
|
message BasicAuth {
|
|
|
|
string username = 1;
|
|
|
|
string password = 2;
|
|
|
|
}
|
|
|
|
|
2022-02-17 01:29:30 +00:00
|
|
|
message Header {
|
|
|
|
string key = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
2022-04-04 17:48:43 +00:00
|
|
|
message ClientCredentials {
|
2022-01-13 20:02:24 +00:00
|
|
|
string tenant_id = 1;
|
|
|
|
string client_id =2;
|
|
|
|
string client_secret=3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ClientCertificate {
|
|
|
|
string tenant_id = 1;
|
|
|
|
string client_id =2;
|
|
|
|
string certificate_path =3;
|
|
|
|
string certificate_password =4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Oauth2 {
|
|
|
|
string refresh_token = 1;
|
|
|
|
string client_id = 2;
|
|
|
|
string client_secret = 3;
|
2023-03-27 17:29:21 +00:00
|
|
|
string access_token = 4;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message KeySecret {
|
|
|
|
string key = 1;
|
|
|
|
string secret = 2;
|
|
|
|
}
|
|
|
|
|
2023-04-03 21:56:43 +00:00
|
|
|
message AWSSessionTokenSecret {
|
2024-02-02 17:49:46 +00:00
|
|
|
string key = 1 [(validate.rules).string.min_len = 1];
|
|
|
|
string secret = 2 [(validate.rules).string.min_len = 1];
|
|
|
|
string session_token = 3 [(validate.rules).string.min_len = 1];
|
2023-04-03 21:56:43 +00:00
|
|
|
}
|
|
|
|
|
2022-01-13 20:02:24 +00:00
|
|
|
message AWS {
|
2024-02-02 17:49:46 +00:00
|
|
|
string key = 1 [(validate.rules).string.min_len = 1];
|
|
|
|
string secret = 2 [(validate.rules).string.min_len = 1];
|
2022-01-13 20:02:24 +00:00
|
|
|
string region = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SES {
|
|
|
|
AWS creds = 1;
|
|
|
|
string sender = 2;
|
|
|
|
repeated string recipients = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GitHubApp {
|
|
|
|
string private_key = 1;
|
|
|
|
string installation_id = 2;
|
|
|
|
string app_id = 3;
|
|
|
|
}
|
2022-07-18 18:51:27 +00:00
|
|
|
|
|
|
|
message SlackTokens {
|
|
|
|
string app_token = 1;
|
|
|
|
string bot_token = 2;
|
2022-08-16 20:12:46 +00:00
|
|
|
string client_token = 3;
|
2022-07-18 18:51:27 +00:00
|
|
|
}
|