2022-01-13 20:02:24 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package source_metadata;
|
|
|
|
|
2022-02-16 01:38:19 +00:00
|
|
|
option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb";
|
2022-01-13 20:02:24 +00:00
|
|
|
|
|
|
|
message Azure {
|
|
|
|
string container = 1;
|
|
|
|
string file = 2;
|
|
|
|
string uploaded = 3;
|
|
|
|
string link = 4;
|
|
|
|
string email = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Bitbucket {
|
|
|
|
string file = 1;
|
|
|
|
string repository = 2;
|
|
|
|
string workspace = 3;
|
|
|
|
string snippet_id = 4;
|
|
|
|
string title = 5;
|
|
|
|
string commit = 6;
|
|
|
|
string email = 7;
|
|
|
|
string link = 8;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 9;
|
2022-03-22 16:27:15 +00:00
|
|
|
int64 line = 10;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Buildkite {
|
|
|
|
string org = 1;
|
|
|
|
string pipeline = 2;
|
|
|
|
string link = 3;
|
|
|
|
string email = 4;
|
|
|
|
int64 build_number = 5;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 6;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message CircleCI {
|
|
|
|
string vcs_type = 1;
|
|
|
|
string username = 2;
|
|
|
|
string repository = 3;
|
|
|
|
int64 build_number = 4;
|
|
|
|
string build_step = 5;
|
|
|
|
string link = 6;
|
|
|
|
string email = 7;
|
|
|
|
}
|
|
|
|
|
2023-10-30 14:28:25 +00:00
|
|
|
message TravisCI {
|
|
|
|
string username = 2;
|
|
|
|
string repository = 3;
|
|
|
|
string build_number = 4;
|
|
|
|
string job_number = 5;
|
|
|
|
string link = 6;
|
|
|
|
bool public = 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-01-13 20:02:24 +00:00
|
|
|
message Confluence {
|
|
|
|
string page = 1;
|
|
|
|
string space = 2;
|
|
|
|
string version = 3;
|
|
|
|
string link = 4;
|
|
|
|
string email = 5;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 6;
|
2022-09-16 20:58:14 +00:00
|
|
|
string location = 7;
|
2023-01-27 01:34:01 +00:00
|
|
|
string file = 8;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
2023-06-22 15:02:25 +00:00
|
|
|
message Docker {
|
2022-01-13 20:02:24 +00:00
|
|
|
string file = 1;
|
|
|
|
string image = 2;
|
|
|
|
string layer = 3;
|
|
|
|
string tag = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ECR {
|
|
|
|
string file = 1;
|
|
|
|
string layer = 2;
|
|
|
|
string image = 3;
|
|
|
|
string registry = 4;
|
|
|
|
string region = 5;
|
|
|
|
string link = 6;
|
|
|
|
string email = 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Filesystem {
|
|
|
|
string file = 1;
|
|
|
|
string link = 2;
|
|
|
|
string email = 3;
|
2023-05-09 15:02:34 +00:00
|
|
|
int64 line = 4;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Git {
|
|
|
|
string commit = 1;
|
|
|
|
string file = 2;
|
|
|
|
string email = 3;
|
|
|
|
string repository = 4;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 5;
|
2022-03-22 16:27:15 +00:00
|
|
|
int64 line = 6;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Github {
|
|
|
|
string link = 1;
|
|
|
|
string username = 2;
|
|
|
|
string repository = 3;
|
|
|
|
string commit = 4;
|
|
|
|
string email = 5;
|
|
|
|
string file = 6;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 7;
|
2022-03-22 16:27:15 +00:00
|
|
|
int64 line = 8;
|
2022-09-26 21:55:46 +00:00
|
|
|
Visibility visibility = 9;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Gitlab {
|
|
|
|
string commit = 1;
|
|
|
|
string file = 2;
|
|
|
|
string link = 3;
|
|
|
|
string email = 4;
|
|
|
|
string repository = 5;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 6;
|
2022-03-22 16:27:15 +00:00
|
|
|
int64 line = 7;
|
2024-02-15 18:23:41 +00:00
|
|
|
int64 project_id = 8;
|
|
|
|
string project_name = 9;
|
|
|
|
string project_owner = 10;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GCS {
|
|
|
|
string bucket = 1;
|
2023-03-08 01:32:04 +00:00
|
|
|
string filename = 2;
|
2022-01-13 20:02:24 +00:00
|
|
|
string link = 3;
|
|
|
|
string email = 4;
|
2023-03-08 01:32:04 +00:00
|
|
|
string created_at = 5;
|
|
|
|
string updated_at = 6;
|
|
|
|
repeated string acls = 7;
|
|
|
|
string content_type = 8;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Jira {
|
|
|
|
string issue = 1;
|
|
|
|
string author = 2;
|
|
|
|
string link = 3;
|
|
|
|
string location = 4;
|
|
|
|
string email = 5;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 6;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message NPM {
|
|
|
|
string file = 1;
|
|
|
|
string package = 2;
|
|
|
|
string release = 3;
|
|
|
|
string link = 4;
|
|
|
|
string email = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PyPi {
|
|
|
|
string file = 1;
|
|
|
|
string package = 2;
|
|
|
|
string release = 3;
|
|
|
|
string link = 4;
|
|
|
|
string email = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message S3 {
|
|
|
|
string bucket = 1;
|
|
|
|
string file = 2;
|
|
|
|
string link = 3;
|
|
|
|
string email = 5;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 6;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
2022-09-15 12:01:45 +00:00
|
|
|
enum Visibility {
|
|
|
|
public = 0;
|
|
|
|
private = 1;
|
|
|
|
shared = 2;
|
2022-11-04 18:28:20 +00:00
|
|
|
unknown = 3;
|
2022-09-15 12:01:45 +00:00
|
|
|
}
|
|
|
|
|
2022-01-13 20:02:24 +00:00
|
|
|
message Slack {
|
|
|
|
string channel_id = 1;
|
|
|
|
string channel_name = 2;
|
|
|
|
string timestamp = 3;
|
|
|
|
string user_id = 4;
|
|
|
|
string link = 5;
|
|
|
|
string file = 6;
|
|
|
|
string email = 7;
|
2022-09-15 12:01:45 +00:00
|
|
|
Visibility visibility = 8;
|
2022-09-16 20:58:14 +00:00
|
|
|
string location = 9;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Gerrit {
|
|
|
|
string commit = 1;
|
|
|
|
string file = 2;
|
|
|
|
string email = 3;
|
|
|
|
string project = 4; // projects are what Gerrit calls repositories
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 5;
|
2022-03-22 16:27:15 +00:00
|
|
|
int64 line = 6;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Test {
|
|
|
|
string file = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Jenkins {
|
|
|
|
string project_name = 1;
|
|
|
|
int64 build_number = 2;
|
|
|
|
string link = 3;
|
2022-03-03 21:21:33 +00:00
|
|
|
string timestamp = 4;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
|
2022-04-04 17:48:43 +00:00
|
|
|
message Teams {
|
|
|
|
string channel_id = 1;
|
|
|
|
string channel_name = 2;
|
|
|
|
string timestamp = 3;
|
|
|
|
string user_id = 4;
|
|
|
|
string link = 5;
|
|
|
|
string file = 6;
|
|
|
|
string email = 7;
|
2023-01-23 16:12:05 +00:00
|
|
|
string location = 8;
|
2023-04-14 16:07:23 +00:00
|
|
|
string team_name = 9;
|
2023-04-19 18:47:25 +00:00
|
|
|
string team_id = 10;
|
2022-04-04 17:48:43 +00:00
|
|
|
}
|
|
|
|
|
2022-04-05 23:38:48 +00:00
|
|
|
// https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-FileInfo
|
|
|
|
message Artifactory {
|
|
|
|
string repo = 1;
|
|
|
|
string path = 2;
|
|
|
|
string link = 3;
|
|
|
|
string timestamp = 4;
|
|
|
|
string username = 5;
|
|
|
|
string email = 6;
|
|
|
|
}
|
|
|
|
|
2022-05-04 22:08:11 +00:00
|
|
|
message Syslog {
|
|
|
|
string hostname = 1;
|
|
|
|
string appname = 2;
|
|
|
|
string procid = 3;
|
|
|
|
string timestamp = 4;
|
|
|
|
string client = 5;
|
|
|
|
string facility = 6;
|
|
|
|
}
|
|
|
|
|
2023-12-03 21:16:16 +00:00
|
|
|
message Forager {
|
2022-06-03 21:46:31 +00:00
|
|
|
oneof metadata {
|
|
|
|
Github github = 1;
|
2023-12-03 21:16:16 +00:00
|
|
|
NPM npm = 2;
|
|
|
|
PyPi pypi = 3;
|
2022-06-03 21:46:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-10 17:30:47 +00:00
|
|
|
message SharePoint {
|
|
|
|
string link = 1;
|
|
|
|
string timestamp = 2;
|
|
|
|
string author = 3;
|
|
|
|
string title = 4;
|
|
|
|
int64 views = 5;
|
|
|
|
string docid = 6;
|
|
|
|
string email = 7;
|
|
|
|
}
|
|
|
|
|
2023-04-19 14:49:40 +00:00
|
|
|
message GoogleDrive {
|
|
|
|
string file = 1;
|
|
|
|
string link = 2;
|
|
|
|
string email = 3;
|
|
|
|
string timestamp = 4;
|
|
|
|
bool shared = 5;
|
|
|
|
string last_modified_by = 6;
|
2023-07-28 14:38:51 +00:00
|
|
|
string path = 7;
|
2023-04-19 14:49:40 +00:00
|
|
|
}
|
|
|
|
|
2023-07-27 02:53:10 +00:00
|
|
|
message AzureRepos {
|
|
|
|
string link = 1;
|
|
|
|
string username = 2;
|
|
|
|
string repository = 3;
|
|
|
|
string commit = 4;
|
|
|
|
string email = 5;
|
|
|
|
string file = 6;
|
|
|
|
string timestamp = 7;
|
|
|
|
int64 line = 8;
|
|
|
|
Visibility visibility = 9;
|
|
|
|
string project = 10;
|
|
|
|
string organization = 11;
|
|
|
|
}
|
|
|
|
|
2024-03-20 16:36:20 +00:00
|
|
|
message Postman {
|
|
|
|
string link = 1;
|
|
|
|
string workspace_uuid = 2;
|
|
|
|
string workspace_name = 3;
|
|
|
|
string globals_id = 4;
|
|
|
|
string collection_id = 5;
|
|
|
|
string collection_name = 6;
|
|
|
|
string environment_id = 7;
|
|
|
|
string environment_name = 8;
|
|
|
|
string request_id = 9;
|
|
|
|
string request_name = 10;
|
|
|
|
string folder_id = 11;
|
|
|
|
string folder_name = 12;
|
|
|
|
string field_type = 13;
|
|
|
|
string field_name = 14;
|
|
|
|
string variable_type = 15;
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:02:24 +00:00
|
|
|
message MetaData {
|
|
|
|
oneof data {
|
|
|
|
Azure azure = 1;
|
|
|
|
Bitbucket bitbucket = 2;
|
|
|
|
CircleCI circleci = 3;
|
|
|
|
Confluence confluence = 4;
|
2023-06-22 15:02:25 +00:00
|
|
|
Docker docker = 5;
|
2022-01-13 20:02:24 +00:00
|
|
|
ECR ecr = 6;
|
|
|
|
GCS gcs = 7;
|
|
|
|
Github github = 8;
|
|
|
|
Gitlab gitlab = 9;
|
|
|
|
Jira jira = 10;
|
|
|
|
NPM npm = 11;
|
|
|
|
PyPi pypi = 12;
|
|
|
|
S3 s3 = 13;
|
|
|
|
Slack slack = 14;
|
|
|
|
Filesystem filesystem = 15;
|
|
|
|
Git git = 16;
|
|
|
|
Test test = 17;
|
|
|
|
Buildkite buildkite = 18;
|
|
|
|
Gerrit gerrit = 19;
|
|
|
|
Jenkins jenkins = 20;
|
2022-04-04 17:48:43 +00:00
|
|
|
Teams teams = 21;
|
2022-04-05 23:38:48 +00:00
|
|
|
Artifactory artifactory = 22;
|
2022-05-04 22:08:11 +00:00
|
|
|
Syslog syslog = 23;
|
2023-12-03 21:16:16 +00:00
|
|
|
Forager forager = 24;
|
2023-04-10 17:30:47 +00:00
|
|
|
SharePoint sharepoint = 25;
|
2023-04-19 14:49:40 +00:00
|
|
|
GoogleDrive googleDrive = 26;
|
2023-07-27 02:53:10 +00:00
|
|
|
AzureRepos azureRepos = 27;
|
2023-10-30 14:28:25 +00:00
|
|
|
TravisCI travisCI = 28;
|
2024-03-20 16:36:20 +00:00
|
|
|
Postman postman = 29;
|
2022-01-13 20:02:24 +00:00
|
|
|
}
|
|
|
|
}
|