Deploying HQ
This page describes the install of the Lenses Agent via an archive on Linux.
Last updated
Was this helpful?
Was this helpful?
/api/v2/auth/saml/callback?client_name=SAML2Clientauth:
users:
- username: admin
password: $2a$10$F66cb6ZhnJjGCZuxlvKP1e84eytTpT1MDJcpBblHaZgsqp1/Aa0LG # bcrypt("correcthorsebatterystaple").
administrators:
- admin
- admin@example.com
saml:
enabled: true
metadata: |-
<?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor>
...
...
</md:EntityDescriptor>
# Defines base URL of HQ for IdP redirects
baseURL: https://changeme.com # <--- Change this
# Defines globally unique identifier for the SAML entity
# — either the Service Provider (SP) or Identity Provider (IdP)
# It's often a URL, but it doesn't necessarily need to resolve to anything
entityID: https://example.com # <--- Change this
userCreationMode: sso
groupMembershipMode: ssohttp:
address: :8080
accessControlAllowOrigin:
- https://example.com
accessControlAllowCredentials: false
secureSessionCookies: false
tls:
enabled: true
cert: |
-----BEGIN CERTIFICATE-----
MIIDXTCCAkWgAwIBAgIJALkNfT3d1N8tMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAlVTMRYwFAYDVQQKEw1FeGFtcGxlIENlcnQwHhcNMjUwMzI2MDAwMDAwWhcN
MzUwMzIzMDAwMDAwWjBFMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNZXhhbXBsZS5j
b20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC5D3jXq5JnE9NnRJ8N
...
-----END CERTIFICATE-----
key: |
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASC...
...
-----END PRIVATE KEY-----http:
address: :8080
accessControlAllowOrigin:
- https://example.com
accessControlAllowCredentials: false
secureSessionCookies: false
tls:
enabled: falseagents:
address: :10000
tls:
enabled: true
cert: |
-----BEGIN CERTIFICATE-----
MIIDXTCCAkWgAwIBAgIJALkNfT3d1N8tMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAlVTMRYwFAYDVQQKEw1FeGFtcGxlIENlcnQwHhcNMjUwMzI2MDAwMDAwWhcN
MzUwMzIzMDAwMDAwWjBFMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNZXhhbXBsZS5j
b20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC5D3jXq5JnE9NnRJ8N
...
-----END CERTIFICATE-----
key: |
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASC...
...
-----END PRIVATE KEY-----agents:
address: :10000
tls:
enabled: falsedatabase:
host: postgres:5432
username: panoptes
password: password
database: panoptes
schema: insert-schema-here
# Params example - not required and it depends on your PG requirements
params:
sslmode: requiremetrics:
prometheusAddress: :9090license_key_2SFZ0BesCNu6NFv0-EOSIvY22ChSzNWXa5nSds2l4z3y7aBgRPKCVnaeMlS57hHNVboR2kKaQ8Mtv1LFt0MPBBACGhDT5If8PmTraUM5xXLz4MYvlicense:
key: license_key_*
acceptEULA: trueauth:
users:
- username: admin
password: $2a$10$F66cb6ZhnJjGCZuxlvKP1e84eytTpT1MDJcpBblHaZgsqp1/Aa0LG # bcrypt("correcthorsebatterystaple").
administrators:
- admin
- admin@example.com
saml:
enabled: true
metadata: |-
<?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor>
...
...
</md:EntityDescriptor>
baseURL: https://example.com
entityID: https://example.com
userCreationMode: sso
groupMembershipMode: sso
http:
address: ":8080"
accessControlAllowOrigin:
- https://example.com
agents:
address: ":10000"
database:
host: postgres:5432
username: panoptes
password: password
database: panoptes
schema: insert-schema-here
params:
sslmode: require
license:
key: license_key_*
acceptEULA: true
logger:
mode: text
level: debug
metrics:
prometheusAddress: :9090
./lenses-hq./lenses-hq config.yaml[Unit]
Description=Run HQ service
[Service]
Restart=always
User=[LENSES-USER]
Group=[LENSES-GROUP]
LimitNOFILE=4096
WorkingDirectory=/opt/lenses-hq
ExecStart=/opt/lenses-hq /etc/lenses-hq/config.yaml
[Install]
WantedBy=multi-user.target