This is an automated email from the ASF dual-hosted git repository. lahirujayathilake pushed a commit to branch validator-per-deployment in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
commit ac97ab3e96ed70e2f92a75ba706e96f3ad81c795 Author: lahiruj <[email protected]> AuthorDate: Fri Nov 6 01:32:19 2026 -0500 One principal validator per deployment --- dev-ops/compose/openbao/init/openbao-init.sh | 4 +- dev-ops/compose/signer/config.yaml | 2 +- dev-ops/compose/signer/seed-client.sql | 5 +- extensions/SSH-Certificate-Signer/README.md | 8 +- .../SSH-Certificate-Signer/config.example.yaml | 2 +- .../internal/handler/sign.go | 2 +- .../internal/store/client_config.go | 5 +- .../internal/validation/dispatcher.go | 90 +++++++++------------- .../internal/validation/dispatcher_test.go | 57 +++++++------- .../internal/vault/client.go | 12 +-- extensions/SSH-Certificate-Signer/main.go | 2 +- .../migrations/001_initial_schema.up.sql | 1 - 12 files changed, 85 insertions(+), 105 deletions(-) diff --git a/dev-ops/compose/openbao/init/openbao-init.sh b/dev-ops/compose/openbao/init/openbao-init.sh index 9c5f24905..00bc3c5df 100755 --- a/dev-ops/compose/openbao/init/openbao-init.sh +++ b/dev-ops/compose/openbao/init/openbao-init.sh @@ -58,8 +58,8 @@ echo "$mounts" | grep -q "^resourcesecret/" || bao secrets enable -version=1 -pa bao token lookup "$DEV_TOKEN" >/dev/null 2>&1 || \ bao token create -id="$DEV_TOKEN" -policy=root -orphan >/dev/null -# principal validation credentials for the seeded signer client -bao kv put ssh-ca/clients/bench/validation \ +# principal validation settings for the signer +bao kv put ssh-ca/validation \ type=ldap \ ldap_url=ldap://openldap:389 \ bind_dn="cn=admin,dc=custos,dc=example" \ diff --git a/dev-ops/compose/signer/config.yaml b/dev-ops/compose/signer/config.yaml index 0ca1c435b..add99b60f 100644 --- a/dev-ops/compose/signer/config.yaml +++ b/dev-ops/compose/signer/config.yaml @@ -58,7 +58,7 @@ signer: jwks_max_providers: 10 timeout_seconds: 10 validation: - principal_validator: noop + principal_validator: ldap cache_ttl_seconds: 300 dev_mode: diff --git a/dev-ops/compose/signer/seed-client.sql b/dev-ops/compose/signer/seed-client.sql index e90e472c1..97219a639 100644 --- a/dev-ops/compose/signer/seed-client.sql +++ b/dev-ops/compose/signer/seed-client.sql @@ -18,12 +18,11 @@ -- Dev client for the compose stack. Secret (bcrypt below): bench-secret INSERT INTO client_ssh_configs (client_id, client_secret, target_host, target_port, - max_ttl_seconds, allowed_key_types, principal_source, enabled) + max_ttl_seconds, allowed_key_types, enabled) VALUES ('bench', '$2y$10$2K2FooZeA95Z7ilfrZwB4OZOAKyBKwrT6CePe8q57psu/p3k1g1aa', - 'localhost', 2222, 86400, '["ed25519","rsa","ecdsa"]', 'ldap', TRUE) + 'localhost', 2222, 86400, '["ed25519","rsa","ecdsa"]', TRUE) ON CONFLICT (client_id) DO UPDATE SET client_secret = EXCLUDED.client_secret, - principal_source = EXCLUDED.principal_source, enabled = EXCLUDED.enabled; diff --git a/extensions/SSH-Certificate-Signer/README.md b/extensions/SSH-Certificate-Signer/README.md index 20c3a2e25..b72d1974c 100644 --- a/extensions/SSH-Certificate-Signer/README.md +++ b/extensions/SSH-Certificate-Signer/README.md @@ -35,10 +35,10 @@ SSH public key and the principal. The principal is the Unix username the certifi empty. 3. It enforces the client's policy: maximum TTL, allowed key types and source address. It grants the standard extensions, minus those denied. -4. It validates the principal per `principal_source`, below. +4. It validates the principal with the validator set in `signer.validation.principal_validator`, below. 5. It signs with the CA key from Vault and logs the issuance in `certificate_issuance_logs`. -| `principal_source` | Principal check | +| `principal_validator` | Principal check | |---|---| | `noop` | Accepts the principal | | `ldap` | Finds the LDAP entry for the OIDC subject and requires the principal to equal its `username_attribute`. Credentials are in Vault. | @@ -112,7 +112,7 @@ Generate the bcrypt hash with: htpasswd -nbBC 10 "" "your-secret" | cut -d: -f2 ``` -The table also holds `source_address_restriction`, `denied_extensions` and `principal_source` (default `noop`). +The table also holds `source_address_restriction` and `denied_extensions`. ### Vault @@ -124,7 +124,7 @@ The path must match `vault.mount_path`. The signer creates CA keys on demand. No Ensure the configured token has read/write access to `ssh-ca/data/*`. -For `principal_source = 'ldap'`, store each client's LDAP settings at `ssh-ca/clients/<client_id>/validation`: +For `principal_validator: ldap`, store the LDAP settings at `ssh-ca/validation`: | Key | Value | |---|---| diff --git a/extensions/SSH-Certificate-Signer/config.example.yaml b/extensions/SSH-Certificate-Signer/config.example.yaml index 65c83763d..1185672e5 100644 --- a/extensions/SSH-Certificate-Signer/config.example.yaml +++ b/extensions/SSH-Certificate-Signer/config.example.yaml @@ -59,7 +59,7 @@ signer: jwks_max_providers: 10 timeout_seconds: 10 validation: - principal_validator: noop # fallback: "noop", "ldap", or "comanage" + principal_validator: noop # "noop", "ldap", or "comanage" cache_ttl_seconds: 300 # Vault credential cache TTL for validators dev_mode: diff --git a/extensions/SSH-Certificate-Signer/internal/handler/sign.go b/extensions/SSH-Certificate-Signer/internal/handler/sign.go index 1540cd1af..637a77da5 100644 --- a/extensions/SSH-Certificate-Signer/internal/handler/sign.go +++ b/extensions/SSH-Certificate-Signer/internal/handler/sign.go @@ -183,7 +183,7 @@ func (h *SignHandler) Handle(w http.ResponseWriter, r *http.Request) { extensionsMap := cert.ExtensionsToMap(grantedExts) grantedExtNames := cert.ExtensionNames(grantedExts) - valResult, err := h.principalValidator.ValidateForClient(r.Context(), clientID, req.Principal, identity.Subject, clientCfg.PrincipalSource) + valResult, err := h.principalValidator.ValidateForClient(r.Context(), clientID, req.Principal, identity.Subject) if err != nil { metrics.SignRequestsTotal.WithLabelValues(clientID, "error").Inc() if valErr, ok := err.(*validation.ValidationError); ok { diff --git a/extensions/SSH-Certificate-Signer/internal/store/client_config.go b/extensions/SSH-Certificate-Signer/internal/store/client_config.go index 24da4f554..b8bfc5e40 100644 --- a/extensions/SSH-Certificate-Signer/internal/store/client_config.go +++ b/extensions/SSH-Certificate-Signer/internal/store/client_config.go @@ -31,7 +31,6 @@ type ClientConfig struct { AllowedKeyTypes []string SourceAddressRestriction *string DeniedExtensions []string - PrincipalSource string Enabled bool } @@ -46,14 +45,14 @@ func (d *DB) GetClientConfig(ctx context.Context, clientID string) (*ClientConfi err := d.QueryRowContext(ctx, `SELECT client_id, client_secret, target_host, target_port, max_ttl_seconds, allowed_key_types, source_address_restriction, - denied_extensions, principal_source, enabled + denied_extensions, enabled FROM client_ssh_configs WHERE client_id = $1`, clientID, ).Scan( &cc.ClientID, &cc.ClientSecret, &cc.TargetHost, &cc.TargetPort, &cc.MaxTTLSeconds, &allowedKeyTypesJSON, &sourceAddressRestriction, - &deniedExtensionsJSON, &cc.PrincipalSource, &cc.Enabled, + &deniedExtensionsJSON, &cc.Enabled, ) if err != nil { if err == sql.ErrNoRows { diff --git a/extensions/SSH-Certificate-Signer/internal/validation/dispatcher.go b/extensions/SSH-Certificate-Signer/internal/validation/dispatcher.go index da65a88ea..58b4b0443 100644 --- a/extensions/SSH-Certificate-Signer/internal/validation/dispatcher.go +++ b/extensions/SSH-Certificate-Signer/internal/validation/dispatcher.go @@ -26,7 +26,7 @@ import ( // CredentialFetcher abstracts Vault credential reads for validating. type CredentialFetcher interface { - GetValidationCredentials(ctx context.Context, clientID string) (*vault.ValidationCredentials, error) + GetValidationCredentials(ctx context.Context) (*vault.ValidationCredentials, error) } type cachedCreds struct { @@ -35,24 +35,23 @@ type cachedCreds struct { fetchedAt time.Time } -// ValidatorDispatcher resolves the correct principal validator per client and -// delegates to the appropriate source of truth validator (noop, ldap, comanage). +// ValidatorDispatcher runs the deployment's principal validator (noop, ldap, comanage). type ValidatorDispatcher struct { - credFetcher CredentialFetcher - ldapConnector LDAPConnector - fallbackSource string - cacheTTL time.Duration - negativeTTL time.Duration - cache map[string]*cachedCreds - validators map[string]*LDAPValidator - mu sync.RWMutex - logger *slog.Logger + credFetcher CredentialFetcher + ldapConnector LDAPConnector + source string + cacheTTL time.Duration + negativeTTL time.Duration + cached *cachedCreds + ldap *LDAPValidator + mu sync.RWMutex + logger *slog.Logger } func NewValidatorDispatcher( credFetcher CredentialFetcher, ldapConnector LDAPConnector, - fallbackSource string, + source string, cacheTTL time.Duration, logger *slog.Logger, ) *ValidatorDispatcher { @@ -60,29 +59,19 @@ func NewValidatorDispatcher( cacheTTL = 5 * time.Minute } return &ValidatorDispatcher{ - credFetcher: credFetcher, - ldapConnector: ldapConnector, - fallbackSource: fallbackSource, - cacheTTL: cacheTTL, - negativeTTL: 30 * time.Second, - cache: make(map[string]*cachedCreds), - validators: make(map[string]*LDAPValidator), - logger: logger, + credFetcher: credFetcher, + ldapConnector: ldapConnector, + source: source, + cacheTTL: cacheTTL, + negativeTTL: 30 * time.Second, + logger: logger, } } -// ValidateForClient dispatches principal validation based on the client's -// configured principal_source. Called directly by the sign handler. -func (d *ValidatorDispatcher) ValidateForClient( - ctx context.Context, - clientID, principal, identitySubject, principalSource string, -) (*ValidationResult, error) { - source := principalSource - if source == "" { - source = d.fallbackSource - } - - switch source { +// ValidateForClient checks the principal with the deployment's validator. +// Called directly by the sign handler. +func (d *ValidatorDispatcher) ValidateForClient(ctx context.Context, clientID, principal, identitySubject string) (*ValidationResult, error) { + switch d.source { case "noop", "": return &ValidationResult{ Allowed: true, @@ -100,16 +89,16 @@ func (d *ValidatorDispatcher) ValidateForClient( default: return nil, &ValidationError{ - Message: "Unknown principal source: " + source, + Message: "Unknown principal source: " + d.source, ReasonCode: "UNKNOWN_PRINCIPAL_SOURCE", } } } func (d *ValidatorDispatcher) validateLDAP(ctx context.Context, clientID, principal, identitySubject string) (*ValidationResult, error) { - creds, err := d.fetchCredentials(ctx, clientID) + creds, err := d.fetchCredentials(ctx) if err != nil { - d.logger.Error("failed to fetch validation credentials", "error", err, "client_id", clientID) + d.logger.Error("failed to fetch validation credentials", "error", err) return nil, &ValidationError{ Message: "Principal validation unavailable: credential fetch failed", ReasonCode: "LDAP_UNAVAILABLE", @@ -117,20 +106,20 @@ func (d *ValidatorDispatcher) validateLDAP(ctx context.Context, clientID, princi } if creds == nil { return nil, &ValidationError{ - Message: "LDAP validation not configured for this client", + Message: "LDAP validation not configured", ReasonCode: "VALIDATION_NOT_CONFIGURED", } } - validator := d.getOrCreateValidator(clientID, creds) + validator := d.getOrCreateValidator(creds) return validator.Validate(clientID, principal, identitySubject) } -func (d *ValidatorDispatcher) getOrCreateValidator(clientID string, creds *vault.ValidationCredentials) *LDAPValidator { +func (d *ValidatorDispatcher) getOrCreateValidator(creds *vault.ValidationCredentials) *LDAPValidator { d.mu.RLock() - if v, ok := d.validators[clientID]; ok { + if d.ldap != nil { d.mu.RUnlock() - return v + return d.ldap } d.mu.RUnlock() @@ -150,20 +139,17 @@ func (d *ValidatorDispatcher) getOrCreateValidator(clientID string, creds *vault }, d.ldapConnector) d.mu.Lock() + defer d.mu.Unlock() // Double-check after acquiring write lock - if v, ok := d.validators[clientID]; ok { - d.mu.Unlock() - return v + if d.ldap == nil { + d.ldap = validator } - d.validators[clientID] = validator - d.mu.Unlock() - - return validator + return d.ldap } -func (d *ValidatorDispatcher) fetchCredentials(ctx context.Context, clientID string) (*vault.ValidationCredentials, error) { +func (d *ValidatorDispatcher) fetchCredentials(ctx context.Context) (*vault.ValidationCredentials, error) { d.mu.RLock() - if entry, ok := d.cache[clientID]; ok { + if entry := d.cached; entry != nil { ttl := d.cacheTTL if entry.err != nil { ttl = d.negativeTTL @@ -175,10 +161,10 @@ func (d *ValidatorDispatcher) fetchCredentials(ctx context.Context, clientID str } d.mu.RUnlock() - creds, err := d.credFetcher.GetValidationCredentials(ctx, clientID) + creds, err := d.credFetcher.GetValidationCredentials(ctx) d.mu.Lock() - d.cache[clientID] = &cachedCreds{ + d.cached = &cachedCreds{ creds: creds, err: err, fetchedAt: time.Now(), diff --git a/extensions/SSH-Certificate-Signer/internal/validation/dispatcher_test.go b/extensions/SSH-Certificate-Signer/internal/validation/dispatcher_test.go index 19370043f..44a44b183 100644 --- a/extensions/SSH-Certificate-Signer/internal/validation/dispatcher_test.go +++ b/extensions/SSH-Certificate-Signer/internal/validation/dispatcher_test.go @@ -34,7 +34,7 @@ type mockCredentialFetcher struct { callCount int } -func (m *mockCredentialFetcher) GetValidationCredentials(ctx context.Context, clientID string) (*vault.ValidationCredentials, error) { +func (m *mockCredentialFetcher) GetValidationCredentials(ctx context.Context) (*vault.ValidationCredentials, error) { m.callCount++ return m.creds, m.err } @@ -43,10 +43,11 @@ func testLogger() *slog.Logger { return slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: slog.LevelError})) } +// Make sure the noop validator accepts the requested principal as is. func TestDispatcher_NoopSource(t *testing.T) { d := NewValidatorDispatcher(nil, nil, "noop", time.Minute, testLogger()) - result, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "noop") + result, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -58,18 +59,7 @@ func TestDispatcher_NoopSource(t *testing.T) { } } -func TestDispatcher_EmptySourceUsesFallback(t *testing.T) { - d := NewValidatorDispatcher(nil, nil, "noop", time.Minute, testLogger()) - - result, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "") - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if !result.Allowed { - t.Error("expected Allowed=true for noop fallback") - } -} - +// Make sure the ldap validator allows a principal that matches the directory entry. func TestDispatcher_LDAPSource_PrincipalFound(t *testing.T) { boolTrue := true fetcher := &mockCredentialFetcher{ @@ -89,9 +79,9 @@ func TestDispatcher_LDAPSource_PrincipalFound(t *testing.T) { }, } connector := &mockLDAPConnector{conn: conn} - d := NewValidatorDispatcher(fetcher, connector, "noop", time.Minute, testLogger()) + d := NewValidatorDispatcher(fetcher, connector, "ldap", time.Minute, testLogger()) - result, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "ldap") + result, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -100,11 +90,12 @@ func TestDispatcher_LDAPSource_PrincipalFound(t *testing.T) { } } +// Make sure the principal is refused when the ldap validator has no settings stored. func TestDispatcher_LDAPSource_NoCredentials(t *testing.T) { fetcher := &mockCredentialFetcher{creds: nil} - d := NewValidatorDispatcher(fetcher, nil, "noop", time.Minute, testLogger()) + d := NewValidatorDispatcher(fetcher, nil, "ldap", time.Minute, testLogger()) - _, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "ldap") + _, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") if err == nil { t.Fatal("expected error") } @@ -114,11 +105,13 @@ func TestDispatcher_LDAPSource_NoCredentials(t *testing.T) { } } +// Make sure a failed read of the validation settings is reported as the +// directory being unavailable, not as a denied principal. func TestDispatcher_LDAPSource_VaultError(t *testing.T) { fetcher := &mockCredentialFetcher{err: errors.New("vault sealed")} - d := NewValidatorDispatcher(fetcher, nil, "noop", time.Minute, testLogger()) + d := NewValidatorDispatcher(fetcher, nil, "ldap", time.Minute, testLogger()) - _, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "ldap") + _, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") if err == nil { t.Fatal("expected error") } @@ -128,6 +121,7 @@ func TestDispatcher_LDAPSource_VaultError(t *testing.T) { } } +// Make sure the validation settings are read once and reused for later requests. func TestDispatcher_CacheHit(t *testing.T) { boolTrue := true fetcher := &mockCredentialFetcher{ @@ -147,18 +141,19 @@ func TestDispatcher_CacheHit(t *testing.T) { }, } connector := &mockLDAPConnector{conn: conn} - d := NewValidatorDispatcher(fetcher, connector, "noop", time.Minute, testLogger()) + d := NewValidatorDispatcher(fetcher, connector, "ldap", time.Minute, testLogger()) // First call — fetches from Vault - d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "ldap") + d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") // Second call — should use cache - d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "ldap") + d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") if fetcher.callCount != 1 { t.Errorf("expected 1 Vault fetch (cached), got %d", fetcher.callCount) } } +// Make sure the validation settings are read again once the cache TTL has passed. func TestDispatcher_CacheExpiry(t *testing.T) { boolTrue := true fetcher := &mockCredentialFetcher{ @@ -178,24 +173,25 @@ func TestDispatcher_CacheExpiry(t *testing.T) { }, } connector := &mockLDAPConnector{conn: conn} - d := NewValidatorDispatcher(fetcher, connector, "noop", 1*time.Millisecond, testLogger()) + d := NewValidatorDispatcher(fetcher, connector, "ldap", 1*time.Millisecond, testLogger()) // First call - d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "ldap") + d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") // Wait for cache to expire time.Sleep(5 * time.Millisecond) // Second call — should re-fetch - d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "ldap") + d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") if fetcher.callCount != 2 { t.Errorf("expected 2 Vault fetches (cache expired), got %d", fetcher.callCount) } } +// Make sure an unknown validator name refuses every request. func TestDispatcher_UnknownSource(t *testing.T) { - d := NewValidatorDispatcher(nil, nil, "noop", time.Minute, testLogger()) + d := NewValidatorDispatcher(nil, nil, "unknown", time.Minute, testLogger()) - _, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "unknown") + _, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") if err == nil { t.Fatal("expected error") } @@ -205,10 +201,11 @@ func TestDispatcher_UnknownSource(t *testing.T) { } } +// Make sure the comanage validator refuses every request until it is implemented. func TestDispatcher_ComanageStub(t *testing.T) { - d := NewValidatorDispatcher(nil, nil, "noop", time.Minute, testLogger()) + d := NewValidatorDispatcher(nil, nil, "comanage", time.Minute, testLogger()) - _, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1", "comanage") + _, err := d.ValidateForClient(context.Background(), "c1", "jdoe", "sub1") if err == nil { t.Fatal("expected error") } diff --git a/extensions/SSH-Certificate-Signer/internal/vault/client.go b/extensions/SSH-Certificate-Signer/internal/vault/client.go index 62014cf3f..6fa9aba6e 100644 --- a/extensions/SSH-Certificate-Signer/internal/vault/client.go +++ b/extensions/SSH-Certificate-Signer/internal/vault/client.go @@ -414,8 +414,8 @@ func generateEd25519CAKey() (*CAKeyPair, error) { }, nil } -// ValidationCredentials holds one client's principal validation settings. -// Stored at {mount}/clients/{client_id}/validation. +// ValidationCredentials holds the deployment's principal validation settings. +// Stored at {mount}/validation. type ValidationCredentials struct { Type string `json:"type"` // "ldap" or "comanage" LDAPUrl string `json:"ldap_url,omitempty"` // LDAP @@ -431,10 +431,10 @@ type ValidationCredentials struct { APIPath string `json:"api_path,omitempty"` // COmanage } -// GetValidationCredentials reads per-client validation credentials from Vault. -// Returns (nil, nil) if no credentials exist at the path. -func (c *Client) GetValidationCredentials(ctx context.Context, clientID string) (*ValidationCredentials, error) { - path := c.kvPath("clients", clientID, "validation") +// GetValidationCredentials reads the principal validation settings. +// Returns (nil, nil) if none exist at the path. +func (c *Client) GetValidationCredentials(ctx context.Context) (*ValidationCredentials, error) { + path := c.kvPath("validation") secret, err := c.client.Logical().ReadWithContext(ctx, path) if err != nil { return nil, fmt.Errorf("reading validation credentials at %s: %w", path, err) diff --git a/extensions/SSH-Certificate-Signer/main.go b/extensions/SSH-Certificate-Signer/main.go index 8ea65251b..081160846 100644 --- a/extensions/SSH-Certificate-Signer/main.go +++ b/extensions/SSH-Certificate-Signer/main.go @@ -170,7 +170,7 @@ func runServer(cfg *config.Config, logger *slog.Logger, autoMigrate bool) { cacheTTL, logger, ) logger.Info("principal validation dispatcher initialized", - "fallback_source", cfg.Signer.Validation.PrincipalValidator, + "source", cfg.Signer.Validation.PrincipalValidator, "cache_ttl_seconds", cfg.Signer.Validation.CacheTTLSeconds) signHandler := handler.NewSignHandler(oidcValidator, policyEnforcer, principalValidator, vaultClient, auditLogger, logger) diff --git a/extensions/SSH-Certificate-Signer/migrations/001_initial_schema.up.sql b/extensions/SSH-Certificate-Signer/migrations/001_initial_schema.up.sql index 565654679..24b605b09 100644 --- a/extensions/SSH-Certificate-Signer/migrations/001_initial_schema.up.sql +++ b/extensions/SSH-Certificate-Signer/migrations/001_initial_schema.up.sql @@ -25,7 +25,6 @@ CREATE TABLE IF NOT EXISTS client_ssh_configs allowed_key_types JSONB NOT NULL, source_address_restriction VARCHAR(255) NULL, denied_extensions JSONB NULL, - principal_source VARCHAR(20) NOT NULL DEFAULT 'noop', enabled BOOLEAN NOT NULL DEFAULT TRUE, created_at TIMESTAMPTZ(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), updated_at TIMESTAMPTZ(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
