Class: Cerbos::TLS

Inherits:
Object
  • Object
show all
Defined in:
lib/cerbos/tls.rb

Overview

Settings for encrypting the gRPC connection with TLS.

Direct Known Subclasses

MutualTLS

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_certificates_pem: nil) ⇒ TLS

Create settings for encrypting the gRPC connection with TLS.

Parameters:

  • root_certificates_pem (String, nil) (defaults to: nil)

    the PEM-encoded certificates of root certificate authorities used to verify the server certificate (nil to use the public roots bundled with the grpc gem).


15
16
17
# File 'lib/cerbos/tls.rb', line 15

def initialize(root_certificates_pem: nil)
  @root_certificates_pem = root_certificates_pem
end

Instance Attribute Details

#root_certificates_pemString? (readonly)

The PEM-encoded certificates of root certificate authorities used to verify the server certificate.

Returns:

  • (String)
  • (nil)

    if using the public roots bundled with the grpc gem.


10
11
12
# File 'lib/cerbos/tls.rb', line 10

def root_certificates_pem
  @root_certificates_pem
end