garm/database/sql
Gabriel Adrian Samfira 9c1ffe8c20 Enforce same endpoint when updating credentials
When updating credentials on an entity, we must ensure that the new credentials
belong to the same endpoint as the entity.

When an entity is created, the endpoint is determined by the credentials that
were used during the create operation. From that point forward the entity is
associated with an endpoint, and that cannot change.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-04-22 14:08:36 +00:00
..
common_test.go fix: remove unused cobra args 2024-02-22 17:20:05 +01:00
controller.go fix: unused-parameter linter findings 2024-02-22 16:54:38 +01:00
controller_test.go fix: unused-parameter linter findings 2024-02-22 16:54:38 +01:00
enterprise.go Enforce same endpoint when updating credentials 2024-04-22 14:08:36 +00:00
enterprise_test.go Enforce same endpoint when updating credentials 2024-04-22 14:08:36 +00:00
github.go Preload credentials endpoint and remove extra code 2024-04-22 14:03:25 +00:00
instances.go Slightly simplify code 2024-03-30 18:22:06 +00:00
instances_test.go Fix tests 2024-04-22 14:03:25 +00:00
jobs.go Rename PoolType to GithubEntityType 2024-03-17 06:58:03 +00:00
models.go Use database for github creds 2024-04-22 14:03:25 +00:00
organizations.go Enforce same endpoint when updating credentials 2024-04-22 14:08:36 +00:00
organizations_test.go Enforce same endpoint when updating credentials 2024-04-22 14:08:36 +00:00
pools.go Remove duplicate code 2024-03-29 18:50:04 +00:00
pools_test.go Fix tests 2024-04-22 14:03:25 +00:00
repositories.go Enforce same endpoint when updating credentials 2024-04-22 14:08:36 +00:00
repositories_test.go Enforce same endpoint when updating credentials 2024-04-22 14:08:36 +00:00
sql.go Use database for github creds 2024-04-22 14:03:25 +00:00
users.go Use database for github creds 2024-04-22 14:03:25 +00:00
users_test.go Update dependencies and tests 2024-04-22 13:39:04 +00:00
util.go Enforce same endpoint when updating credentials 2024-04-22 14:08:36 +00:00