Skip to content

Conversation

@Niahh
Copy link
Contributor

@Niahh Niahh commented Dec 15, 2025

Hello !

This PR follows the one for the free5gc/amf#186 and adds the support for env var as well.

-> Upgrading google library from 1.3.0 to .1.6.0

Backward Compatibility

100% backward compatible

Cheers,

This work is sponsored by Free Mobile!

@Niahh Niahh force-pushed the nf-instance-id-configurable branch 2 times, most recently from 4239241 to 15dc233 Compare December 24, 2025 14:24
@Alonza0314
Copy link
Member

Hi @Niahh,
I think we need to give it a patch for configuring ID from ENV!

Thanks again for your contribution.

Initially the NF created at each boot a new uuid. This makes it difficult to retrieve the information afterwards. This commit propose is to add the nfInstanceId in the configuration as optional so that if needed, it can be tracked more easily.
If no nfInstanceId specified in config file or env var, it will still be generated at each boot and give more control to users that might need it (for kube deployment, other checks, better identification)

Also using the uuidv4 validator to match spec 3GPP TS 29.510 version 17.6.0 Release 17 5.2.2.2.2 mentioning that UUID should be in the version 4 format
@Niahh Niahh force-pushed the nf-instance-id-configurable branch from 15dc233 to da9b098 Compare January 5, 2026 10:12
@Niahh
Copy link
Contributor Author

Niahh commented Jan 5, 2026

Hi @Niahh, I think we need to give it a patch for configuring ID from ENV!

Thanks again for your contribution.

Hi @Alonza0314,

You are absolutely right, I forgot to update my branch, my bad 😅.

It should be good now 😁

Cheers !

@Alonza0314 Alonza0314 merged commit 16d2560 into free5gc:main Jan 5, 2026
4 checks passed
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