Skip to content

Commit

Permalink
Added copyright & license
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymist committed Jan 3, 2021
1 parent 3cebc78 commit b4762c2
Show file tree
Hide file tree
Showing 23 changed files with 999 additions and 3 deletions.
660 changes: 660 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const convict = require('convict');
const convictFormatWithValidator = require('convict-format-with-validator');
const path = require('path');
Expand Down
16 changes: 16 additions & 0 deletions healthcheck.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const http = require('http');
require('convict');
const config = require('./config/config.js');
Expand Down
16 changes: 16 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

require('app-module-path/register');
const server = require('src/server');

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "purpleteam-orchestrator",
"version": "0.1.0-alpha.1",
"description": "",
"description": "Orchestrator component of purpleteam -- security regression testing SaaS",
"main": "index.js",
"scripts": {
"lint": "eslint .",
Expand Down Expand Up @@ -76,9 +76,9 @@
"zap"
],
"author": "Kim Carter",
"license": "",
"license": "AGPL-3.0-only",
"bugs": {
"url": "https://gitlab.com/purpleteam-labs/purpleteam-orchestrator/issues"
"url": "https://gitlab.com/purpleteam-labs/purpleteam/issues"
},
"homepage": "https://gitlab.com/purpleteam-labs/purpleteam-orchestrator/blob/master/README.md",
"dependencies": {
Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const { Orchestrate } = require('./models');
const routes = require('./routes');

Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/models/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const Orchestrate = require('./orchestrate');

module.exports = { Orchestrate };
16 changes: 16 additions & 0 deletions src/api/orchestration/models/orchestrate.app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const log = require('purpleteam-logger').get();
const Wreck = require('@hapi/wreck');
const Bourne = require('@hapi/bourne');
Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/models/orchestrate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const { exec } = require('child_process');
const fs = require('fs');
const { promisify } = require('util');
Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/models/orchestrate.server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const log = require('purpleteam-logger').get(); // eslint-disable-line no-unused-vars
const { Orchestration: { TesterUnavailable, TestPlanUnavailable } } = require('src/strings');

Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/models/orchestrate.tls.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const log = require('purpleteam-logger').get(); // eslint-disable-line no-unused-vars
const { Orchestration: { TesterUnavailable, TestPlanUnavailable } } = require('src/strings');

Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/routes/get.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const Boom = require('@hapi/boom'); // eslint-disable-line
const { validateTesterNameSessionId } = require('src/api/orchestration/schemas/testers');

Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const post = require('./post');
const get = require('./get');

Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/routes/post.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const Boom = require('@hapi/boom'); // eslint-disable-line import/no-extraneous-dependencies
const { Orchestration: { BuildUserConfigMaskPassword } } = require('src/strings');
const validateBuildUserConfig = require('src/api/orchestration/schemas/buildUserConfig');
Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/schemas/buildUserConfig.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const jsdiff = require('diff');
const Ajv = require('ajv');
const Bourne = require('@hapi/bourne');
Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/schemas/testers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const Joi = require('joi');
const config = require('config/config');

Expand Down
16 changes: 16 additions & 0 deletions src/api/orchestration/subscribers/testerWatcher.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const { promisify } = require('util');
const redis = require('redis');

Expand Down
16 changes: 16 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const Hapi = require('@hapi/hapi');
const hapiJsonApi = require('@gar/hapi-json-api');
const susie = require('susie');
Expand Down
16 changes: 16 additions & 0 deletions src/strings/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const Bourne = require('@hapi/bourne');

const Orchestration = {
Expand Down
16 changes: 16 additions & 0 deletions test/api/orchestration/models/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

const cwd = process.cwd();
require('app-module-path').addPath(cwd);
16 changes: 16 additions & 0 deletions test/api/orchestration/models/orchestrate.app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (C) 2017-2021 BinaryMist Limited. All rights reserved.

// This file is part of purpleteam.

// purpleteam is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation version 3.

// purpleteam is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with purpleteam. If not, see <https://www.gnu.org/licenses/>.

Loading

0 comments on commit b4762c2

Please sign in to comment.