Skip to content

Commit 32c218e

Browse files
committed
shipping to prod
1 parent 45a2619 commit 32c218e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ node_modules
1313
.php-cs-fixer.cache
1414
sign.sh
1515
test.sig
16-
test
16+
test
17+
hash-key
18+
gen_key.sh

config/verify.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
return [
1010
'validation' => [
11-
ValidateHash::class => 'c34da4a4523e54f303c23cd22eaf252f74ed7965',
12-
ValidateSignature::class => 'a3d4081247b4f56c8aeb7c6b192415700e27acc0',
11+
ValidateHash::class => '5afdc7446da9009f2d95a02a216281544e14e79c',
12+
ValidateSignature::class => '71627830f8485d02dc48a59e2aa28cc9dea6fe3b',
1313
Verify::class => 'b9e4048f3543734262582553d2202f9ef5d39b1f',
1414
VerifySupporterStatus::class => '6358c45ed0414c1e2697e0881238659fa6221bed',
1515
VerifyServiceProvider::class => '927a8f3c811fc82cb8a0ac2667c06e7d292c3633',

database/migrations/create_configs_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class() extends Migration {
7+
return new class extends Migration {
88
private const TABLE_NAME = 'configs';
99

1010
public function up(): void

src/Validators/ValidateHash.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ class ValidateHash implements Validator
1515

1616
public function __construct(#[\SensitiveParameter] ?string $hash = null)
1717
{
18-
// ! TODO change me when we are shipping for real.
19-
$this->hash = $hash ?? '$2y$10$TBBCJeXOa10Y5WwLU.yeQ.4fQS/BujBknIvISyhlPzp.LU9jWIH2W';
18+
$this->hash = $hash ?? '$2y$10$sKikfvI9bJ5/7JE/Ai.QyOz6nxrEP8mrQ55LN9VwxiMOUihGwWY3m';
2019
}
2120

2221
/**

src/Validators/ValidateSignature.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class ValidateSignature implements Validator
1919

2020
public function __construct(#[\SensitiveParameter] ?string $public_key = null)
2121
{
22-
// ! TODO change me when we are shipping for real.
23-
$this->public_key = $public_key ?? "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEApC/wjenM2UJTxSalbKIfe/W8nTU\nRdNpNubBOcZED2LVJdnEWi4a4tZx71cmjjjbDNItf2/vsu/nrmb+QDf67w==\n-----END PUBLIC KEY-----";
22+
$this->public_key = $public_key ?? "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEcFqncMi8yaAYvqk9nXx1Cl3dQseN\nWAISTnuW67XBopIemOgbbd6PHRPjmuaVrsd/tXT7NX9aikKpAGrgJI5yQw==\n-----END PUBLIC KEY-----";
2423
}
2524

2625
/**

tests/Constants.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class Constants
1010
public const HASH = '$2y$10$TBBCJeXOa10Y5WwLU.yeQ.4fQS/BujBknIvISyhlPzp.LU9jWIH2W';
1111
public const HASH_KEY = 'BSIM4-MEVVQ-HVQKG-Q6VNT-KP3EZ';
1212
public const EMAIL_TEST = '[email protected]';
13-
13+
1414
public const LICENSE_JSON = 'MEUCIQCSxj5Oe1JoAgrR0lfa4UZksnjPBZjqhuJmRPupu1YJvwIgIRAcwM3r89tLYuO9DOcmOzOHLTX4hPw0FVKwZG8M/2I=';
15-
15+
1616
// public const LICENSE_JSON = 'MEUCIQD3LMOIbvHu9Uj09nHfyBP+AK91SwW7nHxW6Uq+nx9X/wIgagXs8X2UCp9ISrFhpcTzMYXdakDHomU5PKpcTPQIR5o=';
1717
}
1818

0 commit comments

Comments
 (0)