-
Notifications
You must be signed in to change notification settings - Fork 9
Remove secrets usage #28
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
Conversation
@dhalbert there are 6 PRs that use |
# file or commit it into Git or other source control. The file dictionary should have the | ||
# following settings: | ||
# CIRCUITPY_WIFI_SSID - Your WiFi ssid | ||
# CIRCUITPY_WIFI_PASSWORD - Your WiFi password | ||
# device_cert_path - Path to the Device Certificate from AWS IoT ("<THING_NAME>.cert.pem") | ||
# device_key_path - Path to the RSA Private Key from AWS IoT ("<THING_NAME>.private.key") | ||
# broker - The endpoint for the AWS IoT broker ("<PREFIX>.iot.<REGION>.amazonaws.com") | ||
# client_id - The client id. Your device's Policy needs to allow this client ("basicPubSub") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave out the word "dictionary". You might want to use a format like
... The file should contain the following settings:
CIRCUITPY_WIFI_SSID="your WiFi ssid"
CIRCUITPY_WIFI_PASSWORD="your WiFi password"
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you then do:
device_cert_path="Path to the Device Certificate from AWS IoT (<THING_NAME>.cert.pem)"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
device_cert_path="THING_NAME.cert.pem" # Path to the Device Certificate from AWS IoT
or, maybe more readable:
# Path to the Device Certificate from AWS IoT
device_cert_path="THING_NAME.cert.pem"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll move it into triple quotes so it can be copied
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
""" | ||
CIRCUITPY_WIFI_SSID="Your WiFi ssid" | ||
CIRCUITPY_WIFI_PASSWORD="Your WiFi password" | ||
device_cert_path="<THING_NAME>.cert.pem" # Path to the Device Certificate from AWS IoT | ||
device_key_path="<THING_NAME>.private.key" # Path to the RSA Private Key from AWS IoT | ||
broker="<PREFIX>.iot.<REGION>.amazonaws.com" # The endpoint for the AWS IoT broker | ||
client_id="client_id" # The client id. Your device's Policy needs to allow this client | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good but I don't understand why you put it in triple quotes instead of using comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you can do a direct copy and place it in your settings.toml
. Happy to change it back to comments if you prefer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a good idea!
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 9.0.1 from 9.0.0: > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#217 from dhalbert/json-url Updating https://github.com/adafruit/Adafruit_CircuitPython_AWS_IOT to 3.0.0 from 2.0.21: > Merge pull request adafruit/Adafruit_CircuitPython_AWS_IOT#28 from justmobilize/remove-secrets-usage Updating https://github.com/adafruit/Adafruit_CircuitPython_GC_IOT_Core to 4.0.0 from 3.2.13: > Merge pull request adafruit/Adafruit_CircuitPython_GC_IOT_Core#30 from justmobilize/remove-secrets-usage Updating https://github.com/adafruit/Adafruit_CircuitPython_AzureIoT to 3.0.0 from 2.6.2: > Merge pull request adafruit/Adafruit_CircuitPython_AzureIoT#66 from justmobilize/remove-secrets-usage Updating https://github.com/adafruit/Adafruit_CircuitPython_Dash_Dis to 3.0.0 from 2.1.5: > Merge pull request adafruit/Adafruit_CircuitPython_Dash_Dis#20 from justmobilize/remove-secrets-usage Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout to 2.2.2 from 2.2.1: > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#97 from FoamyGuy/use_ruff_remove_8x_compat Updating https://github.com/adafruit/Adafruit_CircuitPython_WSGI to 3.0.0 from 2.0.4: > Merge pull request adafruit/Adafruit_CircuitPython_WSGI#23 from justmobilize/remove-secrets-usage
Remove usage of secrets and more:
secrets.py
toos.getenv
ESPSPI_WiFiManager
toWiFiManager
adafruit_connection_manager
like all the other examples