Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add nix auth test #62

Draft
wants to merge 22 commits into
base: nats-proposal-auth
Choose a base branch
from

Conversation

JettTech
Copy link
Contributor

No description provided.

@JettTech JettTech changed the base branch from main to nats-proposal-auth February 11, 2025 22:42
Copy link
Contributor

@steveej steveej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm happy you've brought on this code to work through!

first review pass. if in doubt with any of my comments fallback to anything that helps you get the tests pass on CI, specifically checks.x86_64-linux.auth-integration-nixos which was last run here: https://buildbot-nix-0.infra.holochain.org/#/builders/461

};

config = lib.mkIf cfg.enable {
systemd.services.mongodb = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming you want to enable the existing nixpkgs module for mondodb, please look at these: https://search.nixos.org/options?channel=24.11&from=0&size=50&sort=relevance&type=packages&query=services.mongodb

Suggested change
systemd.services.mongodb = {
services.mongodb = {

Comment on lines +123 to +125
serviceConfig = {
LimitNOFILE = 500000;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and then these can't be in here with the others as this is indeed for systemd.services.mongodb. and is it really needed?

systemd.services.mongodb = {
enable = true;
bind_ip = cfg.mongo.url;
documentation.enable = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't exist in the module linked above.


after = [
"network.target"
"holo-nats-server"
Copy link
Contributor

@steveej steveej Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"holo-nats-server"

this is not a systemd service, just a nixos module. if NATS is spawned by the orchestrator it also won't show up as a separate systemd service, hence there's nothing NATS specific here at all.

{ ... }:
{
imports = [
flake.nixosModules.holo-nats-server
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this may not be needed depending on whether holo-orchestrator spawns NATS itself or not.

This was referenced Feb 18, 2025
@JettTech JettTech changed the title add nix auth test feature: add nix auth test Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants