@mpn mbn
initially, i got this (groupKey groups/Admins): already exists. so, contrib/auth/acl/setup.go (func CreateACLBaseGroups)
i added validation step if groups are present then dont create and it went fine and got another error.
then added more verbose in to func "IsInitialized" in the same file.
time="2024-10-07T13
2127Z" level=info msg="Checking if ACL server is initialized..." func=
github.com/treeverse/lakefs/contrib/auth/acl.SetupACLServer file="/app/contrib/auth/acl/setup.go:105"
time="2024-10-07T13
2127Z" level=info msg="ACL server is not initialized (timestamp not found)." func=
github.com/treeverse/lakefs/contrib/auth/acl.IsInitialized file="/app/contrib/auth/acl/setup.go:133"
login to pssql database & checked kv table.
acluser=> SELECT DISTINCT partition_key, key FROM kv LIMIT 10;
partition_key | key
decoded values:
Partition_key: aclauth
Key: installation_metadata/setup_timestamp
In file lakeFS/contrib/auth/acl/service.go
line 937 - SetupTimestampKeyName (referencing - pkg/auth/metadata.go) in which setup_timestamp is mentioned hence, both function getSetupTimestamp and updateSetupTimestamp are referring the same.
I updated that in both function in service.go with value (installation_metadata/setup_timestamp) and it acked the time and on restart it didnt initiate setup again.
config.yaml (values referred from pkg/config/config.go)
listen_address: ":8001"
database:
type: "postgres"
drop_tables: false
postgres:
connection_string: "STRING!!!!!!!"
max_open_connections: 25
max_idle_connections: 25
connection_max_lifetime: 5m
scan_page_size: 100
metrics: false
encrypt:
secret_key: "KEY!!!!!!!!!"