Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for tlsOptions (0.15 sec)

  1. pilot/pkg/bootstrap/certcontroller.go

    func (s *Server) initFileCertificateWatches(tlsOptions TLSOptions) error {
    	if err := s.istiodCertBundleWatcher.SetFromFilesAndNotify(tlsOptions.KeyFile, tlsOptions.CertFile, tlsOptions.CaCertFile); err != nil {
    		return fmt.Errorf("set keyCertBundle failed: %v", err)
    	}
    	// TODO: Setup watcher for root and restart server if it changes.
    	for _, file := range []string{tlsOptions.CertFile, tlsOptions.KeyFile} {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. security/pkg/nodeagent/caclient/providers/citadel/client.go

    type CitadelClient struct {
    	// It means enable tls connection to Citadel if this is not nil.
    	tlsOpts  *TLSOptions
    	client   pb.IstioCertificateServiceClient
    	conn     *grpc.ClientConn
    	provider credentials.PerRPCCredentials
    	opts     *security.Options
    }
    
    type TLSOptions struct {
    	RootCert string
    	Key      string
    	Cert     string
    }
    
    // NewCitadelClient create a CA client for Citadel.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. pilot/pkg/bootstrap/server_test.go

    	}
    
    	// Update cert/key files.
    	if err := os.WriteFile(tlsOptions.CertFile, testcerts.RotatedCert, 0o644); err != nil { // nolint: vetshadow
    		t.Fatalf("WriteFile(%v) failed: %v", tlsOptions.CertFile, err)
    	}
    	if err := os.WriteFile(tlsOptions.KeyFile, testcerts.RotatedKey, 0o644); err != nil { // nolint: vetshadow
    		t.Fatalf("WriteFile(%v) failed: %v", tlsOptions.KeyFile, err)
    	}
    
    	g := NewWithT(t)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. security/pkg/nodeagent/caclient/providers/citadel/client_test.go

    		addr := serve(t, server, tlsOptions(t))
    		opts := &security.Options{
    			CAEndpoint:  addr,
    			CredFetcher: plugin.CreateTokenPlugin("testdata/token"),
    			ProvCert:    certDir,
    		}
    		rootCert := path.Join(certDir, constants.RootCertFilename)
    		key := path.Join(certDir, constants.KeyFilename)
    		cert := path.Join(certDir, constants.CertChainFilename)
    		tlsOpts := &TLSOptions{
    			RootCert: rootCert,
    			Key:      key,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 21:03:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. pilot/pkg/bootstrap/options.go

    	// Optional TLS configuration
    	TLSOptions TLSOptions
    
    	// The listening address for secured gRPC. If the port in the address is empty or "0" (as in "127.0.0.1:" or "[::1]:0")
    	// a port number is automatically chosen.
    	SecureGRPCAddr string
    }
    
    type InjectionOptions struct {
    	// Directory of injection related config files.
    	InjectionDirectory string
    }
    
    // TLSOptions is optional TLS parameters for Istiod server.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. pilot/pkg/bootstrap/server.go

    func hasCustomTLSCerts(tlsOptions TLSOptions) (ok bool, tlsCertPath, tlsKeyPath, caCertPath string) {
    	// load from tls args as priority
    	if hasCustomTLSCertArgs(tlsOptions) {
    		return true, tlsOptions.CertFile, tlsOptions.KeyFile, tlsOptions.CaCertFile
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  7. pilot/cmd/pilot-discovery/app/cmd.go

    	c.PersistentFlags().StringVar(&serverArgs.ServerOptions.TLSOptions.CaCertFile, "caCertFile", "",
    		"File containing the x509 Server CA Certificate")
    	c.PersistentFlags().StringVar(&serverArgs.ServerOptions.TLSOptions.CertFile, "tlsCertFile", "",
    		"File containing the x509 Server Certificate")
    	c.PersistentFlags().StringVar(&serverArgs.ServerOptions.TLSOptions.KeyFile, "tlsKeyFile", "",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. pilot/pkg/grpc/tls.go

    	sec_model "istio.io/istio/pkg/model"
    	"istio.io/istio/security/pkg/pki/util"
    )
    
    // TLSOptions include TLS options that a grpc client uses to connect with server.
    type TLSOptions struct {
    	RootCert      string
    	Key           string
    	Cert          string
    	ServerAddress string
    	SAN           string
    }
    
    func getTLSDialOption(opts *TLSOptions) (grpc.DialOption, error) {
    	rootCert, err := getRootCertificate(opts.RootCert)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 22:11:02 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. pkg/istio-agent/plugins.go

    	// Using citadel CA
    	var tlsOpts *citadel.TLSOptions
    	var err error
    	// Special case: if Istiod runs on a secure network, on the default port, don't use TLS
    	// TODO: may add extra cases or explicit settings - but this is a rare use cases, mostly debugging
    	if strings.HasSuffix(opts.CAEndpoint, ":15010") {
    		log.Warn("Debug mode or IP-secure network")
    	} else {
    		tlsOpts = &citadel.TLSOptions{}
    		tlsOpts.RootCert, err = a.FindRootCAForCA()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 03:32:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. pilot/cmd/pilot-discovery/app/options.go

    	if err := validation.ValidateMaxServerConnectionAge(serverArgs.KeepaliveOptions.MaxServerConnectionAge); err != nil {
    		return err
    	}
    
    	_, err := bootstrap.TLSCipherSuites(serverArgs.ServerOptions.TLSOptions.TLSCipherSuites)
    
    	// TODO: add validation for other flags
    	return err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 23:42:29 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top