mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
Use different subnet public key during dev/test (#16216)
This commit is contained in:
parent
444ff20bc5
commit
a2cbeaa9e6
@ -2702,7 +2702,7 @@ func (a adminAPIHandlers) InspectDataHandler(w http.ResponseWriter, r *http.Requ
|
|||||||
stream := estream.NewWriter(w)
|
stream := estream.NewWriter(w)
|
||||||
defer stream.Close()
|
defer stream.Close()
|
||||||
|
|
||||||
clusterKey, err := bytesToPublicKey(subnetAdminPublicKey)
|
clusterKey, err := bytesToPublicKey(getSubnetAdminPublicKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.LogIf(ctx, stream.AddError(err.Error()))
|
logger.LogIf(ctx, stream.AddError(err.Error()))
|
||||||
return
|
return
|
||||||
@ -2837,6 +2837,13 @@ func (a adminAPIHandlers) InspectDataHandler(w http.ResponseWriter, r *http.Requ
|
|||||||
logger.LogIf(ctx, embedFileInZip(inspectZipW, "inspect-input.txt", sb.Bytes()))
|
logger.LogIf(ctx, embedFileInZip(inspectZipW, "inspect-input.txt", sb.Bytes()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getSubnetAdminPublicKey() []byte {
|
||||||
|
if globalIsCICD {
|
||||||
|
return subnetAdminPublicKeyDev
|
||||||
|
}
|
||||||
|
return subnetAdminPublicKey
|
||||||
|
}
|
||||||
|
|
||||||
func createHostAnonymizerForFSMode() map[string]string {
|
func createHostAnonymizerForFSMode() map[string]string {
|
||||||
hostAnonymizer := map[string]string{
|
hostAnonymizer := map[string]string{
|
||||||
globalLocalNodeName: "server1",
|
globalLocalNodeName: "server1",
|
||||||
|
@ -377,7 +377,8 @@ var (
|
|||||||
globalMinioClient *minio.Client
|
globalMinioClient *minio.Client
|
||||||
|
|
||||||
// Public key for subnet confidential information
|
// Public key for subnet confidential information
|
||||||
subnetAdminPublicKey = []byte("-----BEGIN PUBLIC KEY-----\nMIIBCgKCAQEAyC+ol5v0FP+QcsR6d1KypR/063FInmNEFsFzbEwlHQyEQN3O7kNI\nwVDN1vqp1wDmJYmv4VZGRGzfFw1q+QV7K1TnysrEjrqpVxfxzDQCoUadAp8IxLLc\ns2fjyDNxnZjoC6fTID9C0khKnEa5fPZZc3Ihci9SiCGkPmyUyCGVSxWXIKqL2Lrj\nyDc0pGeEhWeEPqw6q8X2jvTC246tlzqpDeNsPbcv2KblXRcKniQNbBrizT37CKHQ\nM6hc9kugrZbFuo8U5/4RQvZPJnx/DVjLDyoKo2uzuVQs4s+iBrA5sSSLp8rPED/3\n6DgWw3e244Dxtrg972dIT1IOqgn7KUJzVQIDAQAB\n-----END PUBLIC KEY-----")
|
subnetAdminPublicKey = []byte("-----BEGIN PUBLIC KEY-----\nMIIBCgKCAQEAyC+ol5v0FP+QcsR6d1KypR/063FInmNEFsFzbEwlHQyEQN3O7kNI\nwVDN1vqp1wDmJYmv4VZGRGzfFw1q+QV7K1TnysrEjrqpVxfxzDQCoUadAp8IxLLc\ns2fjyDNxnZjoC6fTID9C0khKnEa5fPZZc3Ihci9SiCGkPmyUyCGVSxWXIKqL2Lrj\nyDc0pGeEhWeEPqw6q8X2jvTC246tlzqpDeNsPbcv2KblXRcKniQNbBrizT37CKHQ\nM6hc9kugrZbFuo8U5/4RQvZPJnx/DVjLDyoKo2uzuVQs4s+iBrA5sSSLp8rPED/3\n6DgWw3e244Dxtrg972dIT1IOqgn7KUJzVQIDAQAB\n-----END PUBLIC KEY-----")
|
||||||
|
subnetAdminPublicKeyDev = []byte("-----BEGIN PUBLIC KEY-----\nMIIBCgKCAQEArhQYXQd6zI4uagtVfthAPOt6i4AYHnEWCoNeAovM4MNl42I9uQFh\n3VHkbWj9Gpx9ghf6PgRgK+8FcFvy+StmGcXpDCiFywXX24uNhcZjscX1C4Esk0BW\nidfI2eXYkOlymD4lcK70SVgJvC693Qa7Z3FE1KU8Nfv2bkxEE4bzOkojX9t6a3+J\nR8X6Z2U8EMlH1qxJPgiPogELhWP0qf2Lq7GwSAflo1Tj/ytxvD12WrnE0Rrj/8yP\nSnp7TbYm91KocKMExlmvx3l2XPLxeU8nf9U0U+KOmorejD3MDMEPF+tlk9LB3JWP\nZqYYe38rfALVTn4RVJriUcNOoEpEyC0WEwIDAQAB\n-----END PUBLIC KEY-----")
|
||||||
|
|
||||||
globalConnReadDeadline time.Duration
|
globalConnReadDeadline time.Duration
|
||||||
globalConnWriteDeadline time.Duration
|
globalConnWriteDeadline time.Duration
|
||||||
|
Loading…
Reference in New Issue
Block a user