Skip to content

Commit

Permalink
shipping to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Oct 9, 2024
1 parent 45a2619 commit 32c218e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ node_modules
.php-cs-fixer.cache
sign.sh
test.sig
test
test
hash-key
gen_key.sh
4 changes: 2 additions & 2 deletions config/verify.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

return [
'validation' => [
ValidateHash::class => 'c34da4a4523e54f303c23cd22eaf252f74ed7965',
ValidateSignature::class => 'a3d4081247b4f56c8aeb7c6b192415700e27acc0',
ValidateHash::class => '5afdc7446da9009f2d95a02a216281544e14e79c',
ValidateSignature::class => '71627830f8485d02dc48a59e2aa28cc9dea6fe3b',
Verify::class => 'b9e4048f3543734262582553d2202f9ef5d39b1f',
VerifySupporterStatus::class => '6358c45ed0414c1e2697e0881238659fa6221bed',
VerifyServiceProvider::class => '927a8f3c811fc82cb8a0ac2667c06e7d292c3633',
Expand Down
2 changes: 1 addition & 1 deletion database/migrations/create_configs_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class() extends Migration {
return new class extends Migration {
private const TABLE_NAME = 'configs';

public function up(): void
Expand Down
3 changes: 1 addition & 2 deletions src/Validators/ValidateHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class ValidateHash implements Validator

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

/**
Expand Down
3 changes: 1 addition & 2 deletions src/Validators/ValidateSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class ValidateSignature implements Validator

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

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class Constants
public const HASH = '$2y$10$TBBCJeXOa10Y5WwLU.yeQ.4fQS/BujBknIvISyhlPzp.LU9jWIH2W';
public const HASH_KEY = 'BSIM4-MEVVQ-HVQKG-Q6VNT-KP3EZ';
public const EMAIL_TEST = 'test@example.com';

public const LICENSE_JSON = 'MEUCIQCSxj5Oe1JoAgrR0lfa4UZksnjPBZjqhuJmRPupu1YJvwIgIRAcwM3r89tLYuO9DOcmOzOHLTX4hPw0FVKwZG8M/2I=';

// public const LICENSE_JSON = 'MEUCIQD3LMOIbvHu9Uj09nHfyBP+AK91SwW7nHxW6Uq+nx9X/wIgagXs8X2UCp9ISrFhpcTzMYXdakDHomU5PKpcTPQIR5o=';
}

0 comments on commit 32c218e

Please sign in to comment.