36ccfaa3aa
* adds development workflow to mirage config * adds mirage handler and factory for mfa workflow * adds mfa handling to auth service and cluster adapter * moves auth success logic from form to controller * adds mfa form component * shows delayed auth message for all methods * adds new code delay to mfa form * adds error views * fixes merge conflict * adds integration tests for mfa-form component * fixes auth tests * updates mfa response handling to align with backend * updates mfa-form to handle multiple methods and constraints * adds noDefault arg to Select component * updates mirage mfa handler to align with backend and adds generator for various mfa scenarios * adds tests * flaky test fix attempt * reverts test fix attempt * adds changelog entry * updates comments for todo items * removes faker from mfa mirage factory and handler * adds number to word helper * fixes tests * Revert "Merge branch 'main' into ui/mfa" This reverts commit 8ee6a6aaa1b6c9ec16b985c10d91c3806819ec40, reversing changes made to 2428dd6cca07bb41cda3f453619646ca3a88bfd0. * format-ttl helper fix from main
66 lines
1.2 KiB
Go
66 lines
1.2 KiB
Go
//go:build !enterprise
|
|
|
|
package quotas
|
|
|
|
import (
|
|
"context"
|
|
|
|
log "github.com/hashicorp/go-hclog"
|
|
"github.com/hashicorp/vault/helper/metricsutil"
|
|
|
|
memdb "github.com/hashicorp/go-memdb"
|
|
)
|
|
|
|
func quotaTypes() []string {
|
|
return []string{
|
|
TypeRateLimit.String(),
|
|
}
|
|
}
|
|
|
|
func (m *Manager) init(walkFunc leaseWalkFunc) {}
|
|
|
|
func (m *Manager) recomputeLeaseCounts(ctx context.Context, txn *memdb.Txn) error {
|
|
return nil
|
|
}
|
|
|
|
func (m *Manager) setIsPerfStandby(quota Quota) {}
|
|
|
|
func (m *Manager) inLeasePathCache(path string) bool {
|
|
return false
|
|
}
|
|
|
|
type entManager struct {
|
|
isPerfStandby bool
|
|
isDRSecondary bool
|
|
}
|
|
|
|
func (*entManager) Reset() error {
|
|
return nil
|
|
}
|
|
|
|
type LeaseCountQuota struct{}
|
|
|
|
func (l LeaseCountQuota) allow(_ context.Context, _ *Request) (Response, error) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (l LeaseCountQuota) quotaID() string {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (l LeaseCountQuota) QuotaName() string {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (l LeaseCountQuota) initialize(logger log.Logger, sink *metricsutil.ClusterMetricSink) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (l LeaseCountQuota) close(_ context.Context) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (l LeaseCountQuota) handleRemount(s string) {
|
|
panic("implement me")
|
|
}
|