feat(sdk): addStore() accepts pinnedPubkeyPem
Some checks failed
Security / Security check (push) Failing after 1s
Some checks failed
Security / Security check (push) Failing after 1s
Regenerate Dart bindings for AddStoreRequest.pinned_pubkey_pem and thread it through HubClient.addStore so clients can pin a per-store publisher key. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
597f6bec4f
commit
9fea05df76
3 changed files with 21 additions and 1 deletions
|
|
@ -7419,6 +7419,7 @@ class AddStoreRequest extends $pb.GeneratedMessage {
|
||||||
$core.String? bearerEnv,
|
$core.String? bearerEnv,
|
||||||
$core.String? basicUser,
|
$core.String? basicUser,
|
||||||
$core.String? basicPasswordEnv,
|
$core.String? basicPasswordEnv,
|
||||||
|
$core.String? pinnedPubkeyPem,
|
||||||
}) {
|
}) {
|
||||||
final result = create();
|
final result = create();
|
||||||
if (name != null) result.name = name;
|
if (name != null) result.name = name;
|
||||||
|
|
@ -7426,6 +7427,7 @@ class AddStoreRequest extends $pb.GeneratedMessage {
|
||||||
if (bearerEnv != null) result.bearerEnv = bearerEnv;
|
if (bearerEnv != null) result.bearerEnv = bearerEnv;
|
||||||
if (basicUser != null) result.basicUser = basicUser;
|
if (basicUser != null) result.basicUser = basicUser;
|
||||||
if (basicPasswordEnv != null) result.basicPasswordEnv = basicPasswordEnv;
|
if (basicPasswordEnv != null) result.basicPasswordEnv = basicPasswordEnv;
|
||||||
|
if (pinnedPubkeyPem != null) result.pinnedPubkeyPem = pinnedPubkeyPem;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -7447,6 +7449,7 @@ class AddStoreRequest extends $pb.GeneratedMessage {
|
||||||
..aOS(3, _omitFieldNames ? '' : 'bearerEnv')
|
..aOS(3, _omitFieldNames ? '' : 'bearerEnv')
|
||||||
..aOS(4, _omitFieldNames ? '' : 'basicUser')
|
..aOS(4, _omitFieldNames ? '' : 'basicUser')
|
||||||
..aOS(5, _omitFieldNames ? '' : 'basicPasswordEnv')
|
..aOS(5, _omitFieldNames ? '' : 'basicPasswordEnv')
|
||||||
|
..aOS(6, _omitFieldNames ? '' : 'pinnedPubkeyPem')
|
||||||
..hasRequiredFields = false;
|
..hasRequiredFields = false;
|
||||||
|
|
||||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||||
|
|
@ -7517,6 +7520,19 @@ class AddStoreRequest extends $pb.GeneratedMessage {
|
||||||
$core.bool hasBasicPasswordEnv() => $_has(4);
|
$core.bool hasBasicPasswordEnv() => $_has(4);
|
||||||
@$pb.TagNumber(5)
|
@$pb.TagNumber(5)
|
||||||
void clearBasicPasswordEnv() => $_clearField(5);
|
void clearBasicPasswordEnv() => $_clearField(5);
|
||||||
|
|
||||||
|
/// Optional PEM PUBLIC key to pin for this store (cosign key-pinning).
|
||||||
|
/// When set, signed modules from this store verify against THIS
|
||||||
|
/// publisher key instead of the global/built-in vendor anchor, so a
|
||||||
|
/// domain publisher signs with its own key without the vendor master.
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
$core.String get pinnedPubkeyPem => $_getSZ(5);
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
set pinnedPubkeyPem($core.String value) => $_setString(5, value);
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
$core.bool hasPinnedPubkeyPem() => $_has(5);
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
void clearPinnedPubkeyPem() => $_clearField(6);
|
||||||
}
|
}
|
||||||
|
|
||||||
class AddStoreResponse extends $pb.GeneratedMessage {
|
class AddStoreResponse extends $pb.GeneratedMessage {
|
||||||
|
|
|
||||||
|
|
@ -1782,6 +1782,7 @@ const AddStoreRequest$json = {
|
||||||
'5': 9,
|
'5': 9,
|
||||||
'10': 'basicPasswordEnv'
|
'10': 'basicPasswordEnv'
|
||||||
},
|
},
|
||||||
|
{'1': 'pinned_pubkey_pem', '3': 6, '4': 1, '5': 9, '10': 'pinnedPubkeyPem'},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1789,7 +1790,8 @@ const AddStoreRequest$json = {
|
||||||
final $typed_data.Uint8List addStoreRequestDescriptor = $convert.base64Decode(
|
final $typed_data.Uint8List addStoreRequestDescriptor = $convert.base64Decode(
|
||||||
'Cg9BZGRTdG9yZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRIQCgN1cmwYAiABKAlSA3VybB'
|
'Cg9BZGRTdG9yZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRIQCgN1cmwYAiABKAlSA3VybB'
|
||||||
'IdCgpiZWFyZXJfZW52GAMgASgJUgliZWFyZXJFbnYSHQoKYmFzaWNfdXNlchgEIAEoCVIJYmFz'
|
'IdCgpiZWFyZXJfZW52GAMgASgJUgliZWFyZXJFbnYSHQoKYmFzaWNfdXNlchgEIAEoCVIJYmFz'
|
||||||
'aWNVc2VyEiwKEmJhc2ljX3Bhc3N3b3JkX2VudhgFIAEoCVIQYmFzaWNQYXNzd29yZEVudg==');
|
'aWNVc2VyEiwKEmJhc2ljX3Bhc3N3b3JkX2VudhgFIAEoCVIQYmFzaWNQYXNzd29yZEVudhIqCh'
|
||||||
|
'FwaW5uZWRfcHVia2V5X3BlbRgGIAEoCVIPcGlubmVkUHVia2V5UGVt');
|
||||||
|
|
||||||
@$core.Deprecated('Use addStoreResponseDescriptor instead')
|
@$core.Deprecated('Use addStoreResponseDescriptor instead')
|
||||||
const AddStoreResponse$json = {
|
const AddStoreResponse$json = {
|
||||||
|
|
|
||||||
|
|
@ -669,6 +669,7 @@ class HubClient {
|
||||||
String bearerEnv = '',
|
String bearerEnv = '',
|
||||||
String basicUser = '',
|
String basicUser = '',
|
||||||
String basicPasswordEnv = '',
|
String basicPasswordEnv = '',
|
||||||
|
String pinnedPubkeyPem = '',
|
||||||
}) {
|
}) {
|
||||||
return _admin.addStore(pb.AddStoreRequest(
|
return _admin.addStore(pb.AddStoreRequest(
|
||||||
name: name,
|
name: name,
|
||||||
|
|
@ -676,6 +677,7 @@ class HubClient {
|
||||||
bearerEnv: bearerEnv,
|
bearerEnv: bearerEnv,
|
||||||
basicUser: basicUser,
|
basicUser: basicUser,
|
||||||
basicPasswordEnv: basicPasswordEnv,
|
basicPasswordEnv: basicPasswordEnv,
|
||||||
|
pinnedPubkeyPem: pinnedPubkeyPem,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue