This project is mirrored from https://gitee.com/NQL886/vault.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 22 Feb, 2022 8 commits
  2. 21 Feb, 2022 1 commit
  3. 19 Feb, 2022 2 commits
  4. 18 Feb, 2022 18 commits
  5. 17 Feb, 2022 11 commits
    • Angel Garbarino's avatar
      Calendar widget test and small styling fix on wide screens (#14139) · 1e8587fb
      Angel Garbarino authored
      * setup component test
      
      * fix
      
      * fixes
      
      * make more clear
      1e8587fb
    • Lars Lehtonen's avatar
      890b75a4
    • Jordan Reimer's avatar
      MFA UI Changes (v3) (#14145) · 712cc9ee
      Jordan Reimer authored
      * 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
      712cc9ee
    • Jordan Reimer's avatar
      MFA Re-Merge (#14134) · 9d3dbf87
      Jordan Reimer authored
      * 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
      
      * format-ttl helper fix from main
      
      * adds back missing parenthesis to auth-form.md
      
      * changes localStorage to sessionStorage in auth page login method
      9d3dbf87
    • Josh Black's avatar
      Login MFA (#14025) · 2fe214f5
      Josh Black authored
      
      * Login MFA
      
      * ENT OSS segragation (#14088)
      
      * Delete method id if not used in an MFA enforcement config (#14063)
      
      * Delete an MFA methodID only if it is not used by an MFA enforcement config
      
      * Fixing a bug: mfa/validate is an unauthenticated path, and goes through the handleLoginRequest path
      
      * adding use_passcode field to DUO config (#14059)
      
      * add changelog
      
      * preventing replay attack on MFA passcodes (#14056)
      
      * preventing replay attack on MFA passcodes
      
      * using %w instead of %s for error
      
      * Improve CLI command for login mfa (#14106)
      
      CLI prints a warning message indicating the login request needs to get validated
      
      * adding the validity period of a passcode to error messages (#14115)
      
      * PR feedback
      
      * duo to handle preventing passcode reuse
      Co-authored-by: default avatarhghaf099 <83242695+hghaf099@users.noreply.github.com>
      Co-authored-by: default avatarhamid ghaf <hamid@hashicorp.com>
      2fe214f5
    • Alexander Scheel's avatar
      Allow specifying multiple allowed SSH key lengths (#13991) · 00c3e8f8
      Alexander Scheel authored
      
      * Allow specifying multiple allowed SSH key lengths
      
      In the ssh secrets engine, only a single allowed key length was allowed
      for each algorithm type. However, many algorithms have multiple safe
      values (such as RSA and ECDSA); allowing a single role to have multiple
      values for a single algorithm is thus helpful.
      
      On creation or update, roles can now specify multiple types using a list
      or comma separated string of allowed values:
      
          allowed_user_key_lengths: map[string][]int{"rsa": []int{2048, 4096}}
      Signed-off-by: default avatarAlexander Scheel <alex.scheel@hashicorp.com>
      
      * Add changelog entry
      Signed-off-by: default avatarAlexander Scheel <alex.scheel@hashicorp.com>
      
      * Break out ssh upgrade logic into separate function
      Signed-off-by: default avatarAlexander Scheel <alex.scheel@hashicorp.com>
      
      * Update parseutil for optional lists of integers
      
          go get -u github.com/hashicorp/go-secure-stdlib/parseutil
          go mod tidy
      Signed-off-by: default avatarAlexander Scheel <alex.scheel@hashicorp.com>
      
      * Simplify parse logic using new parseutil
      
      The newly introduced parseutil.ParseIntSlice handles the more
      complicated optional int-like slice logic for us.
      Signed-off-by: default avatarAlexander Scheel <alex.scheel@hashicorp.com>
      00c3e8f8
    • John-Michael Faircloth's avatar
      feature: multiplexing: handle error plugin shutdown (#14105) · 8f38d79e
      John-Michael Faircloth authored
      * feat: DB plugin multiplexing (#13734)
      
      * WIP: start from main and get a plugin runner from core
      
      * move MultiplexedClient map to plugin catalog
      - call sys.NewPluginClient from PluginFactory
      - updates to getPluginClient
      - thread through isMetadataMode
      
      * use go-plugin ClientProtocol interface
      - call sys.NewPluginClient from dbplugin.NewPluginClient
      
      * move PluginSets to dbplugin package
      - export dbplugin HandshakeConfig
      - small refactor of PluginCatalog.getPluginClient
      
      * add removeMultiplexedClient; clean up on Close()
      - call client.Kill from plugin catalog
      - set rpcClient when muxed client exists
      
      * add ID to dbplugin.DatabasePluginClient struct
      
      * only create one plugin process per plugin type
      
      * update NewPluginClient to return connection ID to sdk
      - wrap grpc.ClientConn so we can inject the ID into context
      - get ID from context on grpc server
      
      * add v6 multiplexing  protocol version
      
      * WIP: backwards compat for db plugins
      
      * Ensure locking on plugin catalog access
      
      - Create public GetPluginClient method for plugin catalog
      - rename postgres db plugin
      
      * use the New constructor for db plugins
      
      * grpc server: use write lock for Close and rlock for CRUD
      
      * cleanup MultiplexedClients on Close
      
      * remove TODO
      
      * fix multiplexing regression with grpc server connection
      
      * cleanup grpc server instances on close
      
      * embed ClientProtocol in Multiplexer interface
      
      * use PluginClientConfig arg to make NewPluginClient plugin type agnostic
      
      * create a new plugin process for non-muxed plugins
      
      * feat: plugin multiplexing: handle plugin client cleanup (#13896)
      
      * use closure for plugin client cleanup
      
      * log and return errors; add comments
      
      * move rpcClient wrapping to core for ID injection
      
      * refactor core plugin client and sdk
      
      * remove unused ID method
      
      * refactor and only wrap clientConn on multiplexed plugins
      
      * rename structs and do not export types
      
      * Slight refactor of system view interface
      
      * Revert "Slight refactor of system view interface"
      
      This reverts commit 73d420e5
      
      .
      
      * Revert "Revert "Slight refactor of system view interface""
      
      This reverts commit f75527008a1db06d04a23e04c3059674be8adb5f.
      
      * only provide pluginRunner arg to the internal newPluginClient method
      
      * embed ClientProtocol in pluginClient and name logger
      
      * Add back MLock support
      
      * remove enableMlock arg from setupPluginCatalog
      
      * rename plugin util interface to PluginClient
      Co-authored-by: default avatarBrian Kassouf <bkassouf@hashicorp.com>
      
      * feature: multiplexing: fix unit tests (#14007)
      
      * fix grpc_server tests and add coverage
      
      * update run_config tests
      
      * add happy path test case for grpc_server ID from context
      
      * update test helpers
      
      * feat: multiplexing: handle v5 plugin compiled with new sdk
      
      * add mux supported flag and increase test coverage
      
      * set multiplexingSupport field in plugin server
      
      * remove multiplexingSupport field in sdk
      
      * revert postgres to non-multiplexed
      
      * add comments on grpc server fields
      
      * use pointer receiver on grpc server methods
      
      * add changelog
      
      * use pointer for grpcserver instance
      
      * Use a gRPC server to determine if a plugin should be multiplexed
      
      * Apply suggestions from code review
      Co-authored-by: default avatarBrian Kassouf <briankassouf@users.noreply.github.com>
      
      * add lock to removePluginClient
      
      * add multiplexingSupport field to externalPlugin struct
      
      * do not send nil to grpc MultiplexingSupport
      
      * check err before logging
      
      * handle locking scenario for cleanupFunc
      
      * allow ServeConfigMultiplex to dispense v5 plugin
      
      * reposition structs, add err check and comments
      
      * add comment on locking for cleanupExternalPlugin
      
      * feature: multiplexing: handle error plugin shutdown
      Co-authored-by: default avatarBrian Kassouf <bkassouf@hashicorp.com>
      Co-authored-by: default avatarBrian Kassouf <briankassouf@users.noreply.github.com>
      8f38d79e
    • Jordan Reimer's avatar
      Revert "MFA (#14049)" (#14135) · 88031ef3
      Jordan Reimer authored
      This reverts commit 5f17953b.
      88031ef3
    • Austin Gebauer's avatar
      4c04ca96
    • Hridoy Roy's avatar
      SSCT Tokens Feature [OSS] (#14109) · 27f15edd
      Hridoy Roy authored
      * port SSCT OSS
      
      * port header hmac key to ent and generate token proto without make command
      
      * remove extra nil check in request handling
      
      * add changelog
      
      * add comment to router.go
      
      * change test var to use length constants
      
      * remove local index is 0 check and extra defer which can be removed after use of ExternalID
      27f15edd
    • Alexander Scheel's avatar
      Update repository links to point to main (#14112) · ee1e5bec
      Alexander Scheel authored
      
      * Update repository links to point to main
      Signed-off-by: default avatarAlexander Scheel <alex.scheel@hashicorp.com>
      
      * Fix broken link in relatedtools.mdx
      Co-authored-by: default avatarSteven Clark <steven.clark@hashicorp.com>
      Co-authored-by: default avatarSteven Clark <steven.clark@hashicorp.com>
      ee1e5bec