Commit Graph

516 Commits (8de63f82cf088dce9dfefc6dce772dcfecaf1f87)
 

Author SHA1 Message Date
Jim Lambert 8de63f82cf document what the int returned by Exec represents
6 years ago
Jim Lambert ce033f87df fix subquery
6 years ago
Jim Lambert b2660c4f83 properly handle returned error
6 years ago
Jim Lambert be08c90465 ooops... I had forgotten to store the tofu when activating
6 years ago
Jim Lambert a734c203b9 Merge branch 'master' into jimlambrt-session-basics
6 years ago
Jim Lambert 7dd54debf0 refactor session.SetId to be session.HostSetId (including renaming the db column)
6 years ago
Jim Lambert 8fb6dbbffb add a few more drop functions
6 years ago
Jim Lambert 0578780ba0 fixing a bunch of comments/docs
6 years ago
Jim Lambert f9f8196669 refactor address/port names to include "tcp
6 years ago
Jeff Mitchell 570e52cabb Add missing set-grants to role command
6 years ago
Jim Lambert 8825e47b82 Merge branch 'jimlambrt-session-basics' of https://github.com/hashicorp/watchtower into jimlambrt-session-basics
6 years ago
Jim Lambert 90f9bedc66 Add ActivateSession() which uses a CTE to only active a session that is pending
6 years ago
Jim Lambert e410ce9278 add Exec() to db.Writer so we can execute CTEs
6 years ago
Todd Knight f96fa25157
Add Auth Account id to Auth Token response (#363)
6 years ago
Randall Morey 2b664f78ed
docs: add blurb in dev mode doc about UI passthrough (#362)
6 years ago
Jeff Mitchell f4ad22b247
Move default port to a TCP target attribute (#361)
6 years ago
Jim Lambert 71d75a6e91 return session private key
6 years ago
Jim 9fdfaf3a7f
Update internal/session/repository_connection.go
6 years ago
Jim 88482c2f34
Update internal/session/repository_connection.go
6 years ago
Jim 286caf8863
Update internal/session/repository_connection.go
6 years ago
Jim 4d75e50d73
Update internal/session/repository_connection.go
6 years ago
Jim a1408fe9a4
Update internal/session/connection_state.go
6 years ago
Jeff Malnick b56e5b6766
docs: add getting started docs for development mode (#359)
6 years ago
Jim Lambert 07ac120ade added Tofu token with unit tests
6 years ago
Jim Lambert 7bb52e60be added tofu_token and key_id to session table
6 years ago
Jim Lambert d335a06629 added TestTofu with unit test
6 years ago
Jeff Mitchell 77bcee1861 Use json.Number when unmarshaling into the response map
6 years ago
Jeff Mitchell eb88d0381a Fix default port update handling
6 years ago
Jeff Mitchell a598fdfb13 Fix targets CLI command
6 years ago
Jeff Mitchell 97985883df Fix token storage
6 years ago
Jeff Mitchell a00ee7a948
Add Result types to Go SDK and properly populate body/map fields (#358)
6 years ago
Jeff Malnick d8dc1ed0b2
docs: refactor docs per guidelines (#341)
6 years ago
Jim Lambert 92c0906685 add update_session_state_on_termination_reason and update tests
6 years ago
Jim Lambert 881bb93552 add trigger update_connection_state_on_closed_reason to insert a connection state when the connection status is set to closed
6 years ago
Jim Lambert 10d47817b9 add connection repo functions with unit tests
6 years ago
Jim Lambert 32e85ee6f0 fix error handling on failed sesison update
6 years ago
Jim Lambert 587a032d06 add triggers on connection table for: update_version_column, update_time_column, and default_create_time_column
6 years ago
Jeff Mitchell 1b2f73d1d4
Fix some old logic in some CLI commands (#357)
6 years ago
Jeff Mitchell 6201357902
Use scope-specific token DEKs (#342)
6 years ago
Jim Lambert da1a0a03b4 missed a few bits in the refactor of bytes up/down
6 years ago
Patrick Bernal 67278af339
Update jira.yml
6 years ago
Jim Lambert ca59864c36 refactor: split base repo from session repo functions
6 years ago
Jim Lambert cd3c8a5a6d refactor to create session cert before creating the session in the repo
6 years ago
Jim Lambert 5145d0b917 add session Certificate and ExpirationTime with required unit tests
6 years ago
Jim Lambert e42a2d127d add WithExpirationTime option with unit test
6 years ago
Jim Lambert 47e7b3cf54 refactor to use session.TestCert(), which should be deprecated when possible.
6 years ago
Jim Lambert 76207b0790 added TestCert function, which should be deprecated pretty quickly
6 years ago
Jim Lambert 52a5cf6721 immutable tests for session: certificate and expiration_time
6 years ago
Jim Lambert 60c3138b0b add certificate and expiration_time to session table
6 years ago
Todd Knight b998591add
Adding and updating host address validation checks (#350)
6 years ago